Fantasy Grounds Merchandise
Page 114 of 114 First ... 1464104112113114
  1. #1131
    Thanks for help! its was almost right, next code worked well



    function onInit()

    local nodeChar = window.getDatabaseNode();
    local nodeCharSheetMain = nodeChar.getParent().getParent();
    Debug.chat("nodeCharSheetMain: ", nodeCharSheetMain);

    local nodePath = nodeCharSheetMain.getPath();
    Debug.chat("nodePath: ", nodePath);

    local nFight = DB.getValue(nodePath .. ".Fight_current", 0);
    Debug.chat("nFight: ", nFight);

    end

  2. #1132
    Hello again!

    have a little question about combat tracker.

    i used code for initrolls which i took from "Ruleset Wizard 014"

    (function InitHandler(rSource, rTarget, rRoll)
    local rMessage = ActionsManager.createActionMessage(rSource, rRoll);
    Comm.deliverChatMessage(rMessage);
    if (rSource) then
    local nTotal = ActionsManager.total(rRoll);
    rCreature = DB.findNode(rSource.sCTNode);
    rCreature.getChild("initresult").setValue(nTotal);
    end
    end)

    It works for GM, but did not for player. Do i need to use some sort of "msgOOB" to let players use initrolls by themself, or there is another way?

  3. #1133
    The PCs initiative is usually managed through the character sheet, using a linked field between the character sheet and the combat tracker, to avoid having to use OOB. If you want to do it from the CT you will have to use OOB.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

Page 114 of 114 First ... 1464104112113114

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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