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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Getting Started
. . -> [Subject]  Video discussing client and script variables
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Video discussing client and script variables

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Thu 30 Dec 2010 05:19 AM (UTC)  quote  ]

Amended on Mon 25 Nov 2013 10:44 PM (UTC) by Nick Gammon

Message
I have made a video discussing both client and script variables, how you might create them, and how you could use them.




- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Seriley   (42 posts)  [Biography] bio
Date Reply #1 on Thu 30 Dec 2010 07:57 PM (UTC)  quote  ]
Message
Excellent presentation and a good review, Nick
[Go to top] top

Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Thu 30 Dec 2010 08:47 PM (UTC)  quote  ]

Amended on Thu 30 Dec 2010 08:48 PM (UTC) by Nick Gammon

Message
Thanks!

Below are the aliases I described, in case they are hard to read in the video:


<aliases>

  <alias
   match="f"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
Send (left_direction)
</send>
  </alias>

  <alias
   match="k"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>kick @target</send>
  </alias>

  <alias
   match="t *"
   enabled="y"
   variable="target"
   send_to="9"
   sequence="100"
  >
  <send>%1</send>
  </alias>

</aliases>


Here are the triggers:


<triggers>

  <trigger
   custom_colour="2"
   enabled="y"
   match="* arrives from the *."
   send_to="12"
   sequence="100"
  >
  <send>

target = "%1"
direction = "%2"

</send>
  </trigger>

  <trigger
   custom_colour="6"
   enabled="y"
   match="* leaves *."
   send_to="12"
   sequence="100"
  >
  <send>

target = "%1"
left_direction = "%2"

</send>
  </trigger>

  <trigger
   enabled="y"
   expand_variables="y"
   match="@target punches you"
   sequence="100"
  >
  </trigger>

</triggers>


And here are the variables:


<variables>

  <variable name="last_direction">east</variable>

  <variable name="tank">edward</variable>

  <variable name="target">carrion crawler</variable>

</variables>



Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[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,596 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]