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
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Sep 25, 2012 8:39 pm   

%pathexpand
 
Trying to make a path tracker of sorts...

for when you are following a set path, but the text to trigger on doesnt tell you which way...

Code:
<trigger priority="1500" id="150">
  <pattern>You follow the caravan onward.</pattern>
  <value>#MOVE %pop(caravanPath)</value>
</trigger>


caravanPath=%pathexpand(.32e7n2e)

that was working great... until we got into diaginals

#print %pathexpand(.3h)
h|h|h

yet sending just 'h' to the game, is not the same as sending northwest

and %reversedir cant reference the action direction name from it either
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Sep 25, 2012 8:47 pm   
 
Is the appropriate English Directions class enabled? NEWSUD are in one class, the diagonals are in another. Most users who play a game that only uses NEWSUD disable the diagonals class, and when they move on to a game that uses the diagonals they forget to turn that class back on.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Tue Sep 25, 2012 9:10 pm   
 
Looks like its all in one to me.

_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Sep 26, 2012 12:01 am   
 
They are in separate classes unless you specifically moved them into one class. You are likely viewing the Directions filter with the ALL selector on. Either way, so long as they are all enabled then my question was answered.

Which probably means your English Directions package is corrupted. Corrupted settings could cause settings to be unrecognized, which in the case of directions would allow for the production of the abovementioned behavior.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Sep 26, 2012 12:13 am   
 
Eh... the install is only a few weeks old on the system, and i have never even gone into the english keypad package to look, much less edit, so the odds of corruption should be infinitesimally small..

The above window is available from the view menu.
_________________
Discord: Shalimarwildcat
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Wed Sep 26, 2012 12:56 am   
 
If you're saying you were expecting %pathexpand to return nw|nw|nw instead of h|h|h, I'm pretty sure it's not supposed to do that.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Sep 26, 2012 1:56 am   
 
Perhaps not %pathexpand, but some function should be able to covert it.
Or at the minimum, #MOVE should know what direction 'h' is.
_________________
Discord: Shalimarwildcat
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Sep 26, 2012 5:35 am   
 
#MOVE works with the list of game commands pertaining to directional movement (north, south, etc), and from there it figures out what direction you move. You can add the #DIRECTION shortcode to the list of game commands, and #MOVE will then happily work, but I dunno what side affects you might run into.
_________________
EDIT: I didn't like my old signature
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Wed Sep 26, 2012 7:16 am   
 
I would argue that the .hjkl directions, being a part of the pathing system, should already be part of 'the list of game commands pertaining to directional movement'.

Looks like i will have to kludge it... of course most games use l for look.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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