• 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 Choosing

Status
Not open for further replies.
Level 22
Joined
Sep 24, 2005
Messages
4,821
How do you exactly "change the weather"?

Anyway, if it's something like a weather effect, you can put them in an array and use a random integer to pick which index to use:

  • Set Index = (Random integer number between 1 and 3)
  • Environment - Turn WeatherEffect[Index] On
 
Level 6
Joined
May 20, 2014
Messages
228
> How do you get the Set Index thing?

It's a variable as an integer, and done via an action using Set Variable, then define the variable as a random number.
 
Status
Not open for further replies.
Top