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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Trigger error

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Trigger error
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Wed 17 Nov 2004 12:55 PM (UTC)  quote  ]
Message
ok, thanks!
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Wed 17 Nov 2004 03:40 AM (UTC)  quote  ]
Message
The slash character is the "immediate script" prefix, although you can change that.

For example:


/world.note "hello"



When you type:


/say bye


It is sending "say bye" to VBscript which is then complaining.

If you want to use / in this context open the scripting configuration window, and change the script prefix to something else.



- Nick Gammon

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

Posted by Tsunami   USA  (204 posts)  [Biography] bio
Date Tue 16 Nov 2004 07:30 PM (UTC)  quote  ]
Message
I've been trying to desgin a alias to supplement the auto-mapper. It works in a plugin where I have an ENTITY tag which defines several common, non-direction commands I might want the automapper to execute. For instance:

<!DOCTYPE muclient [
<!ENTITY otherTriggers "say|get|put" >
]>

The alias is meant to be used to define a reverse command at the same time as excuting the command. The alias is as follows:

<alias
script="OtherWReverse"
match="^((?:&otherTriggers;).*?)?/(.*)$"
enabled="n"
group="Mapping"
regexp="y"
sequence="998"
>
</alias>

The script is as follows:

sub OtherWReverse(name,output,wildcs)
world.AddToMapper wildcs(1), wildcs(2)
world.send wildcs(1)
end sub

Some examples the alias should match on:
say hello/say bye
/say bye
put 1 blah in blah/get 1 blah from blah

It's the second example (/say bye) I'm having problems with. I get the following error message:

Error number: -2146828275
Event: Execution of line 1 column 1
Description: Type mismatch: 'say'
Line in error:

Called by: Immediate execution

Any help? Thanks!
[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.


1,412 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]