[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]  General
. . -> [Subject]  Delayed one time triggers

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Delayed one time triggers
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Shaun Biggs   USA  (644 posts)  [Biography] bio
Date Thu 17 Apr 2008 (UTC)  quote  ]
Message
Either replace it with the number of seconds, or have it selected at random through a script.


<triggers>
  <trigger
   enabled="y"
   match="&lt;hovering nearby&gt; (Mythic) a green materia"
   send_to="12"
   sequence="100"
  >
  <send>randtimes={60,100,112}
DoAfterSpecial (randtimes[ math.random(3) ], "exp1", 10)</send>
  </trigger>
</triggers>

It is much easier to fight for one's ideals than to live up to them.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Wed 16 Apr 2008 09:19 PM (UTC)  quote  ]
Message
This would do that. It matches what you specified, and using a Lua script line, adds a one-shot timer to fire after 112 seconds, that sends "exp1" to the command processor (thus, exp1 can be an alias).


<triggers>
  <trigger
   enabled="y"
   match="&lt;hovering nearby&gt; (Mythic) a green materia"
   send_to="12"
   sequence="100"
  >
  <send>DoAfterSpecial (112, "exp1", 10)</send>
  </trigger>
</triggers>



See http://mushclient.com/pasting for how to paste that example into the client.

See http://www.gammon.com.au/scripts/doc.php?function=DoAfterSpecial for a description of DoAfterSpecial.

- 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.


1,889 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]