|
jetyap Newbie
Joined: 28 Feb 2008 Posts: 8
|
Posted: Tue Mar 25, 2008 10:47 am
Simple Request for CMUD Mapper |
Some things I really wish to see for the new Mapper. If you could add this into your wishlist, Zugg, I'd be most grateful!
1) Allow all room information (particularly room descriptions) to be populated from variable.
My MUD uses multiple paragraphs to post descriptions. Currently I have a multi-line trigger which accurately takes the everything between
Exit: [ xxx xxx xxx xxx] to {HP:100/100 MP:100/100 MV:100/100}
and save it into a variable (@RoomDesc). However I cannot make the mapper take the room description from this variable. Doesn't work with #TAG desc RoomDesc or #TAG descpara RoomDesc.
I believe #TAG only identifies the line at the moment. I would like to request it to be able to take it from variables in addition to just tagging the line.
2) Everything under "Other" in Room Properties can be defaulted upon creation.
Due to problem number 1, I have to manually put in the descriptions for each room and they get overwritten once I walk into the room again. It would be good if all the options under "Other" can be defaulted. E.g. Reload Room Name, Reload Room Desc, etc
3) More intelligent room creation from CREATE mode.
Sometimes, my prompt displays and it just creates a room although the room is not supposed to be there. I'd like if there's an option to STOP automatic new room creation and use command #OK to confirm movement. With this, I can create the following trigger.
#TRIGGER {~[Exits: (*)~]} {}
#COND {~{HP:} {#OK}
Reason: Each time I move into a room, I will see the exits on top, followed by room description, followed by prompt. So all movements, when I'm not blinded will be like this.
Example when entering a room or looking.
[+] The Temple Of Midgaard [+]
[Exits: north south west up]
You are in the southern end of the temple hall in the Temple of Midgaard.
The temple has been constructed from giant marble blocks, eternal in
appearance, and most of the walls are covered by ancient wall paintings
picturing Gods, Giants and peasants.
Large steps lead down through the grand temple gate, descending the huge
mound upon which the temple is built and ends on the temple square below.
Equally large steps lead up through a small door into the entrance to
mud school. You also see a small plaque is on the eastern wall.
Fezz. is here.
(White Aura)The Enforcer of Dragon Swords is here, waiting to slay you.
{HP:495/495 100%|MP:703/703|Mv:100%|AC:-427|TNL:559,246}
4) Desriptions, Room Names saved with colour. This is not really important! But nice to have. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Mar 25, 2008 12:18 pm |
1) Tag does take things from variables - I've used triggers that use a variable to pare off parts of the line I don't want in my map, so it seems to be working. It must be a problem in the code you're using (your examples there are missing an @).
2) Sounds Sensible.
3) Not sure what you're getting at. I think it need more explanation.
4) What'd be the point? |
|
|
|
jetyap Newbie
Joined: 28 Feb 2008 Posts: 8
|
Posted: Tue Mar 25, 2008 5:22 pm |
Well, maybe you're right. Here's my triggers for the mapper.
#TRIGGER mapper {~Exits: (*)~]} {#TAG exit %1;roomdesc=""}
#COND {(*)} {#IF (%line=~"~{HP:") {#STATE mapper 0;#TAG desc @roomdesc} {#ADDITEM roomdesc %line}} {LoopLines|Param=50}
So far no matter what I've done, it doesn't take the description from @roomdesc. Pretty sure it does not work for me.
Edit: OK, looks like I've got another conflicting trigger causing this not to show up correctly.
Now I've got another problem....each line carriage is noted as "|". How can I convert this into a normal line carriage? I've done the following, which takes away the "|" but doesn't put "Enter" between lines.
#TRIGGER mapper {~Exits: (*)~]} {#TAG exit %1;roomdesc=""}
#COND {(*)} {roomdesc=%line} {LoopLines|Param=1}
#COND {(*)} {#IF (%line=~"~{HP:") {#STATE mapper 0;#TAG desc @roomdesc} {roomdesc=@roomdesc+%line}} {LoopLines|Param=50}
How do I put an "Enter" between bolded area? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Mar 25, 2008 8:31 pm |
Change: @roomdesc+%line
to: %concat(@roomdesc, %crlf, %line) |
|
|
|
jetyap Newbie
Joined: 28 Feb 2008 Posts: 8
|
Posted: Wed Mar 26, 2008 3:38 am |
OK another problem....blank spaces in between lines get ignored. Item in variable is supposed to match italic font below.
MUD output
<<<BladeBakers Bakery>>>
[Exits: east west]
The fine aromas of various foods overwhelm your senses as you
enter the room. Looking around, you see several counters and ovens
lining the walls. On each counter, there are all sorts of things,
food, utensils, and other accessories. In each oven, there are all
sorts of special goodies in the works. On a large shelf at the back
of the room, there are more goodies that are ready for your eating
pleasure. There are two other people in the room, both working
furiously to keep up with the large demand of keeping BLADE
supplied for their journeys.
(Halo) (White Aura)(Shop) Glumph the gully dwarf, the baker's assistant is here, covered in flour.
(Halo) (White Aura)(Purple Aura)(Shop) Levarin Velsmate, [=[>BLADE>>>'s clan baker is here.
{HP:10926/10926 100%|MP:8032/8032|Mv:100%|AC:-1461|TNL:2,992,433}
Variable saved
The fine aromas of various foods overwhelm your senses as you
enter the room. Looking around, you see several counters and ovens
lining the walls. On each counter, there are all sorts of things,
food, utensils, and other accessories. In each oven, there are all
sorts of special goodies in the works. On a large shelf at the back
of the room, there are more goodies that are ready for your eating
pleasure. There are two other people in the room, both working
furiously to keep up with the large demand of keeping BLADE
supplied for their journeys.
(Halo) (White Aura)(Shop) Glumph the gully dwarf, the baker's assistant is here, covered in flour.
(Halo) (White Aura)(Purple Aura)(Shop) Levarin Velsmate, [=[>BLADE>>>'s clan baker is here. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Mar 26, 2008 8:15 am |
You'll have to have a separate trigger with the pattern ^$ to match blank lines. (*) won't match them.
|
|
|
|
jetyap Newbie
Joined: 28 Feb 2008 Posts: 8
|
Posted: Wed Mar 26, 2008 11:21 am |
Revised List of Request
1) Everything under "Other" in Room Properties can be defaulted upon creation.
2) Scrolling through Room Properties for Rooms. Currently you'll have to right click and Properties to each and every room. If there's a Up and Down button on Properties which can cycle through rooms in a zone, it would be so helpful. |
|
|
|
|
|
|
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
|
|