Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
chrissuch
Junior Member
 
Join Date: Nov 2008
Posts: 1

Old November 30th, 2008, 06:48 PM
Hi,

I am trying to figure something out that I am sure was possbile under v2.

I have a unit that costs 100 points. The unit can take between 1 and 3 of a particular item. The first item is factored into the unit cost (and effectively costs 0) but each additional one costs +10 points.

Now, I could set the cost of the item at 10ea and the cost of the unit at 90 (to account for the 'free' item) but I am not a huge fan of this.

How could I set it up so that the costs display to the user correctly? ie, item x 1 = 0 pts, item x 2 = 10 pts & item x 3 = 20 pts

Cheers, Chris.
chrissuch is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old November 30th, 2008, 09:45 PM
In the item, click on the postlink button in the top right. Now, we'll enter a script there that will modify the cost of the item(s) as a whole by -10.

Code:
@single = maximum(@single-10,0)
so, the cost of all the items is modified by -10, and then the maximum statement makes sure that it's not charging -10 for the item if you haven't taken any.

If the range is 1-3, rather than 0-3, then you can leave the maximum portion out.

I apologize if I missed anything in the script, I'm working from memory.
Mathias is offline   #2 Reply With Quote
Reply


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 01:57 AM.


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