OnPluginSend

Posted by Simon on Sat 26 Jun 2004 03:22 PM — 5 posts, 19,537 views.

Sweden #0
There should a similiar hangup for scripting, that works in the script and doesn't have to be in a plugin :P Please.
Australia Forum Administrator #1
What is the problem with writing a small plugin to achieve what you want?
Sweden #2
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
USA #3
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.
Sweden #4
That's a really good solution of the problem. Many thanks.