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 ➜ Suggestions ➜ OnPluginSend

OnPluginSend

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


Posted by Simon   Sweden  (39 posts)  Bio
Date Sat 26 Jun 2004 03:22 PM (UTC)
Message
There should a similiar hangup for scripting, that works in the script and doesn't have to be in a plugin :P Please.

- "Where do you live, Simon?"
- "I live in the sick and wounded, doc."
Session 9
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 27 Jun 2004 10:28 PM (UTC)
Message
What is the problem with writing a small plugin to achieve what you want?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Simon   Sweden  (39 posts)  Bio
Date Reply #2 on Mon 28 Jun 2004 01:07 AM (UTC)
Message
Well, the problem is this:

I have a script with triggers that interact with themselves through global variables in my script file. These variables are also modified by different aliases. They also use variables in my worldfile. The problem is that I don't want my entire script and half of my triggers, aliases and variables as a plugin since that would be what I would be required to do in the end. This would require me to recode basically my entire script since I do alot of trigger deactivations through the gui, and also alot of variable changes through the gui.

The command hangup is something that I've been longing for for a looooooong time. I'm not sure though - is there any way to make a plugin that hooks up your commands and send them to the script?

Thanks for a wonderful client :)

Regards,
Simon

- "Where do you live, Simon?"
- "I live in the sick and wounded, doc."
Session 9
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #3 on Mon 28 Jun 2004 01:22 AM (UTC)
Message
You can make a plugin with the callback, and you can call routines in your main script via execute. Just make sure you have your script prefix. You could make it an entity in your plugin to be able to change it if you modify your prefix later. But you can call scripts in your main world file while sending to execute in a plugin.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Simon   Sweden  (39 posts)  Bio
Date Reply #4 on Mon 28 Jun 2004 06:22 PM (UTC)
Message
That's a really good solution of the problem. Many thanks.

- "Where do you live, Simon?"
- "I live in the sick and wounded, doc."
Session 9
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.


18,578 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.