Ken L
May 27th, 2016, 04:12
I'm not clear on how to create NPC entries, or any entries for that matter, into the database such that they show up.
Looking at
* CoreRPG/campaign/template_campaign.xml
* CoreRPG/campaign/scripts/campaign_button_new.lua
* CoreRPG/campaign/campaign_npcs.xml
* CoreRPG/campaign/record_npc.xml
It appears that I need to create a database node through createChild() which will create a node beneath npc from
ln 8 @ campaign_button_new.lua
local node = window.getDatabaseNode().createChild();
Which I infer that the node is based off the window from where the button is pressed which is the npc list ? I'll try this out later, I'm just sensing around the structure.
I'm assuming that I'd need to get the node of the npc list as my method will be external and not launch from the npc list, so I need a way to get a node by name. From raking through the ruleset reference, I'm not coming up with anything.
Looking at
* CoreRPG/campaign/template_campaign.xml
* CoreRPG/campaign/scripts/campaign_button_new.lua
* CoreRPG/campaign/campaign_npcs.xml
* CoreRPG/campaign/record_npc.xml
It appears that I need to create a database node through createChild() which will create a node beneath npc from
ln 8 @ campaign_button_new.lua
local node = window.getDatabaseNode().createChild();
Which I infer that the node is based off the window from where the button is pressed which is the npc list ? I'll try this out later, I'm just sensing around the structure.
I'm assuming that I'd need to get the node of the npc list as my method will be external and not launch from the npc list, so I need a way to get a node by name. From raking through the ruleset reference, I'm not coming up with anything.