[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  World cannot call Plugin

World cannot call Plugin

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Malarious   (4 posts)  [Biography] bio
Date Mon 02 Jan 2012 09:19 PM (UTC)
Message
I made an envenomer for Lusternia that I wanted to be 99% independent from the world itself. Most everything is in the script except for like 3/4 trigs. I have not put the triggers and the script into a plugin because I have run into a problem when I tried.

When I put the script and triggers into a plugin I could not call the plugins functions directly (right now the main world has a require to include the script). Is there a way to allow direct calls like envenomer("poison1", "poison2") if I made this a plugin without having to use getPlugin or similar in the script? Trying to make this easily sharable so it has to be cure system independent.

Sorry if that was pseudo-gibberish, if it doesnt make sense let me know.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Mon 02 Jan 2012 09:25 PM (UTC)
Message
Can you pastebin what you have so far? If the triggers and scripts are both in the same plugin, they should share the same script space.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Mon 02 Jan 2012 09:28 PM (UTC)
Message
Look at other plugins for examples. Many, many of them call scripts inside the plugin. That is the whole point, they are supposed to be independent.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,130 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]