[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]  Plugins
. . -> [Subject]  Reporting?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Reporting?

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


Posted by Keith   (21 posts)  [Biography] bio
Date Mon 12 Oct 2009 04:31 PM (UTC)
Message
I was wondering if there is a way to make a trigger to report how much experience i have? My Prompt looks like this:
<100% 2% 100% 99(0) 13%% N> and my experience is the number with the two %% after it. I can change my prompt if i need to in order to get the trigger to work if needed. I was just wondering if i could just make it so if someone says report
i tell them i have <> experience. Can anyone help me with this please?
[Go to top] top

Posted by Blainer   (191 posts)  [Biography] bio
Date Reply #1 on Tue 13 Oct 2009 12:21 AM (UTC)

Amended on Wed 14 Oct 2009 11:27 PM (UTC) by Blainer

Message
I think this is what your looking for.
<triggers>
  <trigger
   enabled="y"
   keep_evaluating="y"
   match="<*% *% *% *(*) *%% *>"
   name="Capture_Experience"
   send_to="9"
   sequence="100"
   variable="expereince"
  >
  <send>%6</send>
  </trigger>
</triggers>

This trigger matches the prompt line and then sets variable "experience" to the wildcard 6 (your experience).
<triggers>
  <trigger
   enabled="y"
   expand_variables="y"
   keep_evaluating="y"
   match="* tells you: report"
   name="Report_Expereince"
   sequence="100"
  >
  <send>Tell %1 @expereince</send>
  </trigger>
</triggers>

This trigger catches "any_player tells you: report" it then uses the wildcard for the name of the player and Tells the "any_player" the value of the variable experience.
Template:pasting For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.



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


3,079 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]