Random Events....

Ninva

Анна Ахматова
Reaction score
377
I'll like to have random events... But I'm not sure how... I already had a problem with the keys... And one thing I don't know how to make my map rain...

The random events I want is, raining everyone once in awhile.
Hero units get sick everyone once in awhile. (When I say get sick is every 10 secs or so, they lose -20.00 hp and doesn't regenerate...... But how you do a random event.... o_O is there such a thing? :confused:
Well, thanks for helping. :D
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Basic weather, for inspirational purposes only:

Code:
Weather
    Events
        Time - Every (Random real number between 240.00 and 360.00) seconds of game time
    Conditions
    Actions
        Environment - Turn Weather Off
        Set tmpInteger = (Random integer number between 1 and 3)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                tmpInteger Equal to 1
            Then - Actions
                Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                tmpInteger Equal to 2
            Then - Actions
                Environment - Create at (Playable map area) the weather effect Lordaeron Rain (Light)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                tmpInteger Equal to 3
            Then - Actions
                Environment - Create at (Playable map area) the weather effect Outland Wind (Light)
            Else - Actions
        Set Weather = (Last created weather effect)
        Environment - Turn Weather On

"Weather" is a variable of type "Weather effect",
"tmpInteger" a variable of type "Integer".
 
G

Ghoulfrenzy

Guest
To make rain:

Code:
Event
Every X seconds of game time

Action
Environment- Create at Entire Map the weather effect (Choose what type of rain you want)

Wait X seconds

Environment- Turn Last Created Weather Effect Off

Hope that helps.

-Ghoulfrenzy
________________________________________________

Like Video Game Music? Join the Community of Video Game Music Remixers at OCremix.org!!! :D

EDIT- Darn...Acehart beat me too it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top