• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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