1. #1

    Question regarding character selection

    Does anyone know which lua functions are called when a player selects a character from the characters tab?
    I'm looking to populate a list of character id's as players login in/select their characters.

    Thanks, Steve.

  2. #2
    Look at the “characterlist” panel and window class. They have registered handler callbacks for when players add/release PCs in order to show the portraits in the upper left side of tabletop.

    Regards,
    JPG

  3. #3
    celestian's Avatar
    Join Date
    Jan 2017
    Location
    DFW, Texas
    Posts
    2,163
    Quote Originally Posted by Stv View Post
    Does anyone know which lua functions are called when a player selects a character from the characters tab?
    I'm looking to populate a list of character id's as players login in/select their characters.

    Thanks, Steve.
    You might want to take a look at AD&D ruleset. It does what you are looking for as an example.

    Specifically the scripts/manager_connection_adnd.lua.

    The same code is used in the "Readycheck" extension as well.
    ---
    Coding the Official AD&D Ruleset
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)

  4. #4
    Thank you both for the quick replies, I'll go take a look

Thread Information

Users Browsing this Thread

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

Posting Permissions

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

Log in

Log in