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

Advance Rez

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2008
Messages
35
Upon hero death I want them to drop an item (their body), (ok i've done that, not so hard), but then I want that item to be the point of ressurection, a healer must have that item.. to rez the hero (not at the point of the heros death), then the item to disappear. Is there a way to do that? So the healer get the "body" then uses his rez ability and the hero is back in action.

ty in advance =D
 
Level 4
Joined
Feb 20, 2009
Messages
51
Event
Unit - Unit Begins Cast Ability
Condition -
Ability Being Cast Equal to Ressurect and Casting Unit Have BodyRed,BodyBlue,BodyTeal,BodyPurple,BodyYellow and etc. equal to true
Actions -
Unit - Instantly Revive (That unit that have item).

I think taht will work for multipel hero. Bu it leaks so much ;D
 
Level 3
Joined
Nov 3, 2008
Messages
35
thank you again dude, but i'm not too experienced with the GUI... I can't seem to be able to get the casting unit to have any specific items in conditions. These item, because dropped are not on the map.
 
Level 3
Joined
Nov 3, 2008
Messages
35
still, specifying an item(s) that are required for the caster to have is proving impossible without placing them on the map... which defeats the point... =( presets has no items.. functions aren't letting me choose a specific item and variables... well.. do I have to use them in some way?

ty for the help though, that solved one part =)
 
Level 4
Joined
Feb 5, 2005
Messages
38
  • Events
    • Unit casts an Ability
  • Conditions
    • Hero Ability equal to Ressurection
  • Actions
    • If
      • Triggering unit owns item "Body of Player 1"
    • Then
      • Revive Hero1 Instantly
    • Else
      • Do Nothing
    • If
      • Triggering unit owns item "Body of Player 2"
    • Then
      • Revive Hero2 Instantly
    • Else
      • Do Nothing
  • ...
Or do this with arrays and a for-loop. Are you sure this doesn't work? Maybe you will have to loop through the triggering unit's inventory to "find" the body of a hero in its inventory.

If this is not the point please describe your problem in detail again.
 
Level 3
Joined
Nov 3, 2008
Messages
35
I got it working, but the item "body" stayed there, so I proceeded to add remove item located in the inventory of caster of "body" but then the body disappered and revive didn't work =P ahh, fun fun
 
Status
Not open for further replies.
Top