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
➜ Going from zMud 6.62 to Mushclient...
Going from zMud 6.62 to Mushclient...
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Ledneh
USA (6 posts) Bio
|
Date
| Reply #15 on Fri 13 Feb 2004 02:08 AM (UTC) Amended on Fri 13 Feb 2004 02:11 AM (UTC) by Ledneh
|
Message
| New Question!
Can Mushclient trigger off variable contents (internal OR script)? Ala...
MATCH: @tar
EXEC : (color it orange)
I know this is perfectly doable in zMud, but I can't seem to figure out how to do it here.
Also, to state the obvious, @tar is a variable. ;) |
"We are the Dyslexia of Borg. Your ass will be laminated. Futility is resistant." | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #16 on Fri 13 Feb 2004 03:10 AM (UTC) |
Message
| Never tried doing that myself, but I believe it is possible. Try using the variable in the trigger match text like:
@tar jumps you from around the corner.
and setting the 'Expand variables' option in the Trigger dialogue | Top |
|
Posted by
| Ledneh
USA (6 posts) Bio
|
Date
| Reply #17 on Fri 13 Feb 2004 03:26 AM (UTC) |
Message
| Yeah, I already tried that--didn't work, hence, I'm here. :) |
"We are the Dyslexia of Borg. Your ass will be laminated. Futility is resistant." | Top |
|
Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
Date
| Reply #18 on Fri 13 Feb 2004 03:54 AM (UTC) |
Message
| Did you try it with a script variable or a Mushclient variable? You can only use the variables set using world.setvariable or the option 'send to variable' in aliases and triggers.
Basically, because Mushclient uses external engines to run its scripts, the scripts be any language you have an engine for and do things an inbuilt system could not. *However*, Mushclient's built in features like triggers are not aware of or able to access the variables used by those engines directly. This means you have to use Mushclient's internal variables for this.
Now, why it won't work for you with an internal variable I have no idea. It could be anything from not having you trigger text quite right to the name you store being upper case and the line you want to match using lower case. | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #19 on Fri 13 Feb 2004 05:42 AM (UTC) |
Message
| Yep, matching variables works fine. The variable has to be a MUSHclient variable (ie. appear in the variables configuration screen), but this works:
<triggers>
<trigger
custom_colour="9"
enabled="y"
expand_variables="y"
match="@tar"
regexp="y"
sequence="100"
>
</trigger>
</triggers>
|
- 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.
65,117 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top