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 ➜ VBscript ➜ Adding triggers which send to script?

Adding triggers which send to script?

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


Posted by Neva   USA  (117 posts)  Bio
Date Sat 17 Jul 2004 10:07 PM (UTC)
Message
Is this *possible*? 'AddTriggerEx' doesn't look like it has an option for it, and I'm trying to set up something that'll turn off an option when it catches a certain string from the game, but it needs to be turned on by a separate alias first.

I'm thinking I can just add the trigger and have the script enable/disable it instead, but it seems a little odd.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Sat 17 Jul 2004 10:33 PM (UTC)
Message
You can create a trigger which "sends to script", AddTriggerEx has the "Sendto" field, which can be any of the normal send to values. Apparently the page isnt updated, but you can use any of the real ones.

Also (for adding triggers in general), you can use SetTriggerOption to modify triggers, or importXML too.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Neva   USA  (117 posts)  Bio
Date Reply #2 on Sat 17 Jul 2004 10:38 PM (UTC)
Message
See, the thing is, it says that the 'send to' ought to be a number from 0-9, and 'script' isn't included on the list of what those values mean.
Top

Posted by Shadowfyr   USA  (1,792 posts)  Bio
Date Reply #3 on Sat 17 Jul 2004 10:56 PM (UTC)
Message
As he said, the information isn't all that up to date anyway. The values should be:

0 - World
1 - Command
2 - Output
3 - Status
4 - Notepad (New)
5 - Notepad (Append)
6 - Log file
7 - Notepad (Replace)
8 - World (delayed by speedwalk setting)
9 - Variable
10 - Execute
11 - Speedwalk
12 - Script
13 - World (Immediate)

Unfortunately, while a lot of people tweak and code triggers in the XML, the docs tend to assume that you are using the inbuilt editor, so you don't need to know the values. This is imho a bad assumption. But Mushclient's help and docs are definitely not as bad at this as stuff written for say C++ compilers.. lol Your lucky in some cases if the description makes sense, let alone knowing what the value is for a flag in one of those.
Top

Posted by Neva   USA  (117 posts)  Bio
Date Reply #4 on Sat 17 Jul 2004 11:08 PM (UTC)
Message
Yay! Thanks. That's what I was looking for, exactly.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Sun 18 Jul 2004 09:52 PM (UTC)
Message
The correct list was in GetTriggerInfo. I have amended the documentation for AddTriggerEx (on this site's online documentation) to have the same list.

- 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.


22,097 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.