Part 1 :
Alright , you made a script , but with the previous commands and conditions , you won't be able to get some nice results . That's why we'll dig a little deeper .
First of all , I'll show you a new condition . Also a pretty basic one , and it also involves 'Factions' . This is how you should put it in your script :
Code:
I_FactionType greek_cities
As you could probably see , this condition looks if you're the stated faction , in this case , if you're playing as the greeks
Part 2 :
However , you can't just use it like our previous condition .. So you can't use it this way :
Code:
monitor_event I_LocalFaction greek_cities
However , there are 2 other ways to do it :
Either you use this :
Code:
monitor_event FactionTurnStart FactionIsLocal
and I_LocalFaction greek_cities
-your commands-
end_monitor
or this :
Code:
if I_LocalFaction greek_cities
-yourcommands-
end_if
i suggest you use the first options , as you probably don't know what an 'if' is , although you can probably guess it

So , if we use our new script :
Code:
monitor_event FactionTurnStart FactionIsLocal
and I_LocalFaction greek_cities
console_command add_money greek_cities 1000
end_monitor
Instead of our previous script , this won't occur each time it's your turn . You also need to be playing as the greeks . So , you need to be playing as the greeks , and it needs to be your turn , in order to activate the command .
Now , we also need a new command . We'll take a very popular , and probably the most used one : The spawn_army command ..
this is how it should be listed in your script :
Code:
spawn_army
faction 'faction' ; (so for instance , greek_cities)
character "character name" ,'type of character' (for instance , general , named_character , ...) ,age ,coörds
'list of units' , for instance :
unit greek general's guard cavalry early, 'amount of soldiers' 'exp' 'armour' 'weapon_lvl'
end
Now , this won't work ofcourse .. We need to get some working names , coörds , factions , etc .. So , if we do everyting correctly , it should look like this :
Code:
spawn_army
faction greek_cities ; So this will spawn an army for the greek faction
character Polydoros, general, age 25, x 123, y 65
unit greek general's guard cavalry early, 30 exp 5 armour 2 weapon_lvl 3
end
This will spawn a general for the greeks called Polydoros , who'll be of age 25 , and he'll be spawned on the listed coördinates . As for the units , there'll be a greek early general , with 30 units , 5 experience bonus , 2 armour bonus , and 3 wep_lvl bonus .
But i won't go any deeper here , as there are already lots of tutorials about this command :
HouseOfHam's tutorial :
Tutorial
Now , if we use this command in a script , combined with our new conditions , it should look like this :
Code:
monitor_event FactionTurnStart FactionsIslocal
and I_LocalFaction greek_cities
Code:
spawn_army
faction greek_cities ; So this will spawn an army for the greek faction
character Polydoros, general, age 25, x 123, y 65
unit greek general's guard cavalry early, 30 exp 5 armour 2 weapon_lvl 3
end
end_monitor
Alright , we now have a more complicated script than our previous one .