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


Joined: 15 Jul 2003
Posts: 6
Location: USA

PostPosted: Thu Feb 19, 2004 2:58 am   

Help with Extending Accepted Text
 
Okay, I'm setting up this:

Trigger:
^(%1) tells you
Reaction:
#SUB {%time( "hh:mm") %1 }
#CAP Tells
#GAG

What I'm having a problem is I want to take this situation:
Yoohoo tells you, "BLah blah blah blah."

And make it appear in that window completely without having just the first line of text and not the rest. Right now, it'll give me to a certain extent of the line and show the rest in the window. Any way I can get this to work like I want it to?
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Thu Feb 19, 2004 5:24 pm   
 
quote:
Originally posted by zortania

Okay, I'm setting up this:

Trigger:
^(%1) tells you
Reaction:
#SUB {%time( "hh:mm") %1 }
#CAP Tells
#GAG

What I'm having a problem is I want to take this situation:
Yoohoo tells you, "BLah blah blah blah."

And make it appear in that window completely without having just the first line of text and not the rest. Right now, it'll give me to a certain extent of the line and show the rest in the window. Any way I can get this to work like I want it to?


If I understand what you mean then the MUD automatically splits lines of a certain width. There's some ways to make zMUD capture that text. The easiest method is to use a trigger class.

Say we have a class named 'tell' containing these triggers:
#trigger {$} {#t- tell}
#trigger {^*$} {#cap Tells;#gag}

Then you change the main trigger to (places in the super class):
#trigger {^(%w) tells you} {#SUB {%time( "hh:mm") %1};#CAP Tells;#GAG;#t+ tell}

This assumes that a complete empty line is sent after the tell message. Hope it works Smile
Reply with quote
zortania
Newbie


Joined: 15 Jul 2003
Posts: 6
Location: USA

PostPosted: Fri Feb 20, 2004 12:56 am   
 
Okay, that works..except when other long things pop up like dates, deathsight warnings, or weather..they show up in the window. Or if I type a long command out, it'll show the command in the window. Meh..
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