Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
royalfa
Member
 
Join Date: Feb 2011
Posts: 37

Old January 10th, 2012, 03:01 PM
Well I can choose now the attribute that has a +2 at creation.

But here is the thing if this attribute already has a value,as per Racial Bonus in the racStr field for example, then I get this error:

Attempt to use inconsistent operator for field adjustment with history tracking for field "trtRacial".

Lets say that one race has "+2 to any attribute and -2 Constitution" and the player what the +2 optional in Con to erase the -2.
The race has a Racial bonus: -2 Con stored in racCon, and is tracked with trtRacial, but at the selection of Constitution in the menu, HL pops up the above error.

Moreover one race has "+2 to any and -2 to any" if I select in any of this the same attribute; the second time I do that, the error "pops"

I solve the first making a new field called racCreat (name= Creation bonus)
and I'm thinking in modify that (to racCreatP, name= Creation Plus Bonus) and create a new one: racCreatM, name Creation Minus Bonus)

I think this solve the trouble but is not "elegant"

Is any other way to access/modify the trtRacial instead??
Right now I have this:


Code:
perform field[usrChosen1].chosen.field[trtRacial].modify[+,2,"Racial"]
I presume here is the error.
royalfa is offline   #1 Reply With Quote
royalfa
Member
 
Join Date: Feb 2011
Posts: 37

Old January 10th, 2012, 03:05 PM
Ok O solve it!! lol

Use:

Quote:
field[usrChosen1].chosen.field[trtRacial].value += 2
I try this earlier but have an error: I only need to erase the "perform" keyword.
royalfa is offline   #2 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 10th, 2012, 03:53 PM
In the definition of the trtRacial field, what history="" option does it use?
Mathias is offline   #3 Reply With Quote
royalfa
Member
 
Join Date: Feb 2011
Posts: 37

Old January 10th, 2012, 09:09 PM
0k I understand the history is "best" then will use "the best bonus" I assume but send and error...

You thing is better to change history option to "change" and leave the script as the first one I have??
royalfa is offline   #4 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old January 11th, 2012, 09:24 AM
"stack" is the history option I prefer for most fields.

History tracking is useful because it allows you to show the user how Hero Lab reached the value it has for an attribute, or attack roll, or whatever. It isn't necessary, though, so you may also choose to work towards getting your system functional enough to build a character, and not worry about the "nice to have" things like history tracking, then come back and modify everything to use history tracking once you have your game more complete.
Mathias is offline   #5 Reply With Quote
royalfa
Member
 
Join Date: Feb 2011
Posts: 37

Old January 11th, 2012, 02:46 PM
Ok I like that.
Right now I'm having troubles to "figure it out" What to do next?

I need to implement class, Specialty/Talent (the second one only for humans; function similar to background in 4e), saving throws and other basics (Initiative, Defense, Vitality all depends on class) and Wounds (depends on constitution but need track in "in play tab")

I'm thinking in Saving throws first and try to work out some more race features.
royalfa is offline   #6 Reply With Quote
Reply

Thread Tools
Display Modes

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 09:37 PM.


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