Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Army Builder (http://forums.wolflair.com/forumdisplay.php?f=16)
-   -   Help on resource pools (http://forums.wolflair.com/showthread.php?t=6264)

retaf33c June 1st, 2006 04:49 AM

Help on resource pools
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 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!

All times are GMT -8. The time now is 07:40 AM.

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