|
jburn Newbie
Joined: 12 Jan 2002 Posts: 9 Location: USA
|
Posted: Sun Jan 13, 2002 7:23 am
Gotta be a bug |
Howdy
I found a way to force the room name and title the way I want them with a set of triggers. I'm trying to force the mapper to
grab the room name as the first line after the prompt, and end the room description on the first line that ends in a period.
To do so, I #NOMAP everything that comes after the first line after the prompt that ends in a period. My triggers look like:
#TRIGGER {~<*~>} {#VARIABLE map 1} // my prompt looks like "< 123Hp 123Mn 123Mv>"
#TRIGGER {~[Exits:*]} {#VARIABLE map 1} // exits look like "[Exits:newsud]" and come after description and objects
#TRIGGER {*} {#IF (! @map) {#NOMAP}}
#TRIGGER {~.$} {#VARIABLE map 0}
This works great, just what I wanted. But on some rooms with lots of stuff in them, it wigs out and picks random-sized pieces of lines after @map has been set to 0. For example, this room ends up with name "An elven bow lie" and description "A". It
seems to be consistent, however, in the 'random' pieces it grabs. 6.16 and 6.24 did the same thing for this room:
The Academy Archives
In the vast basement of the Academy of the Midnight Sun huge amounts
of just about everything is stored. The Academy goes by the rule that
anything that is not being used at the moment and seems to be the least
bit useful is to be archived. After all, somebody might need it for their
studies sometime in the distant future.
( 2) An elven bow lies here.
A strange belt lies here.
A dainty pair of boots with very sharp high heels made of crystal look
a bit uncomfortable to wear.
( 4) A brightly colored robe with the delicate colors and markings of
butterflies looks ready to take off and fly away.
( 2) A broken sword lies here.
A small yellow potion has carelessly been left here.
A small jewel used for teaching is on the ground. (glowing)
A long thin shaddow is cast upon the floor at your feet. (humming)
( 2) A pair of well crafted boots have been carelessly left here.
A silver dagger is lying here.
Sand-colored robes lie here.
Aglandiir's crown sits here, radiating a shield. (humming)
A set of scale mail has been abandoned here.
A flat dirk made of chipped obsidian lies here.
Some vambraces made of blue steel rest here. (glowing)
The morning star is here collecting dust while it lies on the ground.
An elixir has been left here.
A pearl crown.
A pair of spiked gauntlets.
A dwarven mithril plate is lying here on the ground. (glowing)
( 3) An elven bow lies here.
( 4) A pair of well crafted boots have been carelessly left here.
A shiny chainmail is lying here.
A halberd covered with tiny silvery runes. (humming)
The long midnight-blue velvet robe has been embroidered with faintly
glowing golden stars. (+) (glowing) (humming)
A pile of black cloth is on the ground here.
A shiny golden breastplate has been left here. (+) (glowing)
( 3) An exquisitely crafted knife rests here.
( 3) A wide strip of silvery colored cloth is laying on the ground.
A small bag is here.
A small spiked collar is here.
The mighty paw of a lion-like creature has been dropped here.
A white mace is laying here.
Unthinkable! Someone has left a very studly vest just lying around!
A pile of smelly, leathery material lays here. (humming)
Sand-colored robes lie here.
A shiny golden chain with a symbol of a mighty hammer at its end.
A wide strip of silvery colored cloth is laying on the ground.
A helm and visor made of crimson steel rests here. (glowing)
( 2) A glinting crystal tied to a piece of string lies here. (glowing)
( 2) A runed chisel is here. (glowing)
Sting of the Zodiac lies here. (+) (glowing)
( 3) The blade of the very sharp kitchen knife looks like it would cut your
skin easily. (+)
( 4) A glowing golden chainmail has been left here. (+) (glowing)
A supple pair of lightweight white gloves are hovering just above the ground
here. (+) (glowing)
A leather strap with spikes along one side hangs here. (+) (humming)
Wide garish stripes of bright yellow and black z-z-z-i-n-g-g-g your
eyes. (+)
A whip is ablaze with the fires of hell. (+) (glowing) (humming)
Here lies a shimmering band with symbols of war written upon it. (+) (glowing)
A sharp but strangely noble hunting knife waits for someone to take it
hunting. (+)
[Exits:u]
Any ideas? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Jan 13, 2002 11:06 am |
An interesting solution. I applaud your creativity. All I have to say the mapper is quirky, macro the look command and double check the mapper's work. I have done about 10k rooms on mine and still haven't got it detecting the rooms 100%. If it really pisses you off you might try using GAGON and GAGOFF while %lastdir="" and %trigger(Automapper)=1. That way your not gaging all the items all the time, only when you use #LOOK.
|
|
|
|
|
|
|
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
|
|