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
➜ General
➜ Trigger error
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Tue 16 Nov 2004 07:30 PM (UTC) |
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! | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 17 Nov 2004 03:40 AM (UTC) |
Message
| The slash character is the "immediate script" prefix, although you can change that.
For example:
When you type:
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 | Top |
|
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Reply #2 on Wed 17 Nov 2004 12:55 PM (UTC) |
Message
| |
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.
10,987 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top