-
October 13th, 2024, 13:01 #1131
- Join Date
- Jul 2017
- Posts
- 11
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
-
November 13th, 2024, 08:39 #1132
- Join Date
- Jul 2017
- Posts
- 11
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?
-
November 13th, 2024, 09:40 #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
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks