Gammon Forum
Entire forum
MUSHclient
General
Triggers/script for keeping statistics of spells and displaying them?
Triggers/script for keeping statistics of spells and displaying them?
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Quintosh
(2 posts) bio
|
Date
| Sun 24 Aug 2014 05:04 PM (UTC) Amended on Sun 24 Aug 2014 08:00 PM (UTC) by Nick Gammon
|
Message
| So hi, first of all I have to say that I'm not any good at doing these kind of things and most of my experience comes making more simpler triggers, and I just started using MUSHclient after I could no longer use my trusted zmud 7.04 (great sadness :< ) so I'm a bit unfamiliar with it.
What I want to do is to create a trigger/script that captures certain actions from the mud and keeps count of them so you could view them in some fancy boxes, here's a very simplified example what I had in mind:
+--------------------------------------------------------+
|hit messagebox |spirit | elemental|beast|behemoth|demon|
+--------------------------------------------------------+
|reaves |nmbrs of hits by beast type| | | | |
+--------------------------------------------------------+
|tears | # | # | # | # | |
+--------------------------------------------------------+
|viciously reaves| # | # | # | # | |
+--------------------------------------------------------+
Something like that. So basicly what happens is that you cast a spell, and then some "minion" comes out from it, spirit elemental etc. And depending on how hard it hits, the hit messages change. What I want to do is somehow make a trigger to count the hits made by the separate "minions" and also make a command to view these statistics. An example of the hits:
The abominable elemental brutally slashes Willem hitting his torso with its monstrous claws, causing shards of bone and pieces of tissue to JOLT away!
or
The dreadful spirit tears Willem hitting his left foreleg with its horrible claws, causing bones to sparkle and break with the hit!
who hit and how hard and how many times.
[EDIT] Code tags added. | top |
|
Posted by
| Quintosh
(2 posts) bio
|
Date
| Reply #1 on Sun 24 Aug 2014 05:17 PM (UTC) Amended on Sun 24 Aug 2014 07:52 PM (UTC) by Nick Gammon
|
Message
| Another thing that I want to do, with the similar statistical view is to make a counter to see what "minions" I draw out from the portals, elemental type and size of the minion".
few examples.
"A voltaic spirit of oppression appears from the yellow portal." where the 'spirit' part is the size of the minion, and the color part 'yellow' tells the type, which would be lightning in this case.
or
"A freezing elemental of destruction appears from the blue portal." Same thing, 'elemental' for the size, and 'blue' for the type, which would be cold.
the tablet would look something like this.
+---------------+-------+----+-----+------+
| |Blue |Yellow |Red |White| Brown|
+---------+-----+-------+----+-----+------+
|Demon | # | # | # | # | # |
+------- -+-----+-------+----+-----+------+
|Behemoth | # | # | # | # | # |
+-------- +-----+-------+----+-----+------+
|Beast | # | # | # | # | # |
+---------+-----+-------+----+-----+------+
|Elemental| # | # | # | # | # |
+---------+-----+-------+----+-----+------+
|Spirit | # | # | # | # | # |
+---------+-----+-------+----+-----+------+
where the # are the number of the "minions" that appear from the portals. I have absolutely no clue how to even begin doing this, I could use all the help I can get, or if someone manages to build a working scripts for that, I might even give you some compensation :P
(edit. damn tablet got borked on submit and broke my fancy ascii, but I think you guys understand what I mean regardless) | top |
|
Posted by
| Nick Gammon
Australia (23,000 posts) bio
Forum Administrator |
Date
| Reply #2 on Sun 24 Aug 2014 07:59 PM (UTC) |
Message
| |
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.
9,586 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
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.