trigger_random

Description

This unique entity allows mappers to set up random events, monster spawns, etc. If you look at the entity you will see a number of new variables and boxes. Most of them are relatively self-explanatory.

Attributes

Name (targetname) - The name that identifies the entity.

Target Count (target_count) - The number of target boxes (listed below) that you wish to used. If, for example, you want a 50% chance of Target1 being triggered, and a 50% chance of Target2 being triggered, you would set this to 2. The 3rd, 4th, and 5th boxes would then be unused. To use more of the boxes, with an equal chance of each being triggered, increase the Target Count value.

Target 1 - Target 5 (target1 - target5) - This is where you enter the names of the entities you want targeted, one to a box. Note that only one of the listed entities will be triggered when the trigger_random is activated. Some used boxes can be left blank (to create a possibility of nothing being triggered), if you so wish. Extra, unused boxes should be left blank.

Flags

N/A

Additional info

Even though trigger_random is limited to 5 possible targets, you can use these to trigger other trigger_randoms and create a branching effect. This allows for a nearly unlimited number or possibilities.