• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help on resource pools

retaf33c

Member
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
 
Back
Top