• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Spell: steal item from a selected hero

Status
Not open for further replies.
Level 12
Joined
Oct 16, 2010
Messages
680
event should be - a unit begins casting an ability
condition - spell being casted equals *your spell* and casting unit has the buff *wind walk*
actions :
First check if the targeted unit has anything in his inventory.
Make a random number, then give the casting unit an item that the spell target unit has in his (random number)th inventory slot (if he posesses nothing in that slot generate a new random number and do it again ,*use a loop for it*).
After your unit recieved the item, destroy the one that the target unit possesses.

Something like this could do the work.
I don't want to tell you exactly what to do and simply show you a finished trigger, think a bit. :)
 
Status
Not open for further replies.
Top