I'm trying to make a script to spawn an army after a certain amount of turns.
(for now I tried after 2 turns)
script
monitor_event FactionTurnStart FactionType slave
and I_TurnNumber = 2
if spawn_armyA=0
spawn_army
faction macedon
character Alexander, named character, command 9, influence 9, management 9, subterfuge 0, age 28, , x 104, y 67
unit levy pikemen, exp 5 armour 0 weapon_lvl 2
unit levy pikemen, exp 5 armour 0 weapon_lvl 2
unit levy pikemen, exp 5 armour 0 weapon_lvl 2
unit levy pikemen, exp 5 armour 0 weapon_lvl 2
unit levy pikemen, exp 5 armour 0 weapon_lvl 2
set_counter spawn_armyA 1
end_if
terminate_monitor
end_monitor
end_script
I put it with the rest of the scripts in the scripts/showme folder, but it does nothing.
And when I add it to descr_strat, it crashes without showing an error.
What do I have to change to make it work?
Bookmarks