Two Questions

Aaronx

New Member
Reaction score
6
First, this is the trigger I have for Enemy Drops:

Code:
Whunter and Warrior
    Events
        Unit - A unit owned by Player 11 (Dark Green) Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Wasteland Hunter
    Actions
        Set MonsterRespawnNumber = (Random integer number between 1 and 100)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                MonsterRespawnNumber Less than or equal to 20
            Then - Actions
                Wait 340.00 seconds
                Unit - Create 1 Centaur Warrior for Player 11 (Dark Green) at (Random point in Kami Respwn <gen>) facing Default building facing degrees
            Else - Actions
                Wait 360.00 seconds
                Unit - Create 1 Wasteland Hunter for Player 11 (Dark Green) at (Random point in Hunter Respawn <gen>) facing Default building facing degrees

I now need there to be even another possibility for respawn creature, though. Can I add another If/Then/Else to the current Else ?

I can't remember question two right now >.>
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
You can nest as many if/then/else blocks as you want (basically). So there's no problem in adding another one inside your current.
 

Aaronx

New Member
Reaction score
6
I remembered! What Event would I use to signify a collapsing Gold Mine? I would like to make a Trigger that after about 10-15 Minutes creates another GM a Random distance, but not farther than like 50 feet away from the Original or something. I just don't know where to start =O.
 

bOb666777

Stand against the ugly world domination face!
Reaction score
117
I think A unit dies - condition = Unit type == goldmine works

Also i think there's a limit of like, 20-25 if/then/else's inside each other. Not sure about that.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top