 |
chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: 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. |
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: 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
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 |
|
|
 |
|
|