I'm trying to script a Pre Req for the Psychokinetic Burst [Synergy] property from Magic Item Compendium Pg41.
I've managed to remove the Psychkinetic text from an equipped weapon so it only shows Psychokinetic Burst once added, therefore tidying up character sheet. Works a treat!
Remove Script
But I can't figure out how to make Psychokinetic Burst check for the Psychokinetic property and show as Valid in the selection screen!
I keep getting an Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'pre-requisite rule' script for Thing 'ipPsiPsyKB' on line 1
-> Reference to undeclared variable: 'validif'
Script i've tried so far.
Any ideas what im doing wrong?
I've managed to remove the Psychkinetic text from an equipped weapon so it only shows Psychokinetic Burst once added, therefore tidying up character sheet. Works a treat!
Remove Script
Code:
~ Don't show the previous version of Psychokinetic Weapon, to avoid clutter on the weapon description.
perform hero.childfound[ipPsiPsyKi].delete[Helper.ShowSpec]
I keep getting an Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'pre-requisite rule' script for Thing 'ipPsiPsyKB' on line 1
-> Reference to undeclared variable: 'validif'
Script i've tried so far.
Code:
Error Message : Psychokinetic property required.
validif (hero.childlives[ipPsiPsyKi].tagis[Helper.ShowSpec] <> 0)