Page 1 of 1

Can you spawn unit mulitple times on same hex?

Posted: Wed Jan 23, 2013 2:48 pm
by Sparatacus
Greetings,

I would like to spawn a unit multiple times on the same hex. Is this possible?

I have tried in 'timed condition' to make unit spawn on turns 1 to -1(last turn), 2 to -1(last turn), 3 to -1(last turn);

I have also tried turn sequence like this 1 to -99, 2 to -98 etc

And 1 to 1, 2 to 2 etc

Not sure if these are even valid scripts but trying to make it happen :)

Anyone know if this is possible or have done it before or can lead me in right direction please reply???

Cheers

Re: Can you spawn unit mulitple times on same hex?

Posted: Thu Jan 24, 2013 8:09 am
by El_Condoro
I think you can if you put each instance of the spawned unit on the map and use the randomize unit placement to use the same zone. Each spawned instance would have its own trigger e.g. turn 1 for one of them, turn 2 for another, turn 3 for another etc.

1. Make the spawn into hex a zone
2. Place the unit instances
3. Set the trigger and randomize unit placement (Shift-click) to be the zone in 1.

I haven't tested this but it should work. :)

Re: Can you spawn unit mulitple times on same hex?

Posted: Sat Jan 26, 2013 1:55 am
by Razz1
Random placement will not work. It places a unit in a random hex including the target hes.

So It will only spawn in the same hex if it rolls that dice.

Re: Can you spawn unit mulitple times on same hex?

Posted: Sat Jan 26, 2013 3:49 am
by El_Condoro
I tested my theory and it does work provided the spawned-in unit moves off the zone hex. If it stays on the spawn-in hex (only one hex with the zone number) the triggered unit appears on its placement hex (from the editor), which is what I think Razz is saying. So if you can set the spawn-in unit to move off the single zone hex you can spawn in multiple units to the same hex.

Re: Can you spawn unit mulitple times on same hex?

Posted: Sat Jan 26, 2013 7:49 am
by Sparatacus
Thanks very much for replying! And I have learnt about this zone and random placement etc so that is good and therefore have a solution in a round about way :D

However I didn't make my intentions very clear and to make it easier to script.

This is what I want to do: On a certain hex I want a submarine to spawn every 6 turns. Can I do this with the same unit instance? Or do I need to create a new unit each time for each instance of the unit?

i.e so I would have 6 subs spawned by turn 36 all with the same characteristics of the 1st sub

Thanks

Re: Can you spawn unit mulitple times on same hex?

Posted: Sat Jan 26, 2013 8:40 am
by El_Condoro
You would need to have an instant of each sub and make sure they move off the (one) zone/spawn hex before the next one arrives. Each one (6) would have the same stats except their trigger would be for turn 6, 12, etc etc.

Re: Can you spawn unit mulitple times on same hex?

Posted: Sat Jan 26, 2013 9:19 am
by Sparatacus
Sweet as thanking you!