1. #1
    Valarian's Avatar
    Join Date
    Mar 2007
    Location
    Worcestershire, UK
    Posts
    2,430

    Problems synchronising a label cycler field to the combat tracker.

    In the One Ring, the combat stance of a character determines the initiative order. I've implemented this in the combat tracker using a label cycler. For the latest version of the ruleset, I had the idea of placing a similar label cycler (with the same values) on the character sheet so that the player could control the stance rather relying on the GM to change the stances. Unfortunately, I've not managed to get the link to synchronise to the tracker.

    Debug output would indicate that the change to the field on the character sheet is being picked up by the code, but not making through to the cycler on the combat tracker.
    s'DEBUG : onLinkUpdated(): sLink/bLocked/value: ' | s'charsheet.id-00002.defaultstance' | bFALSE | s'Open'
    s'DEBUG : onUpdateDisplay(): sLink: ' | s'charsheet.id-00002.defaultstance' | s'Fwd'

    Anyone tried this or something similar?
    Current Regular Games: European FG2 RPG

    Using Ultimate FGII - that means anyone can play.
    Valarian's Fantasy Grounds Rulesets - Now also linked in the Wiki

  2. #2
    Maybe you can try implementing the "stance" as a hidden stringfield which is linked like other PC fields, and then attach the cycler to that field.

    Regards,
    JPG

  3. #3
    Valarian's Avatar
    Join Date
    Mar 2007
    Location
    Worcestershire, UK
    Posts
    2,430
    I've managed to get the label cycler synchronisation to work by moving some of the update code into the onLinkUpdated function instead of calling the update function on the cycler itself.
    Attached the ct_labelcycler code for future reference (change the extension from .txt to .lua).
    Attached Files Attached Files
    Current Regular Games: European FG2 RPG

    Using Ultimate FGII - that means anyone can play.
    Valarian's Fantasy Grounds Rulesets - Now also linked in the Wiki

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