[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  I have an alias
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

I have an alias

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


Posted by Warbit   USA  (47 posts)  [Biography] 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

[Go to top] top

Posted by Nick Gammon   Australia  (21,675 posts)  [Biography] 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
[Go to top] top

Posted by Warbit   USA  (47 posts)  [Biography] 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.
[Go to top] top

Posted by Warbit   USA  (47 posts)  [Biography] 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!!!
[Go to top] 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.


2,410 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]