Dungeons & Dragons 2024 Core Rulebooks Pre-Order
  1. #1

    Wrote myself into a corner - need another eye

    Could someone have a look at my script here? I have it creating a list with a check box, but for some reason the check box is not surviving closing the character sheet. Any check marks placed on this sheet are reset to the default "off" when the ruleset is closed and reopened.

    I think it's something in the "talenttaken" generic control.
    Ultimate License
    Rulesets by NezziR:
    WFRP2 for FGI, WFRP2 for FGII, Dark Heresy for FGII,
    Savage Fallout for FGII and Savage Worlds, FGII help mod.


    https://groups.yahoo.com/neo/groups/fgvtt/files

  2. #2
    Foen's Avatar
    Join Date
    Jan 2007
    Location
    Suffolk, England
    Posts
    2,007
    You are creating your own checkbox control, based on genericcontrol, for the list windowclass. Genericcontrol isn't bound to the database (its a _control instead of a _field) and none of your script attempts to do that.

    You might try re-using the checkbox template control provided in the d20 ruleset, which creates an underlying number node to record the current state in the database.

    Hope that helps

    Stuart

  3. #3
    Thanks, I'll try to figure that out. Sounds like the right direction.
    Ultimate License
    Rulesets by NezziR:
    WFRP2 for FGI, WFRP2 for FGII, Dark Heresy for FGII,
    Savage Fallout for FGII and Savage Worlds, FGII help mod.


    https://groups.yahoo.com/neo/groups/fgvtt/files

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