Junior Member
Join Date: Jul 2015
Posts: 8
|
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? |
#1 |
|
|