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

Randomizing

Status
Not open for further replies.
Level 9
Joined
Sep 8, 2004
Messages
633
There's an action to set a made integer to a random number between x and y.
Where x and y are numbers chosen by yourself.
Then every q amount of seconds, run your trigger.

The trigger should be something like:

-Set Rain to a random number between 1 and 3
If/then/else
-If rain is equal to 2
-Then 'make rain'
-Else 'do nothing'

Also can you make it so it sets the variable rain to a random number between lets say 120 and 360, then convert the integer to a real value, and make a trigger that runs every 'your random value' times.
 
Status
Not open for further replies.
Top