Warcraft III resources & community, 2003–2006 · archived

Trigger-function

2 posts
#1

Trigger-function

I got a quite simple question if you know the answer.. -.-
I get my unit to pick up an item,
He gets a special effect on him.

But my problem is that i have no idea how to make that special effect disappear when the units drops the item in fact..

Heres my trigger:

Events:
Unit - A unit Acquires an item
Conditions
[Item-class of [item being manupilated]] Equal to [Item class of "Bladebane Armor 0073" <gen> ]
Actions
Special Effect - Create a special effect attached to the "chest" of [Hero manipulating item] using "orcPlate.mdx"

This far I have no problems.. But now:

Events
Unit - A unit loses an item
Conditions
[Item-class of [Item being manipulated]] Equal to [Item-class of Bladebane Armor 0073 <gen> ]

Now you just have to finish my script :D or answer the question, whatever you like. :x

//Reason I write in model forum is that the special effect is a model I downloaded.. And that I don't know whereelse to write^^.
#2
Didn't you complete the trigger? Destroy (last created special effect). Or create a variable and store the unit that has the special effect or item.

-Rui