• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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