Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ World cannot call Plugin

World cannot call Plugin

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


Posted by Malarious   (4 posts)  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.
Top

Posted by Twisol   USA  (2,257 posts)  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
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
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.


13,314 views.

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

Go to topic:           Search the forum


[Go to top] top

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