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
➜ alias timer and variable
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wishsong
(2 posts) Bio
|
Date
| Thu 06 Sep 2007 06:55 PM (UTC) |
Message
| I am having an issue with a timing on an alias with a variable.
Explaination
I have an alias which says.
<aliases>
<alias
match="pt"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send("open door")
DoAfter (1, "turn on light")
DoAfter (2, "kill %1")</send>
</alias>
</aliases>
I thought that %1 told it to accept the variable from the commandline as in.
pt monster
The alias seems to fail when I do pt wizard
If I do pt on its own the alias executes but because it has no target, it fails.
How can I correct this?
If I have more commands in the alias list as in more DoAfter statements will the %variablenumber I use change?
| Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #1 on Thu 06 Sep 2007 07:32 PM (UTC) |
Message
| The wildcard needs to be marked with an asterisk in the match section. Try match="pt *" |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Thu 06 Sep 2007 11:02 PM (UTC) |
Message
|
Quote:
If I have more commands in the alias list as in more DoAfter statements will the %variablenumber I use change?
If you use %1 it will always refer to the first wildcard, so if you wanted to do more DoAfter you would still use %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,379 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top