...more specifically, I'm trying add two custom items to do one of the following:
item 1) add ranks equal to a character's level to each knowledge;
item 2) add a specific skill bonus to each knowledge skill.
If it helps I've added their respective eval scripts thus far. This is the first item:
if (field[gIsEquip].value <> 0) then
#enhancementbonus[hero.child[aINT], 6]
#enhancementbonus[hero.child[aWIS], 6]
#enhancementbonus[hero.child[aCHA], 6]
#enhancementbonus[hero.child[aSTR], 6]
#enhancementbonus[hero.child[aDEX], 6]
#enhancementbonus[hero.child[aCON], 6]
~add to our languages known
herofield[tLangsSpk].value += 3
~add points to a chosen skill, to a max of our HD
if (field[usrChosen1].ischosen <> 0) then
var bonus as number
~count the number of hit dice we have, then subract any ranks that have already been applied to the chosen skill
~and don't let the value go below 0
bonus = maximum(hero.tagcount[Hero.HitDice] - field[usrChosen1].chosen.field[skUser].value - field[usrChosen1].chosen.field[skExtRanks].value - field[usrChosen1].chosen.field[skInnate].value,0)
~now, we'll add innate ranks to that skill
field[usrChosen1].chosen.field[skInnate].value += bonus
~and since innate ranks count towards the total ranks spent by a character,
~we'll add the same amount to the max skill points
#resmax[resSkill] += bonus
endif
if (field[usrChosen2].ischosen <> 0) then
var bonus as number
~count the number of hit dice we have, then subract any ranks that have already been applied to the chosen skill
~and don't let the value go below 0
bonus = maximum(hero.tagcount[Hero.HitDice] - field[usrChosen2].chosen.field[skUser].value - field[usrChosen2].chosen.field[skExtRanks].value - field[usrChosen2].chosen.field[skInnate].value,0)
~now, we'll add innate ranks to that skill
field[usrChosen2].chosen.field[skInnate].value += bonus
~and since innate ranks count towards the total ranks spent by a character,
~we'll add the same amount to the max skill points
#resmax[resSkill] += bonus
endif
endif
I want to add this rank bonus to every knowledge skill.
This is the second item:
~ Are we equipped?
if (field[gIsEquip].value <> 0) then
if (field[usrChosen1].ischosen <> 0) then
#competencebonus[field[usrChosen1].chosen, 4]
endif
endif
I want add this bonus to every knowledge skill, specifically.
Thank you in advance!
item 1) add ranks equal to a character's level to each knowledge;
item 2) add a specific skill bonus to each knowledge skill.
If it helps I've added their respective eval scripts thus far. This is the first item:
if (field[gIsEquip].value <> 0) then
#enhancementbonus[hero.child[aINT], 6]
#enhancementbonus[hero.child[aWIS], 6]
#enhancementbonus[hero.child[aCHA], 6]
#enhancementbonus[hero.child[aSTR], 6]
#enhancementbonus[hero.child[aDEX], 6]
#enhancementbonus[hero.child[aCON], 6]
~add to our languages known
herofield[tLangsSpk].value += 3
~add points to a chosen skill, to a max of our HD
if (field[usrChosen1].ischosen <> 0) then
var bonus as number
~count the number of hit dice we have, then subract any ranks that have already been applied to the chosen skill
~and don't let the value go below 0
bonus = maximum(hero.tagcount[Hero.HitDice] - field[usrChosen1].chosen.field[skUser].value - field[usrChosen1].chosen.field[skExtRanks].value - field[usrChosen1].chosen.field[skInnate].value,0)
~now, we'll add innate ranks to that skill
field[usrChosen1].chosen.field[skInnate].value += bonus
~and since innate ranks count towards the total ranks spent by a character,
~we'll add the same amount to the max skill points
#resmax[resSkill] += bonus
endif
if (field[usrChosen2].ischosen <> 0) then
var bonus as number
~count the number of hit dice we have, then subract any ranks that have already been applied to the chosen skill
~and don't let the value go below 0
bonus = maximum(hero.tagcount[Hero.HitDice] - field[usrChosen2].chosen.field[skUser].value - field[usrChosen2].chosen.field[skExtRanks].value - field[usrChosen2].chosen.field[skInnate].value,0)
~now, we'll add innate ranks to that skill
field[usrChosen2].chosen.field[skInnate].value += bonus
~and since innate ranks count towards the total ranks spent by a character,
~we'll add the same amount to the max skill points
#resmax[resSkill] += bonus
endif
endif
I want to add this rank bonus to every knowledge skill.
This is the second item:
~ Are we equipped?
if (field[gIsEquip].value <> 0) then
if (field[usrChosen1].ischosen <> 0) then
#competencebonus[field[usrChosen1].chosen, 4]
endif
endif
I want add this bonus to every knowledge skill, specifically.
Thank you in advance!