• 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

Resource Pools

Ozob

Member
I am trying to do a custom ruleset and have made good progress. However, I am stuck on some resource issues.

Currently I have the following pools:
Loyalty Points: Points to spend on character loyalties
Skill Points: Points to spend on character skills
Bonus Points: Points that can be used on many different things, however can be spent as LP or SP if they run out.

So when I was working on the skill cost here is what I was trying:
if (hero.child[resCP].field[resLeft].value > field[trtUser].value) then
hero.child[resCP].field[resSpent].value += field[trtUser].value
else
hero.child[resCP].field[resSpent].value += #resleft[resCP]
hero.child[resCP].field[resSpent].value += field[trtUser].value - #resleft[resCP]
endif


Regardless what I do, it never evaluates to the second condition. I have also tried to use the test if (#resleft[resCP] < 1) then which also never seems to evaluate to true. This is all in the traits.str file.

Any advice on how to check to use one pool or the other depending on how many points are left?
 
Back
Top