-
June 19th, 2020, 19:23 #1
Moving from player id in CT to charsheet
Since it appears that the id of a character can be a different string under the charsheet and combattracker db entries, is there a way to easily get back and forth?
I have a handler in onInit which runs combineCarryModifiers when I change effects:
Code:DB.addHandler(DB.getPath('combattracker.list.*.effects'), 'onChildUpdate', combineCarryModifiers)
When I define rActor:
Code:rActor = ActorManager.getActor('pc', node.getParent())
Code:{ s'sType' = s'pc', s'sCreatureNode' = s'combattracker.list.id-00001', s'sCTNode' = s'combattracker.list.id-00001', s'sName' = s'testy' }
Obviously, I'm doing something wrong. What is it?
-
June 19th, 2020, 21:40 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
You need to pass "ct" as the first parameter into getActor; because you're passing it a combat tracker node as the second argument.
Regards,
JPG
-
June 20th, 2020, 02:25 #3
I did actually try that, but must have messed something else up.
Thanks for the pointer
EDIT: It works now, not sure what else I had messed up last time but thanks again !!Last edited by bmos; June 20th, 2020 at 02:34.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks