STAR TREK 2d20
Page 2 of 2 First 12
  1. #11
    Found the issue you were having with overriding the script. The updatePowerWindowUses actually returns a value that is used by another function in power_page.lua. In your version, you weren't returning anything, which is the same as always returning "nil" value which equates to false on boolean checks.

    Here's an updated version of the extension with the return value passed through correctly.

    Regards,
    JPG
    Attached Files Attached Files

  2. #12
    Quote Originally Posted by Moon Wizard View Post
    Found the issue you were having with overriding the script. The updatePowerWindowUses actually returns a value that is used by another function in power_page.lua. In your version, you weren't returning anything, which is the same as always returning "nil" value which equates to false on boolean checks.

    Here's an updated version of the extension with the return value passed through correctly.

    Regards,
    JPG
    Ah, a rookie mistake on my part. Not only do I need to call the old function, but I also need to return its result.

    Thank you for your help as always!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in