I solved the problem. If a script has any syntax error, the <show me how> button did not highlighted, not allows to run a script. Now my scripts run, but not wery well:(Originally Posted by dzsagon
script
declare_counter state
set_counter state 0
declare_counter loop
set_counter loop 0
console_command add_money -100; just for test to scripts really runs
monitor_event FactionTurnStart FactionType Egypt
and FactionIsLocal
and FactionHasAllies
if DiplomaticStanceFromFaction pontus >= Hostile
set_counter state 1
console_command add_money 2000; just for test to scripts really runs
end_if
if DiplomaticStanceFromFaction pontus < Hostile
set_counter state 0
console_command add_money -2000; just for test to scripts really runs
end_if
end_monitor
monitor_event FactionTurnStart EgyptFactionType Numidia
and not FactionIsLocal
and DiplomaticStanceFromFaction pontus <= Hostile
and I_CompareCounter state = 1
console_command diplomatic_stance numidia pontus war
end_monitor
while I_CompareCounter loop = 0
end_while
end_script
My allies is Nubidia. If I declare war with pontus I want to Nubidia declares war to. But the script not doing this.
Bookmarks