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
Zleep
Newbie


Joined: 23 Oct 2005
Posts: 5

PostPosted: Sun Oct 23, 2005 12:22 am   

zMUD Newbie: "Where" Output
 
Good afternoon,

I'm a zMUD newbie, I just know the basics. I'm trying to do the following, but haven't been able to get anything to work or find much similar in the forums. I'd appreciate the help:

I'm trying to output the "where" command information to another window, and have it do so at a time interval, say every 40 seconds. Is this possible?

The output looks as follows:

Players in your vicinity:
-------------------------
Jack...................- The Tavern
Helix................. - The Tower
Crappy...............- The Smithy
Bombardo...........- The Tavern
Cran...................- The Tavern
Death.................- The Tavern
Studdebaker........- The Morgue

It didn't cut and paste very well, but the rooms the characters are in obviously line up nicely. Those "periods" aren't there, they are actually blank spaces, which also wouldn't cut and paste. I'll clarify if need be.

Thanks in advance,

-Z
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Sun Oct 23, 2005 12:51 am   
 
#CLASS {WhereCapture}
#ALARM {-00:40} {where}
#TRIGGER {^Players in your vicinity:} {#C+ WhereWindow}
#COND {^$} {#C-}
#CLASS 0

I purposely didn't trigger on the ---------- line as it would remove it from the captured window - I thought you needed something to break up the different results every 40 seconds :)
_________________

No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Reply with quote
Zleep
Newbie


Joined: 23 Oct 2005
Posts: 5

PostPosted: Sun Oct 23, 2005 1:25 am   
 
Wow, that's pretty awesome. I really appreciate the quick response, it works well.

So I have another challenge: How do I go about gagging it from the main window? And is it possible to gag things without having the carriage return?

Thanks again

-Z
Reply with quote
Insomniac
Wanderer


Joined: 25 Mar 2004
Posts: 78
Location: United Kingdom

PostPosted: Sun Oct 23, 2005 1:53 am   
 
And is it possible to gag things without having the carriage return?

Unfortunately not no.

And I apologise, I should have assumed you wanted it gagging!

#CLASS {WhereCapture}
#ALARM {-00:40} {where}
#TRIGGER {^Players in your vicinity:} {#GAG;#GAGON;#C+ WhereWindow}
#COND {^$} {#C-;#GAGOFF}
#CLASS 0
_________________

No-one ever gets flamed for posting too much information. Conform to the PPP (Preferred Posting Protocol) and give as much information as possible, including MUD output where needed.
Reply with quote
Zleep
Newbie


Joined: 23 Oct 2005
Posts: 5

PostPosted: Sun Oct 23, 2005 2:46 am   
 
Thanks again!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 23, 2005 4:05 am   
 
>>And is it possible to gag things without having the carriage return?

You mean the "blank line" people complain about all the time? This is definitely possible, and it's not because #GAG isn't eating the carriage return. That blank line is there because your mud--like all other muds--uses double-spacing between text responses to keep it readable. If you want it gone, you either have to kill all the blank lines or tack on a #COND to eat it on every trigger you want to see it gone on.
_________________
EDIT: I didn't like my old signature
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