Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
tekky
Beginner


Joined: 08 Feb 2006
Posts: 25

PostPosted: Wed Feb 08, 2006 1:12 pm   

#gag bewilderment
 
One other problem I been fighting with...

I am trying to eliminate spam on my screen when I look at some items that are marked with names...

an example is

It looks like some shiny object.
On it you see engraved, 'some words'.
and thien a ton of descriptions or random text based on the object
that I dont care to see... I just want to see what is engraved
>

I have successfully pulled out the engraving using regex, but I cant gag the extraneous descriptions.... here is what I tried


(this is the action for the engraving it works perfectly)
#ga;#show The words are: %1;#class ignoreall 1

and in ignoreall I have these
#regex {>} {#class ignoreall 0}
#action {*} {#ga}

I was skeptical if it would work... it doesnt... (note the #action might be #trigger I cant remember where ZMUD saves the command line version of loaded scripts so I typed it out by memory)

Basically at the end of the descrition there is always a line beginning with > (and decsriptions never have > in them) so I wanted to use that to turn off the gags...

Hopeflly this is possible... if not I'll just make a more "visible" way of seeing these things...

Thanks again!
_________________
-Karl
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Wed Feb 08, 2006 8:29 pm   
 
Hmm, ok, i don't see all that you are asking but here goes anyways.
you can use #gagon and #gagoff here,

#trigger {^On it you see engraved, '(*)'. } {#gag;#show The words are: %1;#gagon;#class ignoreall}
#trigger {^>} {#gagoff}


I do not know how to automatically put triggers in a class using triggers. I don't know why you would turn on and off the class, so if it hmm doesn't work for whatever reason consider that. Hope that works.

Kheri
_________________
Old
Reply with quote
tekky
Beginner


Joined: 08 Feb 2006
Posts: 25

PostPosted: Thu Feb 09, 2006 11:38 am   
 
well i figured it out today... turned out to be a bit convoluted...

here is what worked in the end (single trigger though!)

#gagon
#ga
#ga -1
#wait 1
#gagoff
#show This mark is to: %1


I tried varies combinations of PROMPT and NEWLINE because it appeared the following text (immediate 2-3 lines after the trigger) were all part of the same line just broken by newlines... but even that didnt work, if I used PROMPT triggering it didnt catch anything at all even when making it look for *my text* (simplified for laziness)

So for future reference.... there it is

the #wait is required for some reason... without it it doesnt #GAG the extra spam... but even a value of 1 makes it work... causes a tiny flicker... but I can live with that! :D
_________________
-Karl
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Fri Feb 10, 2006 2:46 am   
 
hey, can you post a whole output from your mud? just straight from it. from the you examine it to the very end. (>)
_________________
Old
Reply with quote
Kheri_
Wanderer


Joined: 11 Oct 2005
Posts: 58

PostPosted: Fri Feb 10, 2006 3:22 am   
 
#trigger {^On it you see engraved, '(*)'.} {#gag;#show The words are: %1;#gagon;#class ignoreall 1}
#trigger {>} {#gagoff; #class ingnoreall 0}


Looks like in the first time i had an extra space in the first trigger.

Note: you probably can also use your prompt display (your hp mana movement etc)
from your mud to substitute for > (the pattern in the second trigger). If you do that
you may need to turn on the prompt option for the second trigger.
:)
Kheri
_________________
Old
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net