Sounds stupid, but it only kinda is

Dougin

Member!
Joined
Mar 4, 2004
Messages
27
Reaction score
0
Location
Wonderland
Website
Visit site
So here's the latest in my ongoing series of problems with WorldEditor. Hopefully, one of the wise folks on here can give me a hand...

Basically, what I want to do is make it so that a hero steals gold from heroes he kills. Easy enough. Triggers and so forth. Here's the rub - at least for me. I want this to be linked to a hero ability, called - say - Steal Gold. I want 5% of the opponent's gold to be stolen per level of the ability, up to 30%.

So I figured that I'd make a variable called StealLevel (which i would make increase every time the hero learns the skill Steal Gold) and I'd be a very happy man. Not so. I've got it set up so that when the foe's hero dies, the opposing player loses gold equal to (TotalGold)x(StealLevel)x5/100. The problem is that the StealLevel variable won't go up, even when he first learns the skill. This is what the trigger looks like:

Event - Unit - Viking (the name of the unit with Loot) Learns a skill
Condition - (Learned Hero Skill) Equal to Steal Gold.
Action - Set StealLevel = StealLevel + 1

After that, I tossed in another Action that was supposed to show me a text message, just so I could make sure it works. The text message never showed.

Any idea what I'm doing wrong here?
 

Dougin

Member!
Joined
Mar 4, 2004
Messages
27
Reaction score
0
Location
Wonderland
Website
Visit site
Turns out I'm the world's biggest idiot. It was some stupid little mistake I made that prevented it from working. Fixed it, and it's going well now. Thanks for the help, though.
 

New threads

Top