Hello
I am trying to add settlement name change in the campaign script.
I found this in the americas campaign as exemple
An I wrote this, but when the factions normans take the settlement, the name doesn't changeCode:;;;;; Mexico - Tenochtitlan declare_counter Tenochtitlan_Spain ;;; Spain captures Tenochtitlan monitor_conditions I_SettlementOwner Tenochtitlan = spain and I_CompareCounter Tenochtitlan_Spain = 0 set_counter Tenochtitlan_Spain 1 change_settlement_name Tenochtitlan Mexico end_monitor ;;; Natives capture Tenochtitlan monitor_conditions not I_SettlementOwner Tenochtitlan = spain and not I_SettlementOwner Tenochtitlan = england and not I_SettlementOwner Tenochtitlan = france and I_CompareCounter Tenochtitlan_Spain = 1 set_counter Tenochtitlan_Spain 0 change_settlement_name Tenochtitlan Tenochtitlan end_monitorDid I mistaked ?
Code:;;;;; Naha - Shuri declare_counter Shuri_Japan monitor_conditions I_SettlementOwner Tenochtitlan = normans and I_CompareCounter Shuri_Japan = 0 set_counter Shuri_Japan 1 change_settlement_name Shuri Naha end_monitor monitor_conditions not I_SettlementOwner Tenochtitlan = normans and I_CompareCounter Shuri_Japan = 1 set_counter Shuri_Japan 0 change_settlement_name Shuri Shuri end_monitor


Reply With Quote





