Well, I am interested in the possibilities of scripting from the start of this research, although I am a complete ignorant about all the relative to this aspect.
Following the advice of Epistolary Richard and with the invaluable help of our moderator, Myrddraal, I've been trying to explore the use of a continuous script.
My first idea was to simulate the senate missions, either in campaigns where the senate is not present or for factions different from romans (many people claims that Carthage had also a senate and that this faction could also be splited into two).
This is my first (partial) success:
Code:
;Senate Missions Emulator, by Monkwarrior Beta Version 0.1
script
;set up counters
declare_counter SenateMission ;used to know which mission is currently assigned
declare_counter loop
;start of the first mission
advance_advice_thread Senate_Mission_M01_Thread ;communication to the player
set_counter SenateMission 1
;success in mission
monitor_event GeneralCaptureSettlement FactionType romans_julii
and SettlementName Segesta
if I_TurnNumber < 10
advance_advice_thread Senate_Mission_Success1_Thread ;message of success
console_command add_money 3000 ;this is the reward
inc_counter SenateMission 1 ;pass to the next mission
end_if
terminate_monitor
end_monitor
;mission failed
monitor_conditions I_TurnNumber = 10
and I_CompareCounter SenateMission = 1
advance_advice_thread Senate_Mission_Failed1_Thread ;time for mission is over
console_command add_money -1000 ;penalty
inc_counter SenateMission 1 ;pass to the next mission
terminate_monitor
end_monitor
while I_CompareCounter loop = 0
end_while
terminate_script
This script is completed with three advices in export_descr_advice, corresponding to the communication of the mission, the success message and the fail message.
I have checked this script in my Iberia:TotalWar campaign and it works (thanks to the "loop" idea of Myrddraal).
Why must it be considered a partial success? The advices appear only once. If I start again the campaign, they do not appear again and I must modify the advice name in all the related files. To be useful, the advices should appear only once in a campaign, but in every campaign.
Does anybody know how to repeat an advice?
Does anybody know what is this command used for?:
Code:
suspend_unscripted_advice false
Bookmarks