• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with magic item

Kaleb

Well-known member
I am trying to add the speed ability from weapon enchanments to a wounderous item and I get the following error message

Attempt to access non-existent parent pick for a top-level container from script
- - -
Attempt to access non-existent child pick 'gCustMagic' from script

Here is the script that I am using Prelevels 10000
~ we get an extra attack unless we're the off-hand weapon and we're being dual-wielded
if (parent.field[wIs2nd].value <> 0) Then
foreach pick in hero from BaseWep where "Helper.ExtraHigh"
doneif (eachpick.field[gIsEquip].value <> 0)
nexteach
endif

perform parent.assign[Helper.ExtraHigh]
else
foreach pick in hero from BaseWep where container.child[gCustMagic].field[gWeapExpr].text
perform eachpick.assign[Helper.ExtraHigh]
nexteach
endif
 
You need to modify the speed script if you're putting it directly on a weapon as there aren't parent picks on them

you should just need a script like

Code:
if (field[wIs2nd].value <> 0) then
  perform assign[Helper.ExtraHigh]
endif
 
Back
Top