• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Random Region Spawning Trigger

I am making this tutorial as a request of Pitakebab.
This tutorial has 3 steps:

---------------------------------------------------------------------------------------------------

1) Create 2 variables: (fig1)
Variable 1: Integer variable. You will call it as "random_number"
Variable 2: Region Variable with array with size 1. You will call it as "region"

---------------------------------------------------------------------------------------------------

2) Create the first trigger: (fig2)

Events:
Map Initialization

Actions:
Set Variable "region" (1) = a Region
Set Variable "region" (1) = a Region
Set Variable "region" (3) = a Region
etc... according with the number of regions then you want.

---------------------------------------------------------------------------------------------------

3) Create the seccond trigger: (fig 3)

(Your events and conditions)

Actions:
Variable - Set random_number =(Random integer number between 1 and 4)
Unit - Create 1 Unit for Player at (Center of region[random_number]) facing Default building degress

---------------------------------------------------------------------------------------------------

Done =)
 
Last edited:
Level 8
Joined
Jan 18, 2007
Messages
331
well im not a expert nor a mod but shuldent it be a totoral thats easy to understand and that you dont get a headace by watching it? ham ham please make´it easier to read and look better, mabey wit a attachment or 2, elles great work=)
 
Top