LordEntrails
December 17th, 2024, 17:54
So I am trying to take a list of skills from the charactersheet (custom ruleset) and re-use it in the NPC. But I can't get the skills window to show in the NPC object in FG. No errors are thrown.
Here's the code in the "charsheet_main":
<list_text name="skills_list">
<frame name="frame_windowlist" offset="3,25,3,3" />
<anchored>
<left offset="142" />
<right offset="-18" />
<top offset="30" />
</anchored>
<class>skills_charsheet</class>
<datasource>.skillslist</datasource>
<allowcreate />
<allowdelete />
<acceptdrop>
<class>skills</class>
<field>*</field>
</acceptdrop>
<columns>
<width>362</width>
</columns>
</list_text>
<genericcontrol name="skills_label">
<bounds>139,5,140,21</bounds>
<icon>skills_label</icon>
</genericcontrol>
<button_iedit name="skills_list_iedit">
<bounds>-40,8,20,20</bounds>
<icon normal="button_edit" />
<font>button-white</font>
<target>skills_list</target>
</button_iedit>
<button_iadd name="skills_list_iadd">
<bounds>-62,8,20,20</bounds>
<icon normal="button_add" />
<font>button-white</font>
<target>skills_list</target>
</button_iadd>
<scrollbarcontrol name="skills_scrollbar">
<frame name="scrollbar_base" offset="0,12,0,12" />
<bounds>504,47,8,236</bounds>
<target>skills_list</target>
<normal name="scrollbutton_normal">
<minimum height="scrollbutton_normal" />
</normal>
</scrollbarcontrol>
And here is the code in the "sub_npc_major" (which is visible when npc_type is visible and is a sub window of npc_main):
<list_text name="skills_list">
<frame name="frame_windowlist" offset="3,25,3,3" />
<anchored>
<left offset="10" />
<right offset="-176" />
<top offset="169" />
</anchored>
<class>skills_charsheet</class>
<datasource>.skillslist</datasource>
<allowcreate />
<allowdelete />
<acceptdrop>
<class>skills</class>
<field>*</field>
</acceptdrop>
<columns>
<width>362</width>
</columns>
</list_text>
Is my assumption simple wrong that I can re-use this code so that I only have to maintain it in one place?
edit: sorry, indention is not pasting from NPP and not holding when done manually
Here's the code in the "charsheet_main":
<list_text name="skills_list">
<frame name="frame_windowlist" offset="3,25,3,3" />
<anchored>
<left offset="142" />
<right offset="-18" />
<top offset="30" />
</anchored>
<class>skills_charsheet</class>
<datasource>.skillslist</datasource>
<allowcreate />
<allowdelete />
<acceptdrop>
<class>skills</class>
<field>*</field>
</acceptdrop>
<columns>
<width>362</width>
</columns>
</list_text>
<genericcontrol name="skills_label">
<bounds>139,5,140,21</bounds>
<icon>skills_label</icon>
</genericcontrol>
<button_iedit name="skills_list_iedit">
<bounds>-40,8,20,20</bounds>
<icon normal="button_edit" />
<font>button-white</font>
<target>skills_list</target>
</button_iedit>
<button_iadd name="skills_list_iadd">
<bounds>-62,8,20,20</bounds>
<icon normal="button_add" />
<font>button-white</font>
<target>skills_list</target>
</button_iadd>
<scrollbarcontrol name="skills_scrollbar">
<frame name="scrollbar_base" offset="0,12,0,12" />
<bounds>504,47,8,236</bounds>
<target>skills_list</target>
<normal name="scrollbutton_normal">
<minimum height="scrollbutton_normal" />
</normal>
</scrollbarcontrol>
And here is the code in the "sub_npc_major" (which is visible when npc_type is visible and is a sub window of npc_main):
<list_text name="skills_list">
<frame name="frame_windowlist" offset="3,25,3,3" />
<anchored>
<left offset="10" />
<right offset="-176" />
<top offset="169" />
</anchored>
<class>skills_charsheet</class>
<datasource>.skillslist</datasource>
<allowcreate />
<allowdelete />
<acceptdrop>
<class>skills</class>
<field>*</field>
</acceptdrop>
<columns>
<width>362</width>
</columns>
</list_text>
Is my assumption simple wrong that I can re-use this code so that I only have to maintain it in one place?
edit: sorry, indention is not pasting from NPP and not holding when done manually