• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Option Cost Script Help

earnold25

Member
Ok, I'm trying to make an option that cuts the cost of a unit in half. Its available to many different units, all of which cost a different amount.

Is the Options Cost Script the best place to do this? if so, can someone tell me if this is close:

var half as number
half = entity.cost[base] / 2
@single = half
 
nevermind. looks like i got it. i had an eval script that seemed to be making this not work. i guess you can't have both? i dunno, but i got rid of it and its working now... here's the exact script

var half as number
half = entity.cost[base] / 2
@single = -half
 
Back
Top