View Single Post
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}"
name = "{text 80ff80}" & name & "{text 010101}"
retaf33c is offline   #1 Reply With Quote