Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder

Notices

Reply
 
Thread Tools Display Modes
earnold25
Junior Member
 
Join Date: Dec 2005
Posts: 16

Old February 15th, 2006, 10:08 AM
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 is offline   #1 Reply With Quote
earnold25
Junior Member
 
Join Date: Dec 2005
Posts: 16

Old 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
earnold25 is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:33 PM.


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