PDA

View Full Version : Drag & Drop Failure - Can't Drop



LordEntrails
August 3rd, 2025, 17:40
Here's the second drag and drop problem I'm having. In this case it's Item objects I can drag and drop on the window list in the character sheet, but I can't drag and drop them on any other library objects, like NPCs or Starships. And again I've dug in as deep as I can and am clueless on what is going different between the place it works and the one(s) it doesn't. Here's what it looks like:

64980

here's the xml from the Major NPC sub-window:

<windowlist name="equipment">
<frame name="frame_windowlist" offset="3,25,3,3" />
<anchored>
<left offset="9" />
<right offset="-12" />
<top offset="35" anchor="bottom" parent="benefits_list" relation="relative" />
<sizelimits>
<minimum height="20" />
</sizelimits>
</anchored>
<class>char_invitem</class>
<datasource>.inventorylist</datasource>
<allowcreate />
<allowdelete />
<acceptdrop>
<class>item</class>
<field>*</field>
</acceptdrop>
<columns>
<width>355</width>
<filldown />
</columns>
<script file="campaign/scripts/char_invlist.lua" />
</windowlist>



char_invlist.lua is coming from CoreRPG.
What am I missing?

superteddy57
August 3rd, 2025, 21:44
Need to setup the record type to be eligible to have an inventory. It's done through the LibraryData. You can see the breakdown in CoreRPG's with the bInventory flag.

LordEntrails
August 3rd, 2025, 22:35
I knew it would be easy if only knew what I was doing. Thanks!

For NPCs, can I just add an option value to my ruleset's dataLibrary.lua (i.e. some sort of merge or join?) or do I have to copy the whole things from corerpg? (i.e. I'm trying to minimize what I overwrite!)