SilentRuin
July 11th, 2020, 04:38
I was experimenting around with onDrop functionality - dragging things into a field that supported it and seeing what getShortcutData() gave me back.
I would see things like this:
-- charsheet
-- shortcut = {charsheet:charsheet.id-00002}
-- npc
-- shortcut = {npc:reference.npcdata.aarakocra@DD MM Monster Manual}
-- shortcut = {npc:combattracker.list.id-00005}
-- item
-- shortcut = {item:item.id-00001}
-- shortcut = {reference_equipment:reference.equipmentdata.abacu s@DD PHB Deluxe}
-- shortcut = {reference_mountsandotheranimals:reference.equipme ntdata.camel@DD PHB Deluxe}
-- shortcut = {reference_armor:reference.equipmentdata.leather@D D PHB Deluxe}
-- shortcut = {reference_weapon:reference.equipmentdata.club@DD PHB Deluxe}
-- shortcut = {reference_magicitem:reference.magicitemdata.leath erarmorofacidresistance@DD Dungeon Masters Guide}
Now I'm new to "link" logic in LUA and how to access it. Is there a document/example that actually details out how I can extract out specific information from these things?
I looked at things using getShortcutData() in 5E and CoreRPG code but it made no sense to me. Things did not really seem to ever be trying to grab any specific data out that I could see.
For example - I can see how I could define a node for things like charsheet.id-00002/combattracker.list.id-00005/item:item.id-00001 and find the data under those nodes in the DB - but what about things like all the reference* type of shortcuts? How do you extract that data?
Maybe a dumb question - but I really don't see it. I get something dropped on me - I want to find the data for it - no matter where it was dropped from. Not seeing how some of that data extraction works.
I would see things like this:
-- charsheet
-- shortcut = {charsheet:charsheet.id-00002}
-- npc
-- shortcut = {npc:reference.npcdata.aarakocra@DD MM Monster Manual}
-- shortcut = {npc:combattracker.list.id-00005}
-- item
-- shortcut = {item:item.id-00001}
-- shortcut = {reference_equipment:reference.equipmentdata.abacu s@DD PHB Deluxe}
-- shortcut = {reference_mountsandotheranimals:reference.equipme ntdata.camel@DD PHB Deluxe}
-- shortcut = {reference_armor:reference.equipmentdata.leather@D D PHB Deluxe}
-- shortcut = {reference_weapon:reference.equipmentdata.club@DD PHB Deluxe}
-- shortcut = {reference_magicitem:reference.magicitemdata.leath erarmorofacidresistance@DD Dungeon Masters Guide}
Now I'm new to "link" logic in LUA and how to access it. Is there a document/example that actually details out how I can extract out specific information from these things?
I looked at things using getShortcutData() in 5E and CoreRPG code but it made no sense to me. Things did not really seem to ever be trying to grab any specific data out that I could see.
For example - I can see how I could define a node for things like charsheet.id-00002/combattracker.list.id-00005/item:item.id-00001 and find the data under those nodes in the DB - but what about things like all the reference* type of shortcuts? How do you extract that data?
Maybe a dumb question - but I really don't see it. I get something dropped on me - I want to find the data for it - no matter where it was dropped from. Not seeing how some of that data extraction works.