To Make this easier for you guys Ive copied the scrip, can you just tell me what to change to make it CHA based and for it to stack with other Ki Pool. Thanks
Script #1
~ if we're not the first copy, forward our use attribute tag on to the
~ first copy
if (tagis[Helper.FirstCopy] = 0) then
perform hero.child[cMnkKiPool].pushtags[UseAttr.?]
endif
Script #2
~ only run the rest for the first copy
doneif (tagis[Helper.FirstCopy] = 0)
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ if the use this attribute tag is missing, assume Wisdom
if (tagunique[UseAttr.?] = 0) then
perform assign[UseAttr.aWIS]
~ if we've only been told there's one attribute to choose from, we'll just
~ use that attribute
elseif (tagunique[UseAttr.?] = 1) then
~ do nothing
~ search through all the attributes we have tags for, filling each one
~ into the next slot of the array-based menu
else
~ if we're using the menu, we don't want the choice to show up in the
~ livename
perform assign[User.NoAutoName]
var i as number
i = 0
foreach pick in hero from BaseAttr where tagids[UseAttr.?,"|"]
field[usrArray].arraytext = eachpick.field[name].text
i += 1
nexteach
endif
Script #3
~ only run the rest for the first copy
doneif (tagis[Helper.FirstCopy] = 0)
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)
~ our maximum uses is 1/2 our monk level + WIS bonus
var bonus as number
bonus = field[xAllLev].value /2
field[abValue].value = round(bonus,0,-1)
field[trkMax].value += field[abValue].value
~ if we only have one attribute to use, use that
if (tagunique[UseAttr.?] = 1) then
field[trkMax].value += hero.findchild[BaseAttr,tagids[UseAttr.?]].field[aModBonus].value
field[abSumm].text = "You have a ki pool equal to 1/2 your monk level + your " & tagnames[UseAttr.?] & " modifier."
else
~ otherwise, take the text selected by the user, and use that to find
~ the matching attribute
foreach pick in hero from BaseAttr
if (compare(eachpick.field[name].text,field[usrSelect].text) = 0) then
field[trkMax].value += eachpick.field[aModBonus].value
field[abSumm].text = "You have a ki pool equal to 1/2 your monk level + your " & eachpick.field[name].text & " modifier."
endif
nexteach
endif
~ if we're not at 4th level yet (which would happen for a 3rd level
~ drunken master), zero out our Ki pool
if (#levelcount[Monk] < 4) then
if (#levelcount[Ninja] < 2) then
if (#levelcount[ChampIror] < 2) then
field[trkMax].value -= field[abValue].value + hero.child[aWIS].field[aModBonus].value
endif
endif
endif