Help With This Revive Trigger

comparami

New Member
Reaction score
4
Im using this reive trigger from SD_Ryoko, and there happens to be something wrong. It revives all the heroes properly except for "ONE", why is that? is there any way that i could fix that?

here's the trigger:
Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local integer HEROWAIT
      • Custom script: local timer OURTIMER
      • Custom script: local unit OURHERO
      • Custom script: set OURHERO = GetDyingUnit()
      • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 2 + 2 )
      • Custom script: set OURTIMER = CreateTimer()
      • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
      • Custom script: call PolledWait( HEROWAIT )
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
              • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
              • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
              • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_OlympianHeroSpawn), true )
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
                  • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                  • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                  • (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
                  • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
            • Then - Actions
              • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_TitanHeroSpawn), true )
            • Else - Actions
      • Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |cff08BDDEYour Hero...


weird...
 

Aniconic

I am the very model of a modern major general!
Reaction score
3
Is the one hero always from a particular player, or is it somewhat random?
 

comparami

New Member
Reaction score
4
this hero does not revive for any player, its so weird. i dont understand why is it like that.. so confused, i should post my map huh?
 

comparami

New Member
Reaction score
4
okay, now i see what's the problem, its not the hero, but the revive system itself :( ... im using the revive system of SD_Ryoko, and its buggy.. can someone help me create a revive system? i really need it for my map.

here's the edited revive system again:

Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local integer HEROWAIT
      • Custom script: local timer OURTIMER
      • Custom script: local unit OURHERO
      • Custom script: set OURHERO = GetDyingUnit()
      • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 2 + 2 )
      • Custom script: set OURTIMER = CreateTimer()
      • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
      • Custom script: call PolledWait( HEROWAIT )
      • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_ReviveSpot), true )
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |cff08BDDEYour Hero...


after it doest revive one hero, it still revives the other hero, i think this system is not MUI? am i right? or is it really buggy, please someone create me a non-buggy revive system for my heroes, or help me fix this.. :banghead:
 

Handsomeboss

Active Member
Reaction score
0
I can show you but I don't know how to post trigger because I'm new memmber. I also have my own map like JDay and it can revive all the dead Hero very well. I'm playing with my friends my map instead of JDay map
 

Handsomeboss

Active Member
Reaction score
0
I haven't known anything about custom script but I have a simple way to revive your Heroes.
Trigger:
timep1
Events
Unit - A unit owned by Player 1 (Red) Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Unit Group - Add (Dying unit) to DeadHeroes
Set count[1] = (10.00 + ((Real((Level of (Dying unit)))) x 4.00))
Countdown Timer - Create a timer window for Revive[1] with title (Reviving + (Name of (Owner of (Dying unit))))
Set TimerWindow[1] = (Last created timer window)
Countdown Timer - Start Revive[1] as a One-shot timer that will expire in count[1] seconds
Wait count[1] seconds
Trigger - Run Revivep1 <gen> (checking conditions)


Revivep1
Events
Time - Revive[1] expires
Conditions
Actions
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
Loop - Actions
Hero - Instantly revive (Dying unit) at ((Owner of (Dying unit)) start location), Show revival graphics
Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + has revived)
Countdown Timer - Hide TimerWindow[1]
Camera - Pan camera for (Owner of (Dying unit)) to ((Owner of (Dying unit)) start location) over 2.00 seconds
Unit Group - Remove (Dying unit) from DeadHeroes



this is my trigger for player 1. Do that to all players in your map. It will work and I'm sure it has no problem.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top