I'm modding in the Hanseatic League into Retrofit but I know almost nothing about scripting.
I copied the script from the Teutonic campaign with a few adjustments but most of it I cut out because it was dealing with allowing Lithuania to get the guild and Lithuania is not present here so this is what I had left. It's a really long process to check but at least the game runs. Is there something glaringly wrong with this script? The rest of the edits have been made to the files (to add the guild itself) but scripting defeats me so any suggestions or corrections would be appreciated.
;setup some event counters
monitor_event FactionTurnStart
;setup HANSEATIC LEAGUE counters
add_events
event counter hansaetic_formation_timer
event counter hanseatic_constructed
date 0
end_add_events
generate_random_counter hanseatic_formation_timer 0 10
set_event_counter hanseatic_constructed 0
end_monitor
;------------------- HANSEATIC LEAGUE -------------------;
;announcement event
monitor_event SettlementTurnStart SettlementName Hamburg
inc_event_counter hanseatic_formation_timer 1
if I_EventCounter hanseatic_formation_timer >= 25
historic_event hanseatic_formation factions { england, denmark, novgorod, poland, hre, }
terminate_monitor
end_if
end_monitor
monitor_event GuildUpgraded BuildingName = hanseatic_guild
set_event_counter hanseatic_constructed 1
reset_guild_standing hanseatic_guild
end_monitor
monitor_event BuildingDestroyed BuildingName = hanseatic_guild
set_event_counter hanseatic_constructed 0
reset_guild_standing hanseatic_guild
end_monitor




Reply With Quote










