-
October 13th, 2024, 12:01 #1131
- Join Date
- Jul 2017
- Posts
- 10
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
Thread Information
Users Browsing this Thread
There are currently 5 users browsing this thread. (0 members and 5 guests)
Bookmarks