Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Option Cost Script Help (http://forums.wolflair.com/showthread.php?t=6054)

earnold25 February 15th, 2006 10:08 AM

Option Cost Script Help
 
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

earnold25 February 15th, 2006 11:39 AM

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


All times are GMT -8. The time now is 01:50 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.