Rare mobs needs some help!

Tholdalf

New Member
Reaction score
2
Well i tried it all but this dosn´t seem to work for me.

I have some unit on my map that should be random eg. sometimes when you play theyer there other times dont but i can´t seem to get the random part to work. Anyone that can help me?
 

linamus

I r bak!
Reaction score
57
Create Unit-type variable with array
At map initializaton do this:

Actions:
Set Variable [0] = One unit
Set Variable [1] = Other unit
Set Variable [2] = Other unit
Set Variable [3] = Other unit
Add as much units as you want

And in other trigger, with your desired event and condition, do this:

Actions: Create/Remove/Replace/other Unit with Variable [random integer between 0 and #]





-------------------------
Best Ideas Comes When You're Not Thinking
The Land Of Wonders: http://www.thehelper.net/forums/showthread.php?t=86883
 

konerboy

Run piggy Run!
Reaction score
95
yeah like Linamus said.

or this way, I used a Integear variable.


Code:
Untitled Trigger 001
    Events
        Time - Elapsed game time is 60.00 seconds
    Conditions
    Actions
        Set RareMOB = (Random integer number between 1 and 10)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RareMOB Equal to 1
            Then - Actions
                Unit - Create 1 Illidan (Evil) for Player 12 (Brown) at (Center of (Playable map area)) facing Default building facing degrees
                Game - Display to (All players) the text: Oh no!! WTF Illidan...
            Else - Actions
                Game - Display to (All players) the text: Rare Mob didn't spawn


this give it 10% chance to spawn 1 illidan (evil) at center of map
 
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