unlikelyVariableName Newbie
Joined: 14 Dec 2003 Posts: 4
|
Posted: 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 |
|