• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Set Attibute while hIsOn2 <> 0

Illyahr

Well-known member
As title. When a hengeyokai transforms into animal form, it changes the physical attributes of the character to those attributes.

field[aNormMod].value adds the number instead of changing to
field[aNormal].value does nothing
field[aNormForce].value changes the attribute but doesn't change back after

For reference, the line I'm working with is as follows:

elseif (field[hIsOn2].value = 1) then
hero.child[xBurrow].field[Value].value = 10
herofield[tSize].value = -2
hero.child[aSTR].field[].value = 8
hero.child[aDEX].field[].value = 17
hero.child[aCON].field[].value = 15
endif
 
Set the aFinalVal field instead. Do this no earlier than Post-Attributes/101.
 
Last edited:
Got it. Had to separate the whole thing into three different eval scripts.

Hybrid form gives a boost to one stat (pre-attributes), animal form sets attributes to a certain level (post-attributes) and badger hengeyokai have a burrow speed in either form (first phase).

Thanks
 
Got it. Had to separate the whole thing into three different eval scripts.

Hybrid form gives a boost to one stat (pre-attributes), animal form sets attributes to a certain level (post-attributes) and badger hengeyokai have a burrow speed in either form (first phase).

Thanks

You could probably just do the burrow speed as part of the bootstrapping process using a conditional since you can set values and assign tags when bootstrapping something.
 
You could probably just do the burrow speed as part of the bootstrapping process using a conditional since you can set values and assign tags when bootstrapping something.

Burrow will bootstrap just fine. The problem was that it doesn't show up without a speed (only if hIsOn1 or hIsOn2 is on) and doesn't register the new speed in any other phase but First.

I got it working. Working on the other forms now. They system does not like bootstrap trees :D
 
New issue: changing the FinalVal sets the attributes but doesn't change the modifiers. For example, changing the FinalVal from 14 to 18 still leaves me with a modifier of +2 instead of +4. Do I have to set up a separate line for that?
 
New issue: changing the FinalVal sets the attributes but doesn't change the modifiers. For example, changing the FinalVal from 14 to 18 still leaves me with a modifier of +2 instead of +4. Do I have to set up a separate line for that?

Hmm...you really shouldn't have to do that. Seems odd. Have you taken a look at the adjustments that modify the ability score? You might want to see how those scripts work.
 
Hmm...you really shouldn't have to do that. Seems odd. Have you taken a look at the adjustments that modify the ability score? You might want to see how those scripts work.

That's exactly it though, they modify the score, they don't set it to something, so it's all done in 'pre-attribute' phase. Setting FinalVal only works in the 'post attribute' phase.
 
Hmm...I was going to suggest you look at how lycanthropes are handled, but it appears they just apply tags. Unless the bonuses this race is granting are the same as a lycanthrope, you need a different solution.

In that case, it would seems as though you need to change both the aFinalVal and aModbonus as the scripts in the Custom - Wild Shape Adjustments do.
 
Back
Top