STAR TREK 2d20
  1. #1

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247

    Option Callbacks

    Greetings All,

    are callbacks for Settings Options restricted to a parameterless function or can parameters be passed along as well?

    If we cannot pass parameters, is there a way to have a generic callback function that knows who called it and thus operate accordingly?
    Thanks In Advance,
    D

  2. #2
    The OptionsManager script is part of the CoreRPG ruleset. During the change event, that global script only passes the name of the key that changed.

    Anything else you want to store for usage when the event is triggered should be saved off in onInit script events and/or other script functions you want to track.

    Regards,
    JPG

  3. #3

    Join Date
    Mar 2020
    Location
    Sydney, Australia
    Posts
    247
    Quote Originally Posted by Moon Wizard View Post
    The OptionsManager script is part of the CoreRPG ruleset. During the change event, that global script only passes the name of the key that changed.

    Anything else you want to store for usage when the event is triggered should be saved off in onInit script events and/or other script functions you want to track.

    Regards,
    JPG
    Thank you for the information ... the key should be enough for my usage case(s).

    In what variable is that key passed?
    Thanks In Advance,
    D

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