Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
sablevarg
Junior Member
 
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26

Old March 8th, 2014, 03:04 AM
I have a problem with a feat I'm trying to make called Background - Laborer
What I want it to do is give a 25% bonus on weight carried (a 10 strength would be 41/83/125 instead of 33/66/100), I've built the following code:

(Post-Attributes[User] P:100, I:1)

hero.child[Totals].field[tEncumLgt].value = round(hero.child[Totals].field[tEncumLgt].value * 1.25, 0, 0)

hero.child[Totals].field[tEncumMed].value = round(hero.child[Totals].field[tEncumMed].value * 1.25, 0, 0)

hero.child[Totals].field[tEncumHvy].value = round(hero.child[Totals].field[tEncumHvy].value * 1.25, 0, 0)

I get the weights I want for each encumbrance category, but when I give him a 35 lb item he goes to medium encumbrance...
Now I'm stuck, can anyone help?


BTW: I have moved phase around [post-attr (user)] is the earliest the code works
I've changed the priority (though, admittedly, I don't know exactly what I'm doing there)
sablevarg is offline   #1 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old March 8th, 2014, 04:55 AM
How late have you moved the phase? Have you tried Final Phase or Render? Usually for user stuff, priority is going to be 10000 or later, but it depends on what you are doing. I haven't done anything with encumbrance yet, but I can take a look at it later if you are still having trouble.
Sendric is offline   #2 Reply With Quote
sablevarg
Junior Member
 
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26

Old March 8th, 2014, 03:47 PM
I went all the way to render 50000 & still no luck
sablevarg is offline   #3 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old March 10th, 2014, 07:31 AM
Try running your script at Post-Attributes/1001. Let me know if that works for you.
Sendric is offline   #4 Reply With Quote
sablevarg
Junior Member
 
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26

Old March 10th, 2014, 08:22 AM
BINGO!
Thanks!
sablevarg is offline   #5 Reply With Quote
sablevarg
Junior Member
 
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26

Old March 10th, 2014, 08:33 AM
Question: I had tried Post-Attribute already, can someone tell me where to find more info on priority; I'm still fuzzy on the concept.
Maybe if I understood it better I could have gotten this without bothering anybody.

Thanks again
sablevarg is offline   #6 Reply With Quote
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old March 10th, 2014, 08:33 AM
No problem. Just a little trial and error.
Sendric is offline   #7 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 04:18 PM.


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