• 🏆 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 Event Trigger

Status
Not open for further replies.
Level 3
Joined
Aug 6, 2009
Messages
45
I have an idea of how to make random events but i'm not sure if it would work.

if i had the variables
Timer2 = a repeating timer of 5 seconds
and
Random1 = an integer value

and had the 2 triggers

  • Event: A timer (Timer2) expires
  • Action: Set variable (Random1) <gen> to (Random1) +1.
and
  • Event: (Random1) is equal to (Random integer between 1 and 5000)
  • Action: <add random event here>
would this work?
 
Status
Not open for further replies.
Top