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
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Tue May 24, 2005 6:12 pm   

Multi Line triggers
 
http://forums.zuggsoft.com/phpbb/viewtopic.php?t=21145&start

Followed on from the above but separate question (ish) so I thought Id ask in a separate post.

How can I grab info from a multi line trigger that doesnt have a fixed position where it spills onto the next line...

Two examples relating to my previous post are....

An image of Battlemage Fistandantilus at Clinging to the side of the chasm
appears before you.


and

An image of Alchemist Anaroth at Centre of the Cassiandora square marketplace appears before you.


It always follows the format of...

An image of (*) at (*) appears before you.
Code:

#TRIGGER {An image of (*) at (*) appears before you} {
  locating = %1
  room2find = %2
  found_rooms = %MAPQUERY( Name LIKE '%@room2find%')
#walk %item( @found_rooms, 1)
  }


Works great where the triggers are on a single line

But It doesnt grab any info when its multiline.

Thanks for taking your time to help me out
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue May 24, 2005 9:43 pm   
 
Is it the mud that's doing the wrapping? If so, can you increase your wrap columns to a value larger than the width of your screen? If you can, set it as high as you can go and ZMud will then do the word-wrapping. Even though ZMud wraps the line, it's still considered a single line coming from the mud and will still match your perfectly-working single-line trigger.
_________________
EDIT: I didn't like my old signature
Reply with quote
adamwalker
Apprentice


Joined: 12 Mar 2005
Posts: 195

PostPosted: Tue May 24, 2005 10:26 pm   
 
yayy. all done. thankyou!
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