joshuha
June 15th, 2007, 04:44
Both rulesets\[ruleset]\tokens\[folder] and tokens\host\[folder] can have tokens.
I notice that tokens from both sources above are shown in my tokenbag as a GM. One interesting note is that if both sources have the same folder name you get a combined token bag although if the tokens were the same name you get duplicates.
My question is how do I access the ones in the ruleset via the script with the addToken() function on an imagecontrol?
This works:
imagewindow.image.addToken("tokens\host\test\test.png", x, y);
This does not work:
imagewindow.image.addToken("rulesets\custom\tokens\test\test.png", x, y);
Any ideas? I realize the tokenroot tag in the base.xml tells the ruleset where to get non-ruleset tokens but it doesn't seem to use or need that for the addToken command (i.e you need the full path).
I notice that tokens from both sources above are shown in my tokenbag as a GM. One interesting note is that if both sources have the same folder name you get a combined token bag although if the tokens were the same name you get duplicates.
My question is how do I access the ones in the ruleset via the script with the addToken() function on an imagecontrol?
This works:
imagewindow.image.addToken("tokens\host\test\test.png", x, y);
This does not work:
imagewindow.image.addToken("rulesets\custom\tokens\test\test.png", x, y);
Any ideas? I realize the tokenroot tag in the base.xml tells the ruleset where to get non-ruleset tokens but it doesn't seem to use or need that for the addToken command (i.e you need the full path).