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

Hero moved to location upon Ankth'ing...

Status
Not open for further replies.
Level 2
Joined
May 10, 2008
Messages
15
Hello! I'm making an ORPG, and i've run into a wall. In my map, you only have a set amount of lives to start with, and it's difficult to aquire extra lives; they're represented by an ankth-like item held in your inventory. I can't seem to figure out how to have heros ressurect at thier starting location, but still using the ankth to ressurect. My idea is basically the same thing as how the Aegis of the Immortal works in DoTA, after 'dieing' the user is ressurected at thier start location. If anyone can help me out, i'de be very greatful; this is a pretty big thing for my map if I ever want it to come together! Any help/advice would be very good, wether it be the trigger or direction to a tutorial, etc. I prefer GUI, but I can work with JASS if necessary. Thank you =)
 
k thats VERY easy btw,here you need to change the (your unit) into your units and the slots part
  • respawn area
    • Events
      • Unit - (your unit) Dies
    • Conditions
      • (Item carried by (your unit) in slot (x)) Equal to (the revive item)
    • Actions
      • Hero - Instantly (your hero) at (Center of Region (x)), Hide revival graphics
 

Attachments

  • Region.jpg
    Region.jpg
    30.5 KB · Views: 90
Level 2
Joined
May 10, 2008
Messages
15
Well, thanks for trying, but it's not that simple. Heros are chosen ingame, so you couldn't use a Specific Unit Event. Next, that trigger wouldn't take account of the ankth charge being used. The idea is that you have say, 3 lives, die, ressurect at home, and now only have 2. But thanks for a reply atleast =)
 
Level 2
Joined
May 10, 2008
Messages
15
Just tried it, it doesn't work. And the charges do matter, that's the whole point on having lives haha. You lose when you run out of lives.
 
Level 3
Joined
Aug 24, 2007
Messages
77
Just use:
Event - A Unit Dies (Note how its a as in ANY unit)
Conditions - Unit has *Your item thingo* equal to true
Actions - Hero - Instantly Revive hero at x location

If you need any more explanation or don't understand I could create a demo/example for you.

Edit: The item is perishable right? so when charges = 0 its gone and no longer has the item? If it doesn't i could work with it
 
Level 2
Joined
May 10, 2008
Messages
15
That was my original trigger =( Not working for some reason, that's why i'm confused haha. It seems so simple, but it just doesn't work for some reason.. I basically need the same mechanic seen in DoTA with Aegis of the immortal.. i hate dota haha, but that's the only place i've seen the mechanic in action
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Will a trigger with the event:
A unit starts the effect of an ability
Conditions
Ability being cast is equal to Item Reincarnation
Action
Move unit instantly to somewhere
 
Level 12
Joined
May 4, 2008
Messages
1,111
TRY THIS it might work
EVENT-A UNIT REVIVES
ACTION-move Event response (Reviving unit) Center of X

TO MAKE IT CUSTOM make it like if its a character spawn point
make *if then else* inside saying
if Event Response (reviving unit) = X
then teleport Event Response (Reviving unit) to center of X instantly
else

OR if tis player spawn say

*if then else*
if owner of Trigger response = Player X
then move Event response (reviving unit) to center of X Instantly
else

:) hope it works
 
Level 2
Joined
May 10, 2008
Messages
15
Will a trigger with the event:
A unit starts the effect of an ability
Conditions
Ability being cast is equal to Item Reincarnation
Action
Move unit instantly to somewhere

Didn't work =(

TRY THIS it might work
EVENT-A UNIT REVIVES
ACTION-move Event response (Reviving unit) Center of X

TO MAKE IT CUSTOM make it like if its a character spawn point
make *if then else* inside saying
if Event Response (reviving unit) = X
then teleport Event Response (Reviving unit) to center of X instantly
else

OR if tis player spawn say

*if then else*
if owner of Trigger response = Player X
then move Event response (reviving unit) to center of X Instantly
else

:) hope it works

This didn't work either =( Dammit, thanks for all the help guys, but nothing seems to be working =\ maybe it's somthing only doable in JASS?
 
Level 12
Joined
May 4, 2008
Messages
1,111
OR
  • move unit
  • Events
  • Unit -a unit dies
  • Conditions
  • Unit - (Event Response (Dying Unit)) = Hero
  • Player - Owner of player = X player
  • Actions
  • Unit - Move (Event Response (Dying Unit) instantly to center of area X
this should move the dead body to X so that he respawns there
 
Status
Not open for further replies.
Top