[Solved] Making Current Lumber a variable

Level 3
Joined
Jul 27, 2011
Messages
27
I have a problem!
I'm trying to make a sort of "ability power"-system in Warcraft 3: TFT World Editor, (purchasing certain items will increase the power of your spells.)

My first thought was "Well that's simple! Just make it so whenever a spell is used it deals additional damage according to how much lumber you currently have!"

That didn't work.. Since "Current Lumber" isn't an option when doing:
Action - Unit - Cause (Caster) to damage (Target), dealing (CURRENT LUMBER) as blablabla...

So I went ahead and tried using a Real, making it so
Event - Periodic Event - Each 2.0 seconds
Action - Set Current_Lumber_Real = (CURRENT LUMBER)


Once again, it did not work..

Is there anybody that can solve this for me?
Or maybe an alternative solution to this?

Thanks :thumbs_up:
 
Level 1
Joined
Apr 6, 2010
Messages
4
I got an alternative for the lumber.
For the damage part.
You can use the "Conversion-Convert Integer to Real"
then "Player Property"
:D then I think you'll get it from there.
Any help?
 
Level 3
Joined
Jul 27, 2011
Messages
27
Thank you guys, will try it out now :)

I got an alternative for the lumber.
For the damage part.
You can use the "Conversion-Convert Integer to Real"
then "Player Property"
:D then I think you'll get it from there.
Any help?

I did this and it works great, :thumbs_up: now for the part where items are granting Lumber and Lumber is removed if you sell the items.. :wink:

I checked the RPG system and all that, but it seems a bit complicated for me..
 
Last edited by a moderator:
Top