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:
weird...
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)
- Conditions
- Or - Any (Conditions) are true
- 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)
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_TitanHeroSpawn), true )
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- 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...
- Events
weird...