HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating a trigger in a trigger, not working

02-07-2007, 06:36 AM#1
Mythic Fr0st
Trigger:
Revive Allied heroes
Collapse Events
Unit - A unit Dies
Collapse Conditions
(Backpack_Unit[(Player number of (Owner of (Dying unit)))] has an item of type Revitalize) Equal to False
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Unit-type of (Dying unit)) Equal to Ice Lord
(Unit-type of (Dying unit)) Equal to Elvish Ranger
(Unit-type of (Dying unit)) Equal to Flame Mage
(Unit-type of (Dying unit)) Equal to Crystalized Golem
(Unit-type of (Dying unit)) Equal to Ghost
(Unit-type of (Dying unit)) Equal to Obliterator
Collapse Actions
Set R_P_N = (Player number of (Owner of (Triggering unit)))
Countdown Timer - Start Timer[R_P_N] as a One-shot timer that will expire in 23.00 seconds
Countdown Timer - Create a timer window for Timer[R_P_N] with title ((Name of (Owner of (Dying unit))) + 's revive)
Set TimerWind[R_P_N] = (Last created timer window)
Set SpecialLoc[R_P_N] = (Center of Rect 035 <gen>)
Unit - Hide Backpack_Unit[R_P_N]
Trigger - Reset Revive_Allied_Heroes_Trig[R_P_N]
Trigger - Add to Revive_Allied_Heroes_Trig[R_P_N] the event (Time - Timer[R_P_N] expires)
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Hero - Instantly revive (Dying unit) at SpecialLoc[R_P_N], Hide revival graphics)
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Unit - Unhide Backpack_Unit[R_P_N])
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Unit - Move Backpack_Unit[R_P_N] instantly to SpecialLoc[R_P_N])
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Countdown Timer - Destroy TimerWind[R_P_N])
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Camera - Pan camera for (Owner of (Dying unit)) to SpecialLoc[R_P_N] over 0.00 seconds)
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Point - Remove SpecialLoc[R_P_N])
Trigger - Take Revive_Allied_Heroes_Trig[R_P_N] and add this action: (Trigger - Destroy Revive_Allied_Heroes_Trig[R_P_N])

My Hero is suppost to revive, but nothing happens
02-07-2007, 01:53 PM#2
Fireeye
For such an action i would use jass with a timer, it's much easier though.
02-07-2007, 08:37 PM#3
Mythic Fr0st
K i'll try, thanks