Okay i've got a Bastard Sword that i'm entering into the editor which is causing me a problem.
{i}+2 keen flaming bastard sword{/i} is made from a
solid piece of jagged black stone.
Easy right? Bootstrap the Keen, Flaming, and Stone to the Bastard Sword add the correct numbers and its good to go.
However,
{B}The sword is very evil, and any good character that wields it gains two negative levels.{/b}
Ahh, I thought, i'll copy the code from the Unholy Power and change the number to 2 that should work..
Code:
~ If the hero is Good, and we're equipped, add 2 negative levels
doneif (hero.tagis[Alignment.Good] = 0)
if (parent.tagis[component.BaseWep] <> 0) then
doneif (parent.field[gIsEquip].value + parent.field[wIs2nd].value = 0)
else
doneif (parent.field[gIsEquip].value = 0)
endif
herofield[tNegLevel].value += 2
HTML Code:
Attempt to access non-existent parent pick for a top-level container from script
- - -
Attempt to access non-existent parent pick for a top-level container from script
Whats going wrong?? I presume it's the Parent.field which is causing the problem.
How do I transition to the weapon if the parent.field isn't the correct method?