
Originally Posted by
Epistolary Richard
Ah, sorry I was assuming you were using a background script like Monkwarrior. I don't understand what you mean when you say that they trigger just once, but they don't trigger once per campaign. Could you explain it further?
Sure. Here is the code for a test victory condition I set up.
Code:
;------------------------------------------
AdviceThread Greek_Cities_Win_Thread
GameArea Campaign
Item Greek_Cities_Win_Text_01
Uninhibitable
Verbosity 0
Threshold 1
MaxRepeats 0
RepeatInterval 1
Attitude Excited
Presentation Default
Title Greek_Cities_Win_Text_01_Title
Script scripts\show_me\Greek_Cities_Win.txt
Text Greek_Cities_Win_Text_01_Text1
;------------------------------------------
Trigger Greek_Cities_Win_Trigger
WhenToTest FactionTurnStart
Condition FactionIsLocal
and FactionType greek_cities
and I_ThreadCount Greek_Cities_Win_Thread < 1
and I_SettlementOwner Athens = greek_cities
AdviceThread Greek_Cities_Win_Thread 1
This is just a test, so all the Greek Cities need to win is to capture Athens. When the advice thread triggers the advisor comes up and anounces that the player has won. If they hit showme then the script triggers the victory scroll.
Greek_Cities_Win_Trigger only fires once because of the I_ThreadCount condition. Even if you start a new campaign it will not fire again. If I remove that condition then the trigger and the advice thread will keep firing every turn, as long as the Greek Cities still hold Athens (assuming of course that the player continues to play after achieving victory).
If I could get it to fire just once per campaign that would be ideal, but it probably doesn't matter that much. Someone would have to play all the way through the Greek Cities campaign twice for it to be an issue - and I can always make an advice thread to remind them to delete preferences/advice if they try to start a new campaign after winning once.
Bookmarks