Junior Member
Join Date: May 2017
Posts: 11
|
I really feel dumb for asking this, but I simply cannot figure out how to make the Age adjustments work in the d20/3.5e version. I have an old character and would want to simply add an age adjustment so that the corresponding modifiers (-2 to physical, +1 to mental attributes) are automatically added, but I cannot figure out what I am supposed to put in to make it work.
The board-internal search function sadly filters out "age" because its too short, and my google search has brought me to the Adjust Tab in the first place, but the only thing I find there would be Age Category for dragons. I tried using that one, but if it is supposed to work here too, I am clueless to what to insert to make it work. |
#1 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
Use this:
Code:
phase: pre-attributes var bonus as number bonus = field[pAdjust].value hero.child[aINT].field[aNormMod].value += bonus hero.child[aWIS].field[aNormMod].value += bonus hero.child[aCHA].field[aNormMod].value += bonus hero.child[aSTR].field[aNormMod].value -= bonus * 2 hero.child[aDEX].field[aNormMod].value -= bonus * 2 hero.child[aCON].field[aNormMod].value -= bonus * 2 |
#2 |
Junior Member
Join Date: May 2017
Posts: 11
|
Thanks. I slightly altered your code and it now looks as follows:
Code:
var bonus as number bonus = field[pAdjust].value if (bonus >= 1) then hero.child[aINT].field[aNormMod].value += 1 hero.child[aWIS].field[aNormMod].value += 1 hero.child[aCHA].field[aNormMod].value += 1 hero.child[aSTR].field[aNormMod].value -= 1 hero.child[aDEX].field[aNormMod].value -= 1 hero.child[aCON].field[aNormMod].value -= 1 endif if (bonus >= 2) then hero.child[aINT].field[aNormMod].value += 1 hero.child[aWIS].field[aNormMod].value += 1 hero.child[aCHA].field[aNormMod].value += 1 hero.child[aSTR].field[aNormMod].value -= 2 hero.child[aDEX].field[aNormMod].value -= 2 hero.child[aCON].field[aNormMod].value -= 2 endif if (bonus >= 3) then hero.child[aINT].field[aNormMod].value += 1 hero.child[aWIS].field[aNormMod].value += 1 hero.child[aCHA].field[aNormMod].value += 1 hero.child[aSTR].field[aNormMod].value -= 3 hero.child[aDEX].field[aNormMod].value -= 3 hero.child[aCON].field[aNormMod].value -= 3 endif Thanks for pointing me the right way! |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
For the record, the "Age Category" adjustment is strictly for use with the various Dragon races and is used to determine the dragon's age (ie juvenile, adult, very old, etc).
To my knowledge there isn't an adjustment for making an aged category. I will look into getting that added for a future release. |
#4 |
Junior Member
Join Date: May 2017
Posts: 11
|
I figured as much. In any case, many thanks for all the extensive work you've put into the community set, it's really damn amazing.
Out of curiosity, how would I implement a drop down list where you could choose either of the age categories? |
#5 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
|
#6 |
Junior Member
Join Date: May 2017
Posts: 11
|
No worries, let me try to rephrase it. I am indeed talking about an Adjustment.
Given me above code, I can choose a number between -99 and 99, however only 0-3 are actually needed. So the ideal solution would involve a drop down, where the four possible age categories are displayed. EDIT: Seemingly does work with so called portals, does it not? Last edited by Scarr; May 22nd, 2017 at 08:52 AM. |
#7 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
|
|
#8 |
Senior Member
Join Date: Feb 2013
Posts: 357
|
Actually, adjustments allow you to Seth their minimum and maximum values when using the editor. Just set min value to 0 and max value to 3. I did the same thing with honor ranks in the rokugan file
|
#9 |
|
|