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

[Trigger] Help, I tried everything :/

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Help, I tried everything :/ (revive trigger)

After Hero is revived (Hero - Instantly revive revivingHERO[1] at (Position of Fountain 0075 <gen>), Hide revival graphics
), player loses control of it! You are still the owner of it, but you can't select it (yellow circle instead of green).

I tried selecting hero manualy and also unpausing. Nothing helps. I am out of ideas.

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • reviveTIME[1] Equal to 0
    • Then - Actions
      • Hero - Instantly revive revivingHERO[1] at (Position of Fountain 0075 <gen>), Hide revival graphics
      • Camera - Apply human base cam <gen> for Player 1 (Red) over 0.00 seconds
      • Selection - Select revivingHERO[1] for Player 1 (Red)
      • Unit - Unpause revivingHERO[1]
      • Trigger - Turn off (This trigger)
    • Else - Actions
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 4 to (String((reviveTIME[1] - 1)))
      • Set reviveTIME[1] = (reviveTIME[1] - 1)
 
Level 8
Joined
Sep 24, 2007
Messages
300
This is whole trigger. Revive time conditions won't tell you anything.

The reason why I added unpause is, because hero could be paused (maybe because of some other trigger). If you pause hero, it is unselectable, so I added unpause just in case that hero is paused somehow.
 
Level 8
Joined
Sep 24, 2007
Messages
300
I am telling you that event has nothing to do with the problem, but since you insist...

  • cd player 1
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • reviveTIME[1] Equal to 0
        • Then - Actions
          • Hero - Instantly revive revivingHERO[1] at (Position of Fountain 0075 <gen>), Hide revival graphics
          • Camera - Apply human base cam <gen> for Player 1 (Red) over 0.00 seconds
          • Selection - Select revivingHERO[1] for Player 1 (Red)
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row 4 to (String((reviveTIME[1] - 1)))
          • Set reviveTIME[1] = (reviveTIME[1] - 1)
 
Status
Not open for further replies.
Top