View Single Post
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old January 15th, 2007, 05:29 PM
Given your description and the script you used, it looks like you have an objective that can never be achieved. If the option costs 50% of the unit cost and the cost of that option needs to be added into the total, then the total would always be increasing as well. So clearly the exact requirements of the game system are slightly different. Please tell me exactly how the rules state the option needs to work, then I can recommend a solution.

I also recommend you take a look at the section entitled "Custom Cost Calculations" within the Tips & Tricks chapter of the Kit documentation. You might find what you need there. If not, give me the info asked for above and I'll outline who to do it.

-Rob


At 09:49 AM 1/14/2007, you wrote:

Quote:
I would like that an option have as a price, 50% of the total price of the unit to which it is assigned. Thus with the price of various the option added. How can I proceeded in ABCréator? I tested this script in the "cost" script of the option but without success:

@single=(parent.unit.cost[total]*50)/100 I am not a pro in script [img]./modules/mdforum/images/smiles/icon_biggrin.gif[/img]
rob is offline   #2 Reply With Quote