Introducing scripted reinforcement units at specific turn?

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

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

Post Reply
the_iron_duke
Captain - Bf 110D
Captain - Bf 110D
Posts: 862
Joined: Tue Nov 01, 2011 1:45 pm

Introducing scripted reinforcement units at specific turn?

Post by the_iron_duke »

Is it possible with the scenario editor to introduce new units into a custom scenario at a specified turn. For example, say I wanted a Grenadier unit named 'II./Pz.Gr. 99' to enter the game at hex (1,10) on Turn 5 can this be scripted?
McGuba
Colonel - Ju 88A
Colonel - Ju 88A
Posts: 1572
Joined: Thu Mar 15, 2012 7:34 pm

Re: Introducing scripted reinforcement units at specific tur

Post by McGuba »

Very easily. Just place the unit normally where you want it to appear e.g. 1,10. Then click on the unit while holding down the "Shift" key to pop up the unit parameters slider where you can add a specific name and other useful things like experience. Then click on "Edit trigger" at the bottom of the unit parameters slider then click "Edit time condition" and enter the number of the turn you want the unit to appear. For example if you enter "Turn between 5 and 10" the unit will appear in turn 5, unless its hex is occupied by another unit in that turn. If so, it will appear in turn 6, 7, ... until the hex is unoccupied. However, if it cannot be placed until turn 10 for the same reason then it will not appear in the scenario.

Note that you can also randomize unit placement by adding a radius around its hex OR by specifying a zone in which the unit will appear. In this way you can have more than one unit appear in the same hex but in different turns.
ImageImage
slitherine.com/forum/viewtopic.php?f=147&t=47985
slitherine.com/forum/viewtopic.php?f=147&t=36969
the_iron_duke
Captain - Bf 110D
Captain - Bf 110D
Posts: 862
Joined: Tue Nov 01, 2011 1:45 pm

Re: Introducing scripted reinforcement units at specific tur

Post by the_iron_duke »

Thanks for the reply and instructions - I'll give it a go.

I'm thinking of making a scenario with two Panzer/armoured divisions and one infantry division on each side at the start, with an additional Panzer/armoured division appearing as reinforcements after a few turns.
McGuba
Colonel - Ju 88A
Colonel - Ju 88A
Posts: 1572
Joined: Thu Mar 15, 2012 7:34 pm

Re: Introducing scripted reinforcement units at specific tur

Post by McGuba »

Absolutely possible. Just do not forget to draw the player's attention to it by adding the message script "Reinforcements have arrived: the xy Division is awaiting your orders!" or something like that, and maybe also coupled with a center on hex command in the same script.
ImageImage
slitherine.com/forum/viewtopic.php?f=147&t=47985
slitherine.com/forum/viewtopic.php?f=147&t=36969
the_iron_duke
Captain - Bf 110D
Captain - Bf 110D
Posts: 862
Joined: Tue Nov 01, 2011 1:45 pm

Re: Introducing scripted reinforcement units at specific tur

Post by the_iron_duke »

McGuba wrote:Absolutely possible. Just do not forget to draw the player's attention to it by adding the message script "Reinforcements have arrived: the xy Division is awaiting your orders!" or something like that, and maybe also coupled with a center on hex command in the same script.
Good idea. Thanks for the help.
Molve
Master Sergeant - U-boat
Master Sergeant - U-boat
Posts: 538
Joined: Wed Jul 27, 2011 10:06 am

Re: Introducing scripted reinforcement units at specific tur

Post by Molve »

I might add that several official scenarios add a simple time condition of, say [9,9]

Meaning that the unit(s) appear on turn 9.

No safeguarding measures are taken in this case to account for the case when the hex is already occupied.

However, since it is so easy to follow the advice you've already been given, I too suggest you replace the above with [9,-1] meaning that the game tries more than once to give you the unit: in this case from turn nine every turn all the way until the last turn (-1 meaning "the first turn from the end of the scenario", or as you and I would say it, "last turn" :) ).
the_iron_duke
Captain - Bf 110D
Captain - Bf 110D
Posts: 862
Joined: Tue Nov 01, 2011 1:45 pm

Re: Introducing scripted reinforcement units at specific tur

Post by the_iron_duke »

Thanks for the additional info!
Post Reply

Return to “Panzer Corps : Scenario Design”