Delayed one time triggers

Posted by Nick Gammon on Wed 16 Apr 2008 09:19 PM — 2 posts, 15,377 views.

Australia Forum Administrator #0
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.
USA #1
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>