See in that video here:
https://youtu.be/RiBkE32tgv8?list=PL...lcerBvW3&t=260
ChangetoCode:<totalchar name="ts" source="abilities.ts">
<anchored to="as" position="insidetopleft" offset="0,28" width="18" />
<tooltip text="Strength Skill" />
<target>ts</target>
<statname>Strength Skill</statname>
<stat>ts</stat>
<script>
function onInit()
local nodeWin =window.getDatabaseNode();
CharacterUpdate.updateS(nodeWin);
end
</script>
</totalchar>
andCode:<totalchar name="ts" source="abilities.ts">
<anchored to="as" position="insidetopleft" offset="0,28" width="18" />
<tooltip text="Strength Skill" />
<target>ts</target>
<statname>Strength Skill</statname>
<stat>ts</stat>
<script>
function onInit()
local nodeWin =window.getDatabaseNode();
Debug.chat("nodeWin1: ", nodeWin);
CharacterUpdate.updateS(nodeWin);
end
</script>
</totalchar>
toCode:function updateS(nodeWin)
local nIS = nodeWin.getChild("is").getValue();
local nAS = nodeWin.getChild("as").getValue();
local nTS = (nIS+nAS);
Debug.console("nTS: ", nTS);
nodeWin.getChild("abilities.ts").setValue(nTS);
end
and see what nodeWin1 and nodeWin2 do.Code:function updateS(nodeWin)
Debug.chat("nodeWin2: ", nodeWin);
local nIS = nodeWin.getChild("is").getValue();
local nAS = nodeWin.getChild("as").getValue();
local nTS = (nIS+nAS);
Debug.console("nTS: ", nTS);
nodeWin.getChild("abilities.ts").setValue(nTS);
end
and see if it outputs
then in