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
➜ I'm sure this is a dumb trigger question...
|
I'm sure this is a dumb trigger question...
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Shenennigans
(2 posts) Bio
|
| Date
| Sun 02 Aug 2020 02:20 PM (UTC) |
| Message
| A little preface: I haven't played a MUD in ~20 years and suddenly remembered they were a thing. Downloaded MUSHclient and am playing Realms of Despair. I know next to nothing about scripting/MUDing/SMAUG/clients lol. I read the documentation first, but I'm clearly misinterpreting something.
So, I'm trying to make a trigger that picks up my weapon when disarmed and wields it. The text looks like "The crab guard DISARMS your hammer!". I set the trigger for "DISARMS your *", then in Send:
get %1
wield %1
It doesn't seem to do anything at all. Send to: is set to world, no match conditions, enabled. Not sure what I'm doing wrong. | | Top |
|
| Posted by
| Shenennigans
(2 posts) Bio
|
| Date
| Reply #1 on Sun 02 Aug 2020 02:57 PM (UTC) |
| Message
| Ok I've kinda/sorta got it. I found this post https://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4543
that straightened me mostly out. I have to manually set the weapon variable since the weapon is "an oar" and to get it you have to just say "oar". Not sure how to get rid of the "an" in a way that would work for other weapons that don't have that, say just "hammer" or something. Not super important though, whenever I change weapons just update my variable. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Sun 02 Aug 2020 09:49 PM (UTC) |
| Message
| It's strange that it didn't do anything at all. Try showing the whole thing:
 |
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
Quote:
I set the trigger for "DISARMS your *", then in Send:
get %1
That won't match: "The crab guard DISARMS your hammer!"
It needs to be more like:
The trick is to take an example message, and put asterisks where the variable stuff is. Then of course your weapon is %2 and not %1. |
- 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.
12,918 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top