Log in

View Full Version : Creating a script



Ossie The Great
02-26-2007, 21:24
hi is there any way were you can creat a script that allows buildings to appear in building que on certain date.

like is there a guide or anything :thinking2:

Atilius
03-02-2007, 02:57
No.

But you can use a script to create a building given some event or condition (such as a specific turn number) in a specified settlement.

Ossie The Great
03-02-2007, 09:53
No.

But you can use a script to create a building given some event or condition (such as a specific turn number) in a specified settlement.

do u know how to do that then :grin:

for i really need to know

Atilius
03-07-2007, 06:07
Pardon me for neglecting you oscar.

You would use an event monitor something like this in your script:


monitor_event FactionTurnStart FactionType greek_cities
and I_TurnNumber = 31
and I_SettlementOwner Sparta = greek_cities
console_command create_building Sparta "army_barracks"
end_monitor
This would create an army_barracks building in Sparta on the 31st turn of the game if Sparta were controlled by the greek cities.

spurs_dan21
03-24-2007, 11:53
atilius am i putting that in the descr_strat or where? i understand the scripting its just where each bit goes for me.

Turk2
03-24-2007, 12:04
Hi,
you can must put it in the folder:data/scripts

Roman_Man#3
03-24-2007, 15:18
Check out ER's awesome scripting guide in the scriptorium(coincidence?) and you will surely find your answer.

Cheers,
RM3

Ossie The Great
03-24-2007, 15:56
Thanks . a lot