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
boblinski
Novice


Joined: 05 Dec 2005
Posts: 49
Location: New Zealand

PostPosted: Sat Jul 20, 2019 1:28 am   

MXP for paths
 
Hello again, hopefully another thread is okay!

I am wanting to show-up some of my paths when I reach the start/end point of said paths.. and I was hoping to make them clickable..

Firstly, #MXP does not seem to be working whatsoever with paths.. for example I have a path set to "2mines".. when I set:

#TR {South GATE} {#MXP <send><color cyan>.2mines</send></color>}

The writing shows up and I can click it... but instead it just sends the word "2mines" to the mud which returns "Huh?"

Secondly, I managed to get it working for "#sl .2mines" but #sl ..2mines" (the reverse path) does not work.


Examples:
#MXP <send><color cyan>.2mines</send></color>
returns: ".2mines" resulting in "Huh?"

#MXP <send><color cyan>#sl ..2mines</send></color>
returns: "2mines" resulting in "Huh?" and eventually "Slow walking aborted"

#MXP <send><color cyan>..2mines</send></color>
returns: "..2mines" resulting in "Huh?"
Reply with quote
shalimar
GURU


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

PostPosted: Sat Jul 20, 2019 2:53 am   
 
You need to open and close your tags in the correct order.
_________________
Discord: Shalimarwildcat
Reply with quote
boblinski
Novice


Joined: 05 Dec 2005
Posts: 49
Location: New Zealand

PostPosted: Sat Jul 20, 2019 8:11 am   
 
#mxp <send>..2mines</send>
Even this still results in a clickable ".. 2mines" but when clicked it just sends a literal "..2mines" to the mud which results in "Huh?" and no movement..
Reply with quote
shalimar
GURU


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

PostPosted: Sat Jul 20, 2019 11:40 am   
 
If you use the map you could pass #SL a %roomnum, and let the mapper find its own shortest route.

or try:
#EXEC {..2mines}
_________________
Discord: Shalimarwildcat
Reply with quote
boblinski
Novice


Joined: 05 Dec 2005
Posts: 49
Location: New Zealand

PostPosted: Sun Jul 21, 2019 4:26 am   
 
Code:
#MXP <send>#EXEC {..2mines}</send>


result

Code:
ERROR: Trigger "South GATE" fired but did not compile




If I drop the #MXP and simply use:
Code:
#TR {South GATE} {#EXEC {..2mines}}


But then it fires every time I enter South GATE, which I don't want to happen for multiple reasons!
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 21, 2019 6:41 pm   
 
Try the %roomnum method?
_________________
Discord: Shalimarwildcat
Reply with quote
boblinski
Novice


Joined: 05 Dec 2005
Posts: 49
Location: New Zealand

PostPosted: Sun Jul 21, 2019 11:36 pm   
 
shalimar wrote:
Try the %roomnum method?


Using the mapper? I don't use the mapper..
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