1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Resurrecting Heroes

Discussion in 'World Editor Help Zone' started by Spectre4802, Apr 14, 2009.

  1. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    As an RPG is populated almost entirely by heroes, and the fact that it's inevitable that one of those heroes will die, is it possible to resurrect heroes as you would resurrect a unit?
     
  2. Skudgemuffin

    Skudgemuffin

    Joined:
    Jan 18, 2007
    Messages:
    180
    Resources:
    3
    Maps:
    2
    Tutorials:
    1
    Resources:
    3
    I don't recall ever "resurrecting" a regular unit, but is this what you mean?
    • Hero - Instantly revive Paladin 0000 <gen> at (Center of (Playable map area)), Show revival graphics
     
  3. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    The spell "Ressurection" for the Paladin in W3 lets you revive 6 nearby friendly corpses. Thats what i mean by 'Resurrecting'. I hope that made it a bit more clearer.

    But you have given me an interesting idea...
     
  4. hoplitespear

    hoplitespear

    Joined:
    Mar 2, 2006
    Messages:
    34
    Resources:
    0
    Resources:
    0
    Check the ability properties of ressurection. There should be a line:

    Stats - Targets Allowed
    I think if u add hero there it should work, and just put the number of corpses raised to 1 and this way you should be able to ressurect a hero.
     
  5. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Doesn't work.

    I think its impossible, because heroes don't leave a corpse.
     
  6. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,776
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    What if you change the "Combat - Death Type"?

    That defines the properties the unit/building/hero's corpse has after it is killed. Determines whether it can be raised by abilities such as "Raise Skeleton" or "Animated Dead", and also whether it experiences natural decay or not.

    Might be worth checking out ^^
    (set it to "can raise, can decay" or something)
     
  7. Dr Super Good

    Dr Super Good

    Spell Reviewer

    Joined:
    Jan 18, 2005
    Messages:
    26,100
    Resources:
    3
    Maps:
    1
    Spells:
    2
    Resources:
    3
    Um.... Heroes do have corpses. When a hero dies, its body is hidden and moved to the edge of the map I rememeber reading and seeing. Thus why you should always remove heroes that will never be resurrected again.

    Try moving the hero back to where it died and unhiding it.
     
  8. mikeaadams

    mikeaadams

    Joined:
    Mar 25, 2008
    Messages:
    5
    Resources:
    0
    Resources:
    0
    Just give all the heroes reincarnation with like a 1 second cooldown so you never have to wait if they die.
     
  9. Just_Spectating

    Just_Spectating

    Joined:
    May 16, 2007
    Messages:
    7,022
    Resources:
    46
    Models:
    11
    Icons:
    9
    Skins:
    26
    Resources:
    46
    Giving the heroes reincarnation means that they never really die. so any Death Running triggers on the heroes would not work.
     
  10. jadegolem

    jadegolem

    Joined:
    Feb 1, 2008
    Messages:
    293
    Resources:
    0
    Resources:
    0
    Revive them Via Trigger
     
  11. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,776
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    If Dr. Super Good is right (and I think he is), this won't work, since the ressurection-spell needs to be in a certain area (let's say 600), but the body of the heroes are moved to the edge of the map (and thus probably no within 600AoE of the caster).
     
  12. manstie

    manstie

    Joined:
    Mar 10, 2008
    Messages:
    847
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Maybe you could make a dummy spell, that when you "use" it, it opens up a menu which u can click on the name of a player to revive. Then do the rest trigger.
     
  13. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    All brilliant ideas!

    Rep shower!
     
  14. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Unfortunatly, this doesn't work. The resurrection spell couldn't seem to find any corpses.
     
  15. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,776
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    What if you combine that with Dr Super Good's idea?
    Move the corpse of the hero to the position of the dying unit (I suggest to wait a moment before doing that).

    (It appears that the corpse of the hero is moved to the edge of the map)
     
  16. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Would this be the right trigger?

    • Action - Unit - Create a (Unit-type of (Triggering unit)) corpse for Player 1 (Red) at (Position of (Triggering unit))
     
  17. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,776
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    Not really, since the hero has a corpse, it has just been moved.
    Try this:
    • Set TempLoc = (Position of (Triggering unit))
    • Wait X.XX seconds
    • Unit - Move (Triggering unit) instantly to TempLoc
    • Custom script: call RemoveLocation(udg_TempLoc)

    The wait has to be a little bit more than the duration of his death-animation, since he is moved after that (I think)
    Be sure to set the Hero's death type to "Can Raise, Does Decay".

    If this doesn't work, you can try yours, but you have to keep this in mind:
    - You have created a new hero then, so it will be completely resetted
    - The other hero needs to be removed

    (and if it doesn't work, Dr. Super Good was wrong :O - that's something you don't see a lot ^^)
     
  18. jadegolem

    jadegolem

    Joined:
    Feb 1, 2008
    Messages:
    293
    Resources:
    0
    Resources:
    0
    • Events
      • Unit - A unit dies
    • Conditions
      • Borlean - Dying unit is a (Hero) equal to true
    • Actions
      • Hero - Revive (Dying Unit) at (Position of (Dying Unit))
     
  19. ap0calypse

    ap0calypse

    Joined:
    Jan 26, 2007
    Messages:
    4,776
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    He wants to revive them with a spell (ressurection), your trigger is just a hero-revive system (which leaks by the way, use variables to remove the leak).

    You can create the entire spell with triggers, but if there is an easier solution...
     
  20. Spectre4802

    Spectre4802

    Joined:
    Jan 6, 2009
    Messages:
    99
    Resources:
    0
    Resources:
    0
    Dr Super Good said

    Im trying to figure out how to go about doing this in the Trigger Editor.