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


Joined: 14 Dec 2003
Posts: 4

PostPosted: Sun Dec 14, 2003 1:32 pm   

perfecting strange lists (GS4 / DR related)
 
Greetings.

I'm trying to create several string lists of GS4 room data, ie what's in a room. This is with SET ROOMBRIEF ON.

Sample mud output (a bit ridiculous, trying to include stuff that would mess it up):
[Room Name]
This room is so great with its many new and shiny snowmobiles. What an elaborate room description. You also see a goblin (stunned), a short sword, some light leather and a wooden bench with some stuff on it.
Also here: Lord First, Second (sitting), Great Lady Third, Fourth (prone)
Obvious exits: south, southwest, northwest


Triggers so far:
#TRIGGER {??You also see &STUFFLIST} {#VAR {StuffList} {%replace(@STUFFLIST,", " ,"|")};#VAR {StuffList} {%replace(@STUFFLIST," and " ,"|")};#VAR {StuffList} {%replace(@STUFFLIST,"." ,"")}}
#TRIGGER {^Also here: &PEOPLELIST} {#VAR {PeopleList} {%replace(@PEOPLELIST,", " ,"|")}}


What I get now:
@stufflist = a goblin (stunned)|a short sword|some light leather|a wooden bench with some stuff on it
@peoplelist = Lord First|Second (sitting)|Great Lady Third|Fourth (prone)


This is what I'm trying to get ultimately:
@stufflist = a goblin|a short sword|some light leather|a wooden bench
@peoplelist = First|Second|Third|Fourth


I suppose I could do more %replaces? I'm still too much of a novice to deal with it elegantly. Any suggestions, gurus?

Thanks for reading this Very Happy
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