
Originally Posted by
Epistolary Richard
There have been very few major mods released that have had an integrated background script to date (I think TFT, I'm not sure of any others) and that I think was an optional four turn addition.
TFT is using click-on-a-settlement to make the advisor appear. So far I haven't heard any complaints, and most of the time a player will click on a settlement in the natural course of events when they start/continue a game. Even if they forget the first turn they continue a game, clicking on one the next turn is good enough for starting the four-turns-per-year portion of the script. The rest of the script's functions are not as time sensitive.
So this is our Crassus/Gauls campaign code from the EDA (note that only brutii, scipii, julii, gauls and eventually parthia are playable in TFT, and thus the not I_LocalFaction conditions - those factions have their own triggers as the start date differs for their campaigns):
Code:
;------------------------------------------ TFT_Campaign
AdviceThread TFT_Licinii_Campaign_Thread
GameArea Campaign
Item TFT_Campaign_Text_01
Uninhibitable
Verbosity 0
Threshold 1
Attitude Normal
Presentation Default
Title TFT_Campaign_Text_01_Title
Script scripts\show_me\Crassus_TFT_Campaign.txt
Text TFT_Campaign_Text_01_Text1
;------------------------------------------ TFT Campaign
Trigger 2300a_TFT_Campaign_Thread_Trigger
WhenToTest SettlementSelected
Condition not I_LocalFaction romans_julii
and not I_LocalFaction romans_scipii
and not I_LocalFaction parthia
AdviceThread TFT_Licinii_Campaign_Thread 0
Bookmarks