Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Ozob
Junior Member
 
Join Date: Jul 2015
Posts: 8

Old July 19th, 2015, 01:34 PM
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?
Ozob is offline   #1 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:46 AM.


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