I'm wondering how you make a spell that works as pick pocketing for the user. That you simply gain an amount of money if you use it on another players hero.
it would also be cool to set the variable to like a percent of the targets amount of gold. like level one - 10% level two - 20%
and then make it pick a random number between 0 and your variable that way you don't always get the same thing.
Would this be any help? Put Pickpocket instead of the Animate Dead ofcourse.
Enemy_gold is an integrer variable.
This trigger takes fifth of enemys gold and gives it to you.
If you want to make the amount random replace the number 5 with another variable and do another action of "set variable = random number between (what you want)" Reals can handle numbers that have decimals, integrers only numbers like 0,1,2,3,4 so choose the variable from which you'd like better.
Btw if it doesn't work try replacing the "Triggering player" with owner of triggering unit. My trigger may be flawed I didn't test it out.
Ghan has said he has fixed this. Monovertex please confirm this fix. This was only a problem with people that had signatures in the upper levels like not the special members but the respected members.