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

Incarnation Tower Defense

Status
Not open for further replies.
Level 4
Joined
Apr 26, 2014
Messages
49
Heyya guys, i have a problem with this ability,
how can i make unit go to the point when it revives,
i've used incarnation ability to the creeps, but when it revives,
It will stop and not going to the region,
what trigger should i make ?

Example:
Events:
A unit Revives
Action:
???????????
(go to the point of region where it suppose to go) TD Map
 
Last edited:
Level 4
Joined
Apr 26, 2014
Messages
49
Reincarnation*

Since the unit ID isn't deleted or edited you could use a indexed order system.

how ? can you give me some example ?

Edited:
Ex:
Just Like Element TD Creeps that have reincarnation ability,
when they dies, they will revive and proceeds to go to the region where they supposed to go,
but in my created creeps, it will stop :(
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,097
You are already dealing the move order somewhere via trigger, passing the unit, "move" and the target coordinates to the action. In that exact same spot you should assign the unit its current target coordinates. For example in a hashtable:

Hashtable - Save targetX as 0 of GetHandleId(unit) in hashtable
Hashtable - Save targetY as 1 of GetHandleId(unit) in hashtable

-> 0 represents the field for the x coordinate, 1 for the y coordinate. On your revive event, you can load from the hashtable, using the 0/1 and GetHandleId(unit) keys again to put them into another order action with the retrieved parameters. You should also flush the data when the unit disappears.
 
Level 4
Joined
Apr 26, 2014
Messages
49
You are already dealing the move order somewhere via trigger, passing the unit, "move" and the target coordinates to the action. In that exact same spot you should assign the unit its current target coordinates. For example in a hashtable:

Hashtable - Save targetX as 0 of GetHandleId(unit) in hashtable
Hashtable - Save targetY as 1 of GetHandleId(unit) in hashtable

-> 0 represents the field for the x coordinate, 1 for the y coordinate. On your revive event, you can load from the hashtable, using the 0/1 and GetHandleId(unit) keys again to put them into another order action with the retrieved parameters. You should also flush the data when the unit disappears.

can you make me a trigger,
co'z i'm a begginer on making maps.. don't know what to do. BTW +REP to you friend
 
Status
Not open for further replies.
Top