
Originally Posted by
attyla
Without condition
PHP Code:
and not event_counter player_hre 1
works well.
I can't understand why, because i have the same script for all of factions and other works fine.
This is the event:
PHP Code:
declare_counter player_hre
monitor_event FactionTurnStart FactionType hre
if I_IsFactionAIControlled hre
set_event_counter player_hre 1
end_if
terminate_monitor
end_monitor
You don't need to add an event for the use of event_counters and event_counters must not be declared.
It's totally fine if you use it like:
Code:
monitor_event PreFactionTurnStart FactionType hre
if I_IsFactionAIControlled hre
set_event_counter player_hre 1
end_if
terminate_monitor
end_monitor
I guess you're doing it for all other factions alike. If not so, it's sort of more elegant to use:
Code:
monitor_event PreFactionTurnStart IsFactionAIControlled
and FactionType hre
set_event_counter player_hre 1
terminate_monitor
end_monitor