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


Joined: 24 May 2002
Posts: 6
Location: Sweden

PostPosted: Sat Jun 14, 2003 3:19 pm   

Problem capturing room description
 

Hello all :)

I have problem capturing the room description I have made some triggers below
but I cant get it to work. I made this triggers and then I tried to reconfigure
it. I would be greatfull for an example how I should make triggers and configure
mapper so I get it to work.

This below is a example of a room on Dragon Swords:

[642] The Big Intersection (city) [no_mob]

[Exits: east south west]
You are on the intersection of Impy Way and Swiftest Way. To the north of
you is a big house. Swiftest Way runs east and west, and Impy way continues
south. There are quite a few people on this intersection.


(25485hp 25200m 642 v ofcol2.are wizinvis: off )


_______________________________________________________________________________
I have made these triggers:

Pattern: ~[(%d)~] (%*) ~((%w)~) ~[(%*)~]
Value: #TAG vnum %1;#TAG name %2;#TAG flags %4

Pattern: ~[Exits~: (%*)~]
Value: #TAG exit %1;#TAG desc

Pattern: ~((%d)hp*
Value: #TAG prompt

Thanks in advance
//Thoorleif

telnet://dragonswords.net:1234
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sat Jun 14, 2003 7:22 pm   
 
OK I only see one or two things that could be problems. You are useing "*" way to much.
I would make some variables to help the pattern matching like so:

#var areas {city|town|underground|area}
#var warning {mob|no~_mob}
Then you would rewrite you patterns like so:

Pattern: ~[(%d)~] (%*) ~(({@areas})~) ~[({@warning})~]
Value: #TAG vnum %1;#TAG name %2;#TAG flags %4
This might cut down on trigger that by accident would fire but are not what you want.

Pattern: ~[Exits~: (%*)~]---correct this to:
Pattern: ~[Exits~: (*)~]
Value: #TAG exit %1;#TAG desc

Pattern: ~((%d)hp*-------would be:
Pattern: ~((%d)hp (*)~)
Value: #TAG prompt
I do not recomend this one because your promt changes and if you useinng this to map with it might be a problem.

Anyways let me know if this helps..

megamog75
Keeper of the only printable help files for Zmud.
Reply with quote
Thoorleif
Newbie


Joined: 24 May 2002
Posts: 6
Location: Sweden

PostPosted: Mon Jun 23, 2003 10:08 am   
 
Hello hello Smile

It still have trouble capturing the room desc. It works fine the first room when I reconfigure mapper after changeing those triggers. But next room I walk into it refuses to capture the room description. I would be greatfull is someone could give me some hints how to fix this Smile

//Thoorleif
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