Oberoten
January 19th, 2008, 21:24
Once again I come back to you with a question on how to do things...
In this case :
I have my windowlist with instances of skills and I have it calculating a XPcost for the level of a skill. :) Now all I need to do is to add the changes in XP to the "XpUsed" tracker which is on the main sheet.
So the question becomes this : How do I properly roll back to find the parent node?
local xp1;
local xpold;
local xpdiff;
xp1 = window.getDatabaseNode().getChild("skill.xp").getValue()
xp2 = window.getDatabaseNode().getChild("skill.oldxp").getValue()
xpdiff = xp1 - xp2
window.getdatabasenode().getchild("xpused").setvalue(xpdiff);
return true;
Seems to try to acess a xpused that should be within the Windowlist, I want the one on the charactersheet.
In this case :
I have my windowlist with instances of skills and I have it calculating a XPcost for the level of a skill. :) Now all I need to do is to add the changes in XP to the "XpUsed" tracker which is on the main sheet.
So the question becomes this : How do I properly roll back to find the parent node?
local xp1;
local xpold;
local xpdiff;
xp1 = window.getDatabaseNode().getChild("skill.xp").getValue()
xp2 = window.getDatabaseNode().getChild("skill.oldxp").getValue()
xpdiff = xp1 - xp2
window.getdatabasenode().getchild("xpused").setvalue(xpdiff);
return true;
Seems to try to acess a xpused that should be within the Windowlist, I want the one on the charactersheet.