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
➜ Lua
➜ I have an alias
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Warbit
USA (47 posts) Bio
|
Date
| Thu 25 Aug 2011 07:07 AM (UTC) Amended on Thu 25 Aug 2011 07:16 AM (UTC) by Warbit
|
Message
| <aliases>
<alias
match="t *"
enabled="y"
sequence="100"
>
<send>track %1</send>
</alias>
</aliases>
It send allows me to track a creature. Without sending me to FAQ, I been there before asking.
How do I
turn %1 into a variable (trackie) to be used by triggers.
Then how do I get this trigger.
<triggers>
<trigger
enabled="y"
match="Tracks to * lead *ward."
sequence="100"
>
<send>%2
track %1
</send>
</trigger>
</triggers>
to use that variable (trackie)
What happens in game is I type
t alchemist
It outputs
track alchemist
Tracks to Tisa the alchemist lead southward.
south
track Tisa the alchemist
Who?
It replaces my word alchemist with Tisa the alchemist
| Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 25 Aug 2011 08:06 AM (UTC) |
Message
| Did you watch this video?
http://www.gammon.com.au/forum/?id=9616
Anyway, this shows how to track someone and remember their name:
<aliases>
<alias
match="t *"
enabled="y"
send_to="12"
sequence="100"
>
<send>Send ("track %1")
SetVariable ( "trackie", "%1")</send>
</alias>
</aliases>
Look at the video for more information. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Warbit
USA (47 posts) Bio
|
Date
| Reply #2 on Thu 25 Aug 2011 09:19 AM (UTC) |
Message
| Downloaded all 6 of your youtube videos from search. Mushclient+LUA+Variables.
But truthfully haven't watched them just yet. But definitely plan on it.
Just got my connection speed back up today.
Hey thanks for answer and will try it out now. And thanks for response. | Top |
|
Posted by
| Warbit
USA (47 posts) Bio
|
Date
| Reply #3 on Thu 25 Aug 2011 09:49 AM (UTC) |
Message
| Love the video Nick !!!
It got me up and running perfectly.
Thank you so much for making it!!!
Whooo Hooo !!!
Ahh Here is the finished code for those who want it.
<aliases>
<alias
match="t *"
enabled="y"
variable="trackie"
send_to="12"
sequence="100"
>
<send>SetVariable("trackie","%1")
Send("track %1")</send>
</alias>
</aliases>
The above is for the alias
The below is for the trigger
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="Tracks to * lead *ward."
sequence="100"
>
<send>%2
track @trackie</send>
</trigger>
</triggers>
Works for perfectly!!! | 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.
13,650 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top