Member
Join Date: Jul 2015
Location: Ottawa
Posts: 58
|
Ok I'll try to be clearer about the field[value] thing.
The way the Legacy items work, they reference the increment count of the Legacy adjustment. So, each Legacy item uses the code: Code:
foreach pick in hero from BaseInPlay where "thingid.pRM_LgcyRitsWndr" if (eachpick.field[pChosen].chosen.tagis[thingid.ioRMAssHnd]<>0) then field[Value].value = eachpick.field[pAdjust].value endif nexteach Code:
Rit = field[Value].value Code:
hero.child[xSneakAtt].field[Value].value Code:
hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 1 Code:
var HD as number HD = hero.tagcount[Hero.HitDice] var Rit as number Rit = field[Value].value if (HD >= 18) then if (Rit >= 3) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 4 elseif (Rit >= 2) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 3 elseif (Rit >= 1) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 1 endif elseif (HD >= 14) then if (Rit >= 2) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 3 elseif (Rit >= 1) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 1 endif elseif (HD >= 11) then if (Rit >= 2) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 2 elseif (Rit >= 1) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 1 endif elseif (HD >= 9) then if (Rit >= 1) then hero.child[xSneakAtt].field[Value].value = hero.child[xSneakAtt].field[Value].value + 1 endif endif So, I finally tested it just now , and it does appear to work. But I truly do not understand why... As for the ShowMenu drop-down list for Legacy Wondrous items: I'm confused how/why this script is working also. In the Editor, the actual ShowMenu selection for the Wondrous Items Legacy Adjustment is currently set to "Current Armor". When I use the script you sent me, it nevertheless shows only the Magic Items on the Hero. I changed it to check BaseWonder instead, and now it shows only Assassin's Hands. This is great! Fantastic, wunderbar! But, is there any way to add a different entry to the ShowMenu list itself? I think I understand what the script is doing (replacing the selected drop-down list with the scripted one), but if I add a new tag to the ShowMenu drop-down in the Editor, the script breaks, and shows me every wondrous item, instead of those only on my hero. How can I build a new ShowMenu slection? Thank you Sendric! I really appreciate the help and your explanations! |
#11 |
|
|