• 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

Psychokinetic Burst [Synergy] property

bodrin

Well-known member
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
Code:
~ Don't show the previous version of Psychokinetic Weapon, to avoid clutter on the weapon description.

 perform hero.childfound[ipPsiPsyKi].delete[Helper.ShowSpec]
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.

Code:
Error Message : Psychokinetic property required.

validif (hero.childlives[ipPsiPsyKi].tagis[Helper.ShowSpec] <> 0)
Any ideas what im doing wrong?
 
childlives[] is a question - it will answer 1 if the thing is there, and 0 if it isn't.
You can't transition from childlives[] to tagis[].

Code:
if (hero.childlives[ipPsiPsyKi] <> 0) then
  validif (hero.childfound[ipPsiPsyKi].tagis[Helper.ShowSpec] <> 0)
  endif
 
Thanks for the clarification. I had it in the back of my mind that because I was removing the spechelper Psychokinetic then the burst version was invalidating itself.

I'll try the code later as not got hl with me at moment!
 
Okay i've tried this script

Code:
~ Check for Psychokinetic property on weapon
~ If we are there then we're valid

if (hero.childlives[ipPsiPsyKi] <> 0) then
  validif (hero.childfound[ipPsiPsyKi].tagis[Helper.ShowSpec] <> 0)
  endif
And it's still showing an invalid red colour on the weapon!

Screen-shot attached.
 

Attachments

  • Psychokinetic.JPG
    Psychokinetic.JPG
    229.2 KB · Views: 3
The weapon properties don't live in the hero, they live in a special gizmo container within the weapon.

This is why Shock and Shocking burst are two separate item powers, rather than shocking burst being an upgrade of shock.
 
Back
Top