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


Joined: 28 Aug 2008
Posts: 3

PostPosted: Fri Aug 29, 2008 5:33 am   

line matching problem
 
i want to check a line ends with "

how do i do that? the following is my stupid try, it doesn't work.

123" is the line that i am checking


%ends( "123"", """)

if the function %end should not be used, how about %match ??please just give me a code that with match the line ending with "
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Aug 29, 2008 10:04 am   
 
zMud has a lot of trouble dealing with quotes. Assuming you are working with a trigger this would detect it properly.
#IF (%ascii(%rightback(%line,1))=34) {#SHOW Ends with a quote}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4715
Location: Pensacola, FL, USA

PostPosted: Fri Aug 29, 2008 8:54 pm   
 
is it just the end of a given string, or are you trying to fire off mud input?

#TR {"$} {stuff}

That should work for the latter. '$' is an anchor for the end of line.
_________________
Discord: Shalimarwildcat
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