- Joined
- Jan 23, 2008
- Messages
- 384
-
Revive Hero
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
-
Actions
-
Custom script: local timerdialog WINDOW
-
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)+5) * 2 )
-
Custom script: set OURTIMER = CreateTimer()
-
Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
-
Custom script: call CreateTimerDialogBJ( OURTIMER, GetPlayerName(GetOwningPlayer(OURHERO)) )
-
Custom script: set WINDOW = GetLastCreatedTimerDialogBJ()
-
Custom script: call TimerDialogDisplayForPlayerBJ( true, WINDOW, GetOwningPlayer(OURHERO) )
-
Custom script: call PolledWait( HEROWAIT )
-
Custom script: call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayableMapRect()), true )
-
Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
-
Custom script: call DestroyTimerDialog(WINDOW)
-
-
Hi ! the trigger up there is the trigger that i use to revive the dead heroes on my map but if i manually revive my hero from a tavern the clock still goes on ... can someone tell me how to fix it ... i do not know jass very well so pls explain it to me or tell me what to do ... ty ...
Ty for your time !
~MA