Junior Member
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26
|
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) |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
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.
|
#2 |
Junior Member
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26
|
I went all the way to render 50000 & still no luck
|
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Try running your script at Post-Attributes/1001. Let me know if that works for you.
|
#4 |
Junior Member
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26
|
BINGO!
Thanks! |
#5 |
Junior Member
Join Date: Apr 2013
Location: Mena, Arkansas
Posts: 26
|
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 |
#6 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
No problem. Just a little trial and error.
|
#7 |
|
|