Can you spawn unit mulitple times on same hex?

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Design, Panzer Corps Moderators

Post Reply
Sparatacus
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 139
Joined: Mon Aug 08, 2011 1:49 am

Can you spawn unit mulitple times on same hex?

Post 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
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

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

Post 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. :)
Razz1
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 3308
Joined: Tue Jan 18, 2011 4:49 am
Location: USA

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

Post 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.
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

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

Post 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.
Sparatacus
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 139
Joined: Mon Aug 08, 2011 1:49 am

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

Post 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
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

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

Post 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.
Sparatacus
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 139
Joined: Mon Aug 08, 2011 1:49 am

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

Post by Sparatacus »

Sweet as thanking you!
Post Reply

Return to “Panzer Corps : Scenario Design”