Hello!
I'm trying to create a simple wave/ round based 2 player map. Both player positions are in the center of the map, a 3rd dummy position is in the top left. I put the Easy Tank General AI there (in the in-game lobby) which I modified in my skirmish scripts (it was never used anyway).
I can spawn an instance of a Battlemaster team at some waypoint and let it attack move to the center of the map, based on an ESCALATION counter first and then a wave counter later.
The question now is: How can I create X teams at wave Y?
I wish I could do something like this:
Every 60secs: Increase _ATTACK_WAVE by 1.
Set a counter named _SPAWN_BMS to let's say _ATTACK_WAVE.Every frame: If _SPAWN_BMS > 0, then spawn a team (at some (_SPAWN_WAYPOINT++)%8) and decrement _SPAWN_BMS.
However, the italic part is where I am failing right now. I can only set my _SPAWN_BMS counter to a fixed value.
Is there anything I can do to realize that? I've had a look at the timer stuff but that doesn't seem right either. I've thought maybe I would need to start additional scripts recursively or iteratively (which then spawn additional teams in the future) but I hope I can avoid that just with a counter or 2.
Thanks for reading.
EDIT: Oh this is probably the wrong forum, sorry!
Edited by user Friday, March 31, 2017 3:21:47 AM(UTC)
| Reason: Not specified