• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Gold Stealing Spell

Status
Not open for further replies.
Level 4
Joined
Jan 18, 2005
Messages
114
Ok I made a spell for my pirate in my map called "plunder", and what I want it to do is basicly be like a target affect where it simply targets a hero and takes away all his gold and gives it to you.

I've tried a few different things, but I can't get it to fully work.

Does anyone know how to make a spell like this?
 
Level 2
Joined
Jun 22, 2005
Messages
4
something more

yeahp. just like what the upstairs has said. and if you want to add any condition such as success ratio, you can write an extra action as the follow:

-set variable Steal=random number between 1 and 2.
-if,then, else (multi function)
-if Steal is 1, then give xxx gold to owner of casting unit

-if steal is 2, then display game text to all players: steal failed

_____________________________________________________
just an example, you can make it more complecated,if you want...actually i have a steal skill like this as well in my map....lots of fun!
 
Status
Not open for further replies.
Top