Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
retaf33c
Junior Member
 
Join Date: Jun 2006
Posts: 19

Old June 1st, 2006, 04:49 AM
I have a resource pool set up for heroic traits that can be selected for characters and champions. Everything is working fine except for one particular trait.

There are two unit stats ht - max points for heroic traits and htu - points used. I have used an exclusive group for each to prevent choices whose cost exceed the number of points available.

One Heroic Trait, Devoted Slave, attaches a child unit with it's own stat line. Up to here there is no problem, however, the child unit is allowed to select one of two weapons. The cost of those weapons are suppose to come out of the resource pool of the parent.

My problem is I can't seem to have the cost reflected against the parent. The exclusive group doesn't seem to see the increase cost of the child unit. Also, the points are not updated in the following cost script

~ Work out what text to display
var ptsleft as number
ptsleft = unit.stat[ht] - unit.usage[htu]
name = "Heroic Trait Points Left: " & ptsleft

~ Color the text appropriately
if (ptsleft < 0) then
name = "{text ff0000}" & name & "{text 010101}"
else
name = "{text 80ff80}" & name & "{text 010101}"
endif
retaf33c is offline   #1 Reply With Quote
retaf33c
Junior Member
 
Join Date: Jun 2006
Posts: 19

Old June 1st, 2006, 07:27 AM
I just found the answer. By adding a $ in the exlusion group reference instead of hard coding the cost worked!
retaf33c 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 08:01 AM.


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