 |
xgoldxbox |
Posted: Tue Jun 05, 2012 2:36 pm
Annoying automapper problem |
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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...
|
|
|
 |
xgoldxbox Beginner
Joined: 05 Jun 2012 Posts: 19
|
Posted: 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. |
|
|
 |
xgoldxbox Beginner
Joined: 05 Jun 2012 Posts: 19
|
Posted: 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.
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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?
|
|
|
 |
xgoldxbox Beginner
Joined: 05 Jun 2012 Posts: 19
|
Posted: Thu Jun 28, 2012 10:29 am |
Ah dammit! The editor deleted spaces from the front! Obvious exits always has two spaces in front!
|
|
|
 |
xgoldxbox Beginner
Joined: 05 Jun 2012 Posts: 19
|
Posted: 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? |
|
|
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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.
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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) { |
|
|
|
 |
|
|