You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Suppiluliuma, PhatFish, Fisk, EpiC_Anonymous, Epd999

Hop to:    
Welcome! You are not logged in. Please Login or Register.3 replies
Age of Empires Heaven » Forums » Scenario Design » Getting an AI to become Ally through Tributing?
Bottom
Topic Subject:Getting an AI to become Ally through Tributing?
Al_Kharn the Great
Clubman
posted 12-04-18 09:46 PM ET (US)         
I am working on a scenario that requires an AI player to switch diplomacy to ally if the Player tributes this AI 500 Gold. Unfortunately, I cannot seem to make this work.

My preference is for there to be no message (the instruction to tribute 500 gold is provided in the scenario objectives), but I am fine with a single message and infinite (or near-infinite) SNTributeTimeout since I want the player to be able to tribute 500 gold to cause the effect anytime in the game.

Unfortunately, I have tried to set strategy numbers to various values with no success. Either the AI spams the message (for example, if I set SNTributeChatFrequency to 1) or it leads to an instant tribute failure state (if I don't use SNTributeChatFrequency or if I set it to 0). I don't want to set it higher (e.g., 600 seconds) because I want the functionality to work from the game start. I just also don't want the message to loop constantly.

I have noticed that setting SNTributePersistence to 0 seems to have no effect.

Any ideas on what I should be using to get this to work? Thank you.

Filthydelphia Creations
Tristan & Iseult ~ 1st Place (tied), 2014 Historical Scenario Design Contest
City of Peace ~ 2nd Place, 2014 Minigame Competition
Dragon's Head, Serpent's Tail ~ 2nd Place, 2016 Defend the Spot Competition
Ragnar's Raids ~ 2nd Place, 2016 Historical Scenario Design Contest
Complete Campaign Collection

[This message has been edited by Al_Kharn the Great (edited 12-04-2018 @ 09:49 PM).]

AuthorReplies:
Fisk
Champion of AoEH
(id: Fruktfisk)
posted 12-05-18 02:54 AM ET (US)     1 / 3       
I do a similar thing in that campaign I haven't finished for the past 7 years, and no, the best thing I came up with was actually to set the timer to about 10/20 minutes when I thought the player would be likely to consider the tribute for the first time. Having the functionality available from game start would basically require the AI to spam the message constantly.

//The warrior of Isola

"I lack quotes that demonstrate Humor Intelligence or anything about me."

Pineapplefish
Cleidopus gloriamaris
Al_Kharn the Great
Clubman
posted 12-06-18 09:33 AM ET (US)     2 / 3       
Understood. Thank you.

Filthydelphia Creations
Tristan & Iseult ~ 1st Place (tied), 2014 Historical Scenario Design Contest
City of Peace ~ 2nd Place, 2014 Minigame Competition
Dragon's Head, Serpent's Tail ~ 2nd Place, 2016 Defend the Spot Competition
Ragnar's Raids ~ 2nd Place, 2016 Historical Scenario Design Contest
Complete Campaign Collection
PhatFish
Mr. Beta
posted 12-09-18 05:51 AM ET (US)     3 / 3       
As Fisk said. AFAIK there is no other way than having the CPU ask for the tribute around the time you expect the player to send the tribute.
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires Heaven | HeavenGames