Senior Member
Join Date: Sep 2014
Posts: 105
|
Code:
Reduces the armor category of an armor by one step. (Heavy becomes medium, Medium becomes Light). Code:
Phase: Pre-levels Priority: 10000 if (parent.tagis[ArmorClass.Medium] <> 0) then perform parent.delete[ArmorClass.Medium] perform parent.assign[ArmorClass.Light] perform parent.delete[ArmorCateg.Slows] ~adding this tag to the armor makes it count as one category worse for ~the purpose of proficiency, meaning it requires the same proficiency ~it used to. perform parent.assign[Helper.Prof1Step] elseif (parent.tagis[ArmorClass.Heavy] <> 0) then perform parent.delete[ArmorClass.Heavy] perform parent.assign[ArmorClass.Medium] ~adding this tag to the armor makes it count as one category worse for ~the purpose of proficiency, meaning it requires the same proficiency ~it used to. perform parent.assign[Helper.Prof1Step] endif ~ Add to our custom description if we're armor if (container.parent.tagis[component.BaseArmor] <> 0) then field[mtDesc].text &= " Decreased armor category and penalties." endif container.parent.field[arArcFail].value -= 10 container.parent.field[arMaxDex].value += 2 container.parent.field[arArmorChk].value += 2 So I made essentially an item powers version of mithril (just copied the script over made a couple changes but that is it), when I select it though it says Code:
Attempt to access field 'mtDesc' that does not exist for thing 'ipLighten' - - - Attempt to access field 'mtDesc' that does not exist for thing 'ipLighten' |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Item Powers don't have a mtDesc field, that's only on materials I believe, so you'd have to change that part. I'd just put it in the Summary.
|
#2 |
Senior Member
Join Date: Sep 2014
Posts: 105
|
oh god, didn't even notice that line thank you.
|
#3 |
|
|