Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - d20 System (http://forums.wolflair.com/forumdisplay.php?f=46)
-   -   Set Attibute while hIsOn2 <> 0 (http://forums.wolflair.com/showthread.php?t=56544)

Illyahr September 7th, 2016 04:19 PM

Set Attibute while hIsOn2 <> 0
 
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

Sendric September 8th, 2016 03:51 AM

Set the aFinalVal field instead. Do this no earlier than Post-Attributes/101.

Illyahr September 8th, 2016 09:40 AM

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

Sendric September 8th, 2016 09:46 AM

Quote:

Originally Posted by Illyahr (Post 234366)
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.

Illyahr September 15th, 2016 03:27 PM

Quote:

Originally Posted by Sendric (Post 234367)
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

Illyahr September 18th, 2016 02:11 PM

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?

Sendric September 19th, 2016 04:02 AM

Quote:

Originally Posted by Illyahr (Post 234717)
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.

Illyahr September 19th, 2016 08:40 AM

Quote:

Originally Posted by Sendric (Post 234737)
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.

Sendric September 19th, 2016 10:24 AM

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.


All times are GMT -8. The time now is 04:57 PM.

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