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
myddrun
Wanderer


Joined: 31 Mar 2005
Posts: 58

PostPosted: Thu Mar 31, 2005 7:56 pm   

Help with multiline name caputure required
 
Hello folks,

I'm struggling here, so I thought I'd drop by and ask for help.

I'm trying to make some triggers/alias to grab the names of every one in the same room me as I walk in to it, and assign them to variables or an array which is more likely.

The mud output looks like this.

Room name [dirs].
Name1, Name2, Name3, Name4 and Name5 are here.

(or "Name1 is here." if there is only 1 person in the room)

Now I've got the room name capture ok using this (dont ask, some one gave it to me but it works!)

^(*) ~[({^ }*)~].$

#VAR curroom {%1}
#VAR curexits {%2}

But I'm having a heck of time trying to get it to grab the potentially infinite number of names on the lines that follow.

Can any one off some help?

Edit: like a complete muppet I forgot to say I'm using zmud 7.05

:palmface:
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