To these questions , my idea is to spawn the army only once at a specific date, for instance the first Greek army (Phyrrus) on summer 275 BC. I've restested my script (without editing from the frist spawn (in 275) to the second (in 246) and it works both times. The only this is if I save the game and reload. The second spawn (hamilcar in Sicily) keeps respawning every time I load the game and so the third one (Gaul) in 236 ..(not quite sure the date , but something like that.. )- Do you want the spawning armies to appear in a specific date or only from a given year (in a randomly chosen date)?
- Do you want the armies to spawn only once in game?
- Do you want the armies to spawn at the same time?![]()
Actually I tried to read the docudemon file .. but coun't make any sense of it.Just to test the syntax, you can prepare a short script that would allow one army to spawn in one early date (let's say turn number 2).
Several advices:
- You must declare all the counters used along the script: declare_counter spawn_armyA, etc.
- If the army must appear when the counter is zero, you must use the command: I_CompareCounter spawn_armyA = 0 (see the docudemon files).
Put it as part of the monitor_event
- Once the army appears, you must change the counter, either setting the value or increasing one unit: set_counter spawn_armyA 1Might be because of my poor command of English or my zero knowledge about codes / pc scripts etc..
![]()
Guess this is what I'm gonna do. Thanks for the advice and I'm gonna see how it works. Just a quick question, will the script take any effect in middel of campaign ? Or will have to restart a new one ?In any case, if the army is going to appear only once in a given date, forget the counter and set just the turn number.
If the armies appear in different turns (with a given order), you can use only one counter, and put in the event the different values (for army A, I_CompareCounter spawn_armyA = 0; for army B, I_CompareCounter spawn_armyA = 1; etc).
Bookmarks