HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting Passive Abilities?

03-14-2004, 05:09 PM#1
Pyrus
Is there anyway to detect when reincarnation is activated?

Using when he dies and if he has reincarnation doesn't work as he doesn't die if he uses reincarnation.

I've tried everything i could and i'm stumped. Any useful help will be appreciated.
03-14-2004, 05:23 PM#2
Kamux
I don't think you can do that, but there is a workaround for some of them.

Therefor you must make the abillty's with triggers, like when a unit dies, reviv him. And then you can set a varable or anything you want.
03-14-2004, 05:28 PM#3
Pyrus
Quote:
Originally Posted by Kamux
I don't think you can do that, but there is a workaround for some of them.

Therefor you must make the abillty's with triggers, like when a unit dies, reviv him. And then you can set a varable or anything you want.

In that case is there anyway to 'tag' a unit with variables. And if it is a hero, i dont want the revive to be instant so will they "go to heaven" first if i use a wait statement? Thanks.
03-14-2004, 05:36 PM#4
Kamux
Yes, if you use a wait statement it will first dissipate.

And I don't know what you exactly mean by "tag" a unit with a varable.
03-14-2004, 06:07 PM#5
Pyrus
Shoot, i wanted the wait so i could add the special effects. Does anyone know a way around this?

When I say tag i mean the unit to be revived. And I cant predetermine the unit because its userselectable.
03-14-2004, 06:13 PM#6
ThyFlame
Add it to a unit variable when you determine which to revive.
03-14-2004, 08:36 PM#7
Vexorian
There is a way to detect reincarnation though, it is the specific event A unit 's life becomes less than or equal to 0.00 and ( level of reincarnation for Triggering unit) greater than 0
03-14-2004, 09:01 PM#8
Grasthik
Err...you can detect it using the order "reincarnation." If the base ability doesn't have a string for the order code you can set one for it, check the order code, and check the unit. Like so:

test
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (==) (Order(reincarnation))
(Unit-type of (Triggering unit)) Equal to (==) Footman
Actions
Do nothing
03-14-2004, 09:08 PM#9
Vexorian
Are sure it works?

Because the orderstring field doesn't work anywhere.
03-14-2004, 11:02 PM#10
Pyrus
thanks Lord Vexorian, i'll try it asap.

Grasthik, is reincarnation is an order?, i thought orders were attack,move,etc.
03-15-2004, 04:25 AM#11
Pyrus
Thaks Lord Vexorian but in
Unit - unit's life becomes Less than or equal to 0.00
it doesnt allow me to use my variable as the unit (its a unit variable)

I am making a Elixer of Life item that when used the hero gains a reincarnation buff. I want it so that it is a one time usage so he can only reincarnate once per item. i also want the buff to dissapear after a certain time.

I have it so when the hero uses the item i assign him to a variable, start a timer and give him a modified reincarnation ability. I want it so when the timer expires or the hero uses reincarnation but its not working.

I am thinking about using 'item reincarnation' from 'ankh of reincarnation' cause i think it is a one shot use but i am not sure.

I want to know what you all think and what you knowof item reincarnation and remove ability.
03-15-2004, 07:56 AM#12
Kamux
I think ank of reincarnation is the best solution. Maby enchanting it a bit with triggers, so i dissapears after the amount of time elapsed.
03-15-2004, 02:16 PM#13
Vexorian
Quote:
Originally Posted by Pyrus
Thaks Vexorian but in
Unit - unit's life becomes Less than or equal to 0.00
it doesnt allow me to use my variable as the unit (its a unit variable)

I am making a Elixer of Life item that when used the hero gains a reincarnation buff. I want it so that it is a one time usage so he can only reincarnate once per item. i also want the buff to dissapear after a certain time.

I have it so when the hero uses the item i assign him to a variable, start a timer and give him a modified reincarnation ability. I want it so when the timer expires or the hero uses reincarnation but its not working.

I am thinking about using 'item reincarnation' from 'ankh of reincarnation' cause i think it is a one shot use but i am not sure.

I want to know what you all think and what you knowof item reincarnation and remove ability.
Well you need to Use the action Add Event to trigger after creating the hero
03-15-2004, 03:55 PM#14
Anitarf
I was wondering about this method (a bit off topic): if you have a more general "specific" unit event, like "unit takes damage", and you don't want it to be attacked unit specific, but attacking unit specific, so the event must be set for every unit on the map... that would lag a bnet map, or no? Because there would be many unit events out there, for each unit spawned, lots of things to check, but then again, that is exactly what a generic unit event does, same as specific, but for every unit; anyway, what I wish to know is how bad is lots of specific unit events for a map; can it even be done, and if yes, to what extent?

An even better question, is there a chance for Blizzard to implement any "unit takes damage" generic events in the next patch? ^_^
03-15-2004, 05:14 PM#15
Pyrus
Quote:
Originally Posted by Anitar
An even better question, is there a chance for Blizzard to implement any "unit takes damage" generic events in the next patch? ^_^

There is the generic unit event: unit is attacked. You could also use triggers to determine if any damage is done, i think someone did that before (finding if damage was done).