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 ➜ General ➜ Trigger Runs?

Trigger Runs?

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


Posted by Areadien   USA  (47 posts)  Bio
Date Mon 19 Feb 2018 11:04 PM (UTC)
Message
Hello again,

So, I'm wanting to display a certain set of text--the equipment mobs and other players are wearing--in a certain order, but unfortunately, unlike when I display my gear, there's no extra line I can anchor the display to, so the only line I could possibly use to display others' equipment is my hp line. The hp line, of course, varies, so I was thinking of using the TriggerRun table, but it doesn't seem to be available. I've searched for it on the forum, but I haven't found it. Is there another option I can use? If not, then I'll just modify the packet, but I'd rather not.

--Areadien--
Top

Posted by Fiendish   USA  (2,550 posts)  Bio   Global Moderator
Date Reply #1 on Mon 19 Feb 2018 11:59 PM (UTC)
Message
I don't understand what your hp line varying has to do with anything. Can you post an example of your game output? And indicate which part you want to trigger on?

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Areadien   USA  (47 posts)  Bio
Date Reply #2 on Tue 20 Feb 2018 05:08 AM (UTC)

Amended on Tue 20 Feb 2018 05:10 AM (UTC) by Areadien

Message
Yeah.

OK, so this is my normal gear setup.

<used as light>      a war banner (new) (lit)
<worn on finger>     a city guard signet ring (new)
<worn on finger>     a city guard signet ring (new)
<worn around neck>   an alligator tooth necklace (new)
<worn around neck>   a pendant of meditation (new)
<worn on body>       a copper chainmail shirt (heavily worn)
<worn on head>       a guard's helm (new)
<worn on legs>       a pair of copper leg plates (used)
<worn on feet>       a pair of iron boots (used)
<worn on hands>      a pair of iron gauntlets (new)
<worn on arms>       a pair of copper armplates (new)
<worn as shield>     a shield made of white marble (falling apart)
<worn about body>    a wizard's cloak (slightly worn)
<worn about waist>   a plaque belt (new)
<worn on hip>        a magical belt pouch (new)
<worn on tail>       a malachite tail ring (slightly worn)
<worn around wrist>  a red collar (new)
<worn around wrist>  a wrist protector (new)
<right hand>         a bewitching cerulean scroll (new)
<left hand>          a blackened metal key
Current Armor Resistance (AR):
(Head    ) Pierce: 31   Bash: 30   Slash: 27   Exotic: 24 
(Torso   ) Pierce: 31   Bash: 30   Slash: 28   Exotic: 25 
(Arms    ) Pierce: 32   Bash: 31   Slash: 28   Exotic: 24 
(Legs    ) Pierce: 32   Bash: 31   Slash: 28   Exotic: 24 
(Tail    ) Pierce: 13   Bash: 13   Slash: 13   Exotic: 13 
Equipped weapon damage:
With your knowledge of 'hand to hand', you may cause up to 52 points of damage against 0 ar.
Excepting defenses and dynamic modifiers, you will hit 72% of the time.
[*]<1701hp 407sp 881st> 


Here's on a mob.

Bulked up in clattering, polished iron armor, this city guard thunders
through the streets of Rune like a tornado ripping through a weaponsmith's
store.  Knives peer out from every niche and break in the armor, just
obvious enough to hint at what awaits rule-breakers.  With a face stonier
than Mount Miannas and a gaze that sees everything, these men and women of
the Guard keep the peace, kill those disturbing the peace and live and die
for the towne of Rune.  
He is a human approximately 5'7" tall.
A Rune city guard is in good health.
<worn on finger>     a city guard signet ring (new)
<worn on head>       a standard issue helmet (new)
<worn on legs>       a pair of standard issue leggings (new)
<worn on feet>       a pair of standard issue boots (new)
<worn on hands>      a pair of standard issue gloves (new)
<worn on arms>       a pair of standard issue sleeves (new)
<worn as shield>     a standard issue shield (new)
<worn about body>    a standard issue cape (new)
<worn about waist>   a standard issue belt (new)
<right hand>         a standard issue sword (new)
[*]<1709hp 395sp 863st> 


And then on a player.

Player's hair looks like it's never been cut, and is: a shaggy, stringy mess
They are a young half-elf approximately 5'2" tall.
Player is in good health.
<worn around neck>   a crystal necklace (new)
<worn on head>       a head casque (new)
<worn on legs>       a pair of leather trews (new)
<worn on hands>      a pair of gloves (new)
<worn on arms>       copper armbands (new)
<worn about body>    a standard issue cloak (new)
[*]<1709hp 395sp 881st> 
Top

Posted by Fiendish   USA  (2,550 posts)  Bio   Global Moderator
Date Reply #3 on Tue 20 Feb 2018 05:38 AM (UTC)
Message
So you want to, what, hide all the eq lines and then display them in a different order?

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Areadien   USA  (47 posts)  Bio
Date Reply #4 on Wed 21 Feb 2018 04:27 AM (UTC)

Amended on Wed 21 Feb 2018 04:29 AM (UTC) by Areadien

Message
Yes. I already have it set up so that it works when I type "equipment," but when I look at a mob or player, anything they're wearing doesn't show.

The way it shows for me when I type "equipment" is this:

Light     : one of Risfyth's stars (new) (lit)
Head      : a Conqueror's gorehelm (new)
Neck      : an alligator tooth necklace (new)
Neck      : EMPTY
Amulet    : EMPTY
Amulet    : EMPTY
About Body: a vampire's cape (new)
On Body   : Conqueror's battleplate (new)
Shield    : a colossal bulwark (new)
Arms      : EMPTY
Wrist     : wraps of the verdant glade (new)
Wrist     : a wrist protector (new)
Hands     : a pair of rotting gloves (new)
Finger    : the wedding ring of the caretaker's wife (new)
Finger    : a beautiful white marble ring (new)
Left Hand : the whirlwind from the darkness, Storm's Eye (worn)
Right Hand: a garnet gemstone
Waist     : a plaque belt (new)
Tail      : EMPTY
Legs      : EMPTY
Feet      : skullcrushing boots (new)
Head : 8| 8| 6| 4
Torso: 7| 7| 6| 4
Arms : 6| 6| 5| 3
Legs : 4| 4| 4| 3
Tail : 3| 3| 3| 3
Equipped weapon damage:
On average, the whirlwind from the darkness, Storm's Eye (axe) will cause 41.04 damage (72 damage, 57% acc).


I know how to do this by modifying the sent packet, but I'd rather use the code I already have set up.
Top

Posted by Fiendish   USA  (2,550 posts)  Bio   Global Moderator
Date Reply #5 on Wed 21 Feb 2018 04:40 AM (UTC)

Amended on Wed 21 Feb 2018 04:41 AM (UTC) by Fiendish

Message
Without knowing more about what you've already made, I suppose I would...

Have a table of items that starts empty.

Have omit_from_output triggers on all of your "<worn on foo>" lines that you want to gather data from, and have them put the gathered data into the table of items.

Have an omit_from_output trigger on your prompt that checks if the table of items is empty or not and either sends to "14" (script_after_omit) or uses a script function. If the data table is not empty, print the items in whatever format you want using the data in the table and then clear the table. Whether it's empty or not, then print your prompt (this must happen after the omit phase completes).

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Areadien   USA  (47 posts)  Bio
Date Reply #6 on Wed 21 Feb 2018 04:41 AM (UTC)

Amended on Wed 21 Feb 2018 04:42 AM (UTC) by Areadien

Message
That's what I want to do, but I don't know how to print my prompt to display normally. That's why I looked up TriggerRuns, because I did it before once upon a time, but then I figured out a better way to do what I was doing before, and now I forget how to use TriggerRuns. I'm not even sure if TriggerRuns is available in 5.03.
Top

Posted by Fiendish   USA  (2,550 posts)  Bio   Global Moderator
Date Reply #7 on Wed 21 Feb 2018 04:44 AM (UTC)

Amended on Wed 21 Feb 2018 04:46 AM (UTC) by Fiendish

Message
I see. I think you mean TriggerStyleRuns. Anyway, have a look here http://www.gammon.com.au/forum/?id=7818
Some of the description of TriggerStyleRuns is embedded in the first message.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Areadien   USA  (47 posts)  Bio
Date Reply #8 on Thu 22 Feb 2018 06:41 AM (UTC)
Message
Yep, that worked. Thank you.
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.


27,908 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.