DICE PACKS BUNDLE
  1. #1

    Execute Function in charsheet onLoad?

    Hey Community,

    is there a way to update a list in the charsheet (like inventory, spells, ...) "onLoadComplete"? onInit is loading only one time, but i need a function updating everytime the user opens the charsheet.

    In fact i need a action handler that looks like

    Code:
    function onLoad()
       --stuff loaded everytime the user opens the charsheet
    end
    Hmmm, do you know what i mean?

  2. #2

  3. #3
    Add an onInit function to the first thing in your main window class's sheetdata. Everytime the window opens, that will get fired. From there, you can figure out what it is you want to do/call. In other words,

    Code:
    <windowclass name="MyCharacterWindow">
        <banner_campaign>
            <script>
               function onInit()
                   MyPackage.onLoad();
               end
            </script>
    ...
    </windowclass>

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
  •  
5E Product Walkthrough Playlist

Log in

Log in