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
chris-74269
Magician


Joined: 23 Nov 2004
Posts: 364

PostPosted: Wed Dec 22, 2004 4:23 am   

MXP
 
i've new to mxp, and i managed to make it so it will output the mobs in a room to hyperlinks. i've been trying to implment substitute but it isn't working.
currently my trigger looks like this:
#TRIGGER {exits~: *$A (@mmob)~.} {#MXP <send "kill @mmob">@mmob</send>}
this has been working, but it adds another line of test. i tried to put it like this:
#TRIGGER {exits~: *$A (@mmob)~.} {#sub {#MXP <send "kill @mmob">@mmob</send>}}
but it won't work, keeps outputting the mobs name when it sees it and then my prompt and so forth.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Fri Dec 31, 2004 6:16 am   
 
Believe it or not this is one of those things they do not talk about in the help menu.

It seem you do not have to use the #MXP tag for this so it would be

#sub {<send "kill @mmob">@mmob</send>}

if @mmob is DOG then it would sub out the original at look like this
Dog and then when you hoverd over it it shows you
kill @mmob

your problem is that you need to remove " and use '
so looks like this

#sub {<send 'kill @mmob'>@mmob</send>}

now it will read
Kill DOG and send Kill DOG

you could also modify this tag to work with %pick and yesno, menues and other stuff haveing all sorts of fun.
_________________
megamog75 Smile
I will do this.Nothing in my life matters except this.No moment in my life exists except this moment.I am born in this moment, and if I fail, I will die in this moment. Raistlin Majere
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