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


Joined: 11 Oct 2000
Posts: 138
Location: Portugal

PostPosted: Fri Feb 07, 2003 1:11 am   

Need help mapping
 
There is this MUD I want to map (Avalon) but I am having some diifficulties. The basic structure is

Name room (one line)
description (multiline)
exits (multiline)
prompt (one line)

I can #TAG the exits and the prompt lines easily but the description is fooling zMud. The reason is that, depending on the time day, some stock sentence is prepended to the description, e.g. something like

Leaf Lane.
The sky is dark, night covers Avalon. One thing this street does not lack is
trees and looking down its whole length to its southernmost end all you are
able to see either side of the street is a constant sentry of matured poplars
reaching upwards over many of the buildings. In fact this road is so called
because come the autumn, the thick matting of brown and decaying leaves is
all that is to be seen covering the road, indeed all that is to be heard is
the crisp crunch of leaves being trampled upon by the feet of many a
pedestrian. North from here there is in contrast the regularly swept main
square of Parrius. A magical rune stave stands here, an unseen force holding
it in place.
You notice exits north, east (a closed door), south, and west.
270h, 270m x-

The sentence prepended here is:

The sky is dark, night covers Avalon.

and it is one of 5 or 6. So my question is: Any ideas on how to clip this sentence off and tag the multiline description rightly?

It's been a while since I've mudded or zscripted, so I'm kinda rusted. All help is very much appreciated

With my best regards,
Palomar
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Feb 07, 2003 4:40 am   
 
Are those MUD-wrapped lines or ZMud-wrapped lines?

If it's the former, try these #TAGs on for size:

#trigger {^([A-Z]%x [A-Z]*.)^} {#tag name {%1};#T+ tRoomDesc}

#trigger "tRoomDesc" {^(*)$} {#forall @StockSentencesInRoomDescription {#if (%begins(%1,%i)) {#variable RoomDesc %remove("%1",%i)} {#variable RoomDesc %concat(@RoomDesc,%1)}}}

#trigger {^You notice exits (*).} {#tag desc @RoomDesc;#tag exit %1}

#trigger {^%dh, %dm x-} {#tag prompt}

I don't guarantee this will work at all, but I imagine it's pretty darn close.

li'l shmoe of Dragon's Gate MUD
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