Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Reporting?

Reporting?

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


Posted by Keith   (21 posts)  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?
Top

Posted by Blainer   (191 posts)  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.



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.


12,127 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.