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

Log on
Register forum user name Search FAQ

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Skill auto-repeater

Skill auto-repeater

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Xandler   (25 posts)  [Biography] bio
Date Wed 13 Jan 2021 02:23 PM (UTC)
Message
I am trying to rebuild triggers as I have lost everything due to a HDD failure which I wasn't expecting.

I have it somewhat working, but I want it to trigger off the damage send the skill ONCE per round and repeat until everything is dead, right now it is triggering off the autocompass within the mud when I look and fires (I don't want that as I don't want to keep looking)


<triggers>
  <trigger
   expand_variables="y"
   group="aoe"
   match="[(\d+)]$"
   name="aoe1"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>Send '@aoe'
EnableTrigger ("aoe1", false)</send>
  </trigger>
  <trigger
   enabled="y"
   group="aoe"
   keep_evaluating="y"
   match="You jump into the sky while charging a large amount of energy into your shield. Shockwaves of ki begin to emit around the edges of your shield as you rush towards your enemy, crashing into the ground causing an earthquake of seismic proportions."
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>EnableTrigger ("aoe1", true)</send>
  </trigger>
</triggers>


I'm not sure what's wrong with this as I have copy and pasted this from someone else and it is working differently (it goes off the skills damage and not the compass)


[--Dead--]=-=[790082]


Is what it should match and fire ONCE per round (it hits multiple NPCs if applicable). Do I have some global preference not enabled to make this work properly? It's a fresh download of the latest version of mushclient so everything is the default.
[Go to top] top

Posted by Nick Gammon   Australia  (22,556 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 21 Jan 2021 01:02 AM (UTC)

Amended on Thu 21 Jan 2021 01:03 AM (UTC) by Nick Gammon

Message
What does the compass look like? Your trigger will match anything with digits at the end of the line.

Perhaps you mean to match on:


\[(\d+)\]$


Square brackets on their own (without the backslash) starts a set.

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


435 views.

You need to log onto the forum to reply or create new threads.

  [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]