Hello all,
I am trying to make my first complicated script for my Fourth Age submod for TATW, but it just doesn't work and after testing this 10 times with every time a small change i decided to ask it here.
Ok, here is the script
There will probably be some stupid mistakes an experienced scripter would never make, but I only used the Docudemons and I looked at some other scripts (maybe I should have done some tutorials but i thought it would go fine without, sadly it doesn'tCode:;#################################################################### ;################Elves for RK####################################### ;##########################################################3####3 monitor_event FactionTurnStart FactionIsLocal FactionType sicily and I_SettlementOwner Ithilien = sicily and I_SettlementOwner North-Ithilien = sicily and I_SettlementOwner South-Ithilien = sicily and DiplomaticStanceFromFaction mongols = Allied add_events event counter elves_accepted event counter elves_declined end_add_events historic_event elves true terminate_monitor end_monitor ;-------------- accept -------------- declare_counter elves_accepted monitor_conditions I_EventCounter elves_accepted = 1 declare_counter go_elves add_events event historic elves_ithilien date 0 end_add_events console_command create_building Ithilien elven_house console_command create_building North-Ithilien elven_house console_command create_building South-Ithilien elven_house add_money sicily -5000 set_counter go_elves 1 terminate_monitor end_monitor ;--------- reject ---------------- declare_counter elves_declined monitor_conditions I_EventCounter elves_declined = 1 add_events event historic elves_rejected date 0 end_add_events set_faction_standing sicily mongols -0,5 declare_counter go_elves set_counter go_elves 0 terminate_monitor end_monitor This part works but the next part doesnt ;###################################################################################3 ; This script is to disable the recruitement when you are at war with the silvan elves monitor_event FactionTurnStart FactionIsLocal FactionType sicily and DiplomaticStanceFactions sicily mongols > AtWar and I_EventCounter go_elves = 1; it wont trigger when you have declined the event and not I_EventCounter elves_war 1; this one and the other elves war will convince firing this event every turn add_events event historic no_elves date 0 end_add_events declare_counter no_elves declare_counter elves_war set_counter no_elves 1 set_counter elves_war 1 end_monitor ;################################################################################# ;This script will enable the recruitement when you are allies again monitor_event FactionTurnStart FactionIsLocal FactionType sicily and DiplomaticStanceFactions sicily mongols > Allied and I_EventCounter go_elves = 1; it will only trigger if you have accepted the event add_events event historic elves_again date 0 end_add_events set_counter no_elves 0 set_counter elves_war 0 end_monitor)
Help is very much appreciated!






Reply With Quote





