How to do random unit spawns?

Moderators: The Artistocrats, Order of Battle Moderators

Post Reply
best75
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 386
Joined: Mon Jun 10, 2013 11:15 am

How to do random unit spawns?

Post by best75 » Wed Aug 02, 2017 1:17 am

How do I use the triggers to do random unit spawns.

bru888
Order of Battle Moderator
Order of Battle Moderator
Posts: 3373
Joined: Sun Jan 10, 2016 5:39 pm

Re: How to do random unit spawns?

Post by bru888 » Wed Aug 02, 2017 3:09 am

Here's an example. Click each image.

A Random Trigger is used to randomly choose one of six possibilities to be subsequently activated by triggers Carriers 1 through Carriers 6. Notice only the Random Trigger is active from the start:
Screenshot 1.jpg
Screenshot 1.jpg (107.77 KiB) Viewed 667 times
When it is randomly chosen, one of the Carriers triggers will place three Japanese carriers in three spots selected by Target Hex. Only three carriers end up on the map, but there are six sets of three possible locations each, for a total of 18:
Screenshot 2.jpg
Screenshot 2.jpg (101.72 KiB) Viewed 667 times
Answered indirectly is this possible question: Can the unit types themselves be randomized, not just their placement? Sure, but each one has to be planned and built into a trigger. Nothing is actually randomized other than the random selection of a series of alternative "sub-triggers," if you will. It all has to be programmed in detail.
- Bru

best75
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 386
Joined: Mon Jun 10, 2013 11:15 am

Re: How to do random unit spawns?

Post by best75 » Wed Aug 02, 2017 10:30 am

I am understanding the random trigger and how to do random placements now. Thanks for the answer

bru888
Order of Battle Moderator
Order of Battle Moderator
Posts: 3373
Joined: Sun Jan 10, 2016 5:39 pm

Re: How to do random unit spawns?

Post by bru888 » Wed Aug 02, 2017 2:07 pm

My pleasure. One follow-up thought; this number is important:
2017-08-02_03.jpg
2017-08-02_03.jpg (15.44 KiB) Viewed 651 times
Here, it is set to randomly choose only one of the Carriers sub-triggers. Say, however, that I actually wanted to place six carriers on the map randomly, instead of just three. Then I would set this number to "2" and it would activate two sub-triggers, three carriers each, equals six.
- Bru

Post Reply

Return to “Order of Battle : World War II - Scenario Design”