|
methonis Beginner
Joined: 16 Dec 2002 Posts: 13
|
Posted: Sun Oct 07, 2007 12:11 am
Link style text off of trigger... |
Hiya,
I'm trying to make a diagnose system the picks up the affliction line but doesn't auto cure it. Instead, I want it to display some text that says what the affliction is, and then the action to take to cure it, where that action is linked to the command to do it.
For example:
Text to trigger off of - ^A blush begins to creep up your neck and into your face as you come to the realization that there are other people here!$
What I want it to show: Shyness - SIP PHLEGMATIC
So, that'd be the appearance, but that "SIP PHLEGMATIC" would be clickable, and when clicked would actually send the command "Sip phlegmatic" to the MUD.
I know this can be done on triggered text with sub... like if you had:
Mud output: "sword23411"
Triggered text: ~"(%a)~"
Command: #sub {<send "probe %1">%1</send>}
But I have know idea how to just do the send part without replacing something in the triggered text...
Thanks in advance,
Methonis |
|
|
|
methonis Beginner
Joined: 16 Dec 2002 Posts: 13
|
Posted: Sun Oct 07, 2007 12:23 am |
Bah, nevermind. Just have to use #MXP and make sure you put the ~ 's before the < 's
|
|
|
|
|
|
|
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
|
|