Hi,
My goal is to create a self-contained plugin to navigate inventory / item information in a database. My thought is to use Hyperlinks in the plugin to call its scripts to generate the output.
For example, at startup the plugin has links:
<Bag1> <Bag2> <Bag3>
If I click on the link for Bag1, it calls a Subroutine in the same plugin to output the contents of Bag1 from a database.
I can't get the Hyperlink to call a subroutine part working though. I can set up a link from the main World to call into the plugin, but whenever the link is from the plugin to the plugin, it creates an error message.
Code snippet:
function OnPluginEnable()
local w = get_a_world (worldname, folder)
local linkstr = "!!4e5bdf861f5ca39c6e4b8a8e:ListLocations()"
w:Hyperlink(linkstr, "test", "", "yellow", "black", false)
Error message I get is:
Plugin "4e5bdf861f5ca39c6e4b8a8e" is not installed
If I change the link to appear in the main world, it works fine. Any thoughts on my overall approach, and ideas why the plugin is having trouble referencing itself? I added my plugin id to the trusted plugin list, in case it was a security issue. I'm using 4.43.
Thanks,
Dave