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

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