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

[Trigger] Ghost posses dead unit.

Status
Not open for further replies.
Level 9
Joined
Mar 2, 2017
Messages
229
Hello.
I am making a new map with Forsaken units, what I want here is the unit to be able to resurrect herself.
Only that it doesn't work here. What should I do ?


First Trigger -

1514306846-warden.png


Secon trigger -

1514306849-whospage-is-it.png
 
(Casting Unit) is not a variable, it is a function call. When you see (Casting Unit) it actually asks for the "current casting unit", and by the time seconds have passed, (Casting Unit) returns some other unit, or none. Search "Local variables in GUI" or something for more information.

The problem you are trying to solve requires more knowledge than you have, so invest in learning jass or how to use locals in GUI.
 
Level 9
Joined
Mar 2, 2017
Messages
229
(Casting Unit) is not a variable, it is a function call. When you see (Casting Unit) it actually asks for the "current casting unit", and by the time seconds have passed, (Casting Unit) returns some other unit, or none. Search "Local variables in GUI" or something for more information.

The problem you are trying to solve requires more knowledge than you have, so invest in learning jass or how to use locals in GUI.

How should I name that unit ?
 
In the second trigger, at the end, you put that:

Unit - Remove (Casting unit) from the game
Wait 1.89 seconds
Unit - Create 1 Dark ranger for (Owner of (Casting unit)) at DRR facing (Random point in (Entire map))

replace that by:

Unit - Remove (Casting unit) from the game
Set <A unit variable> = (Casting unit)
Wait 1.89 seconds
Unit - Create 1 Dark ranger for (Owner of <Your unit variable>) at DRR facing (Random point in (Entire map))

I didn't find name for the variable so... :p
 
Level 9
Joined
Mar 2, 2017
Messages
229
Oh oh oh... --'

"Dark Ranger" is a variable or the unit ? Because if "Dark Ranger" has no initial value it is equal to NOTHING.

Else the variable "Dark Ranger" is useless because you have condition which check the dying unit is a dark danger, and after you set "Dark Ranger" to unit type of dying unit, it's a bit stupid :p
I do not understand ...
 
Level 9
Joined
Mar 2, 2017
Messages
229
You're not using Reincarnation ability because...?
Because I want the Ability to be casted manually.
Plus, the ghost would not have 250 Mana when spawned, while the Ability required 250 of Mana... And I want the ghost to be able to move around, doing whatever it wants, and then going back to the Dark ranger corpse after they are full mana.
 
Last edited:
Level 20
Joined
Feb 23, 2014
Messages
1,265
These Dark Rangers...

Is it possible that at any given point there will be more than 1 of them on the map?

I'm asking, because if the answer is yes then even if you fix this trigger, the ability won't work for more than 1 unit at once. This can totally be done, but it will require a significantly different triggering than what you have right now.
 
Last edited:
Level 9
Joined
Mar 2, 2017
Messages
229
These Dark Rangers...

Is it possible that at any given point there will be more than 1 of them on the map?

I'm asking, because if the answer is yes then even if you fix this trigger, the ability won't work for more than 1 unit at once. This can totally be done, but it will require a significantly different triggering than what you have right now.

It is a unit, so yes.
I actually killed myself and found a Solution, thanks dude. I appreciate. :)
 
Status
Not open for further replies.
Top