Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion Goto page Previous  1, 2
xgoldxbox Posted: Tue Jun 05, 2012 2:36 pm
Annoying automapper problem
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Jun 20, 2012 6:52 pm   
 
Yeah, all it does is populate a database variable. You can do whatever you want with that data afterwards. And the extra parentheses around the %match shouldn't be needed, I'm not sure why it wasn't compiling for you, it works fine for me...
Reply with quote
xgoldxbox
Beginner


Joined: 05 Jun 2012
Posts: 19

PostPosted: Wed Jun 20, 2012 6:55 pm   
 
I use an older version of cmud, maybe that's why. Somehow the records in that database variable got messed up. Something regarding weather came in between.
I'll get into it when I have a bit more time... Thanks for the scripts though. I'll see what I can achieve with it.
Reply with quote
xgoldxbox
Beginner


Joined: 05 Jun 2012
Posts: 19

PostPosted: Tue Jun 26, 2012 9:38 pm   
 
Somehow the trigger doesn't go through the 3rd state. It keeps adding description, however I receive the 'Obvious exits:' from the MUD.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Jun 27, 2012 11:49 pm   
 
If it keeps adding description, it is in the 3rd state. The problem is that the %match() inside that state is not catching the exits line. Are you certain that the exits line is always exactly "Obvious exits:" with a space after it and no spaces before it?
Reply with quote
xgoldxbox
Beginner


Joined: 05 Jun 2012
Posts: 19

PostPosted: Thu Jun 28, 2012 10:29 am   
 
Ah dammit! The editor deleted spaces from the front! Obvious exits always has two spaces in front!
Reply with quote
xgoldxbox
Beginner


Joined: 05 Jun 2012
Posts: 19

PostPosted: Thu Jun 28, 2012 10:37 am   
 
Well, I changed the %match part but it still hangs in the 3rd state. Exits contain door information a lot of times two, like this:

Obvious exits: n e(closed) s w(closed)

would that matter?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Jun 28, 2012 10:42 pm   
 
It shouldn't. Just to confirm, you changed the match to %match( %1, "^ Obvious exits: (*)$", $exits) ? And for future reference, put code tags around anything you want to keep formatted properly on the forums.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Jun 28, 2012 10:48 pm   
 
Actually, to avoid any confusion about spacing, just change the match to:
Code:
#IF %match( %1, "Obvious exits:(*)", $exits) {
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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