|
methonis Beginner
Joined: 16 Dec 2002 Posts: 13
|
Posted: Tue Dec 17, 2002 3:00 am
Another question |
Thanks for the help on the previous problem, I think I have it squared away. This is similiar to the old question, but has one added element. I wrote a trigger that looked for this text: You remove a * potion from inside a hessian sack.
And the action would put it right back in. Very simple. However, I also have other triggers running that automatically remove a potion, sip, and return to sack if a defence goes down. My question is: How can I have the auto put away trigger ignore the text when the action is fired by my own triggers, but recognize it when it's inacted by some other means (eg take potion from sack) ???
Any suggestions are most appreciated.
Meth |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Dec 17, 2002 7:21 am |
quote:
Thanks for the help on the previous problem, I think I have it squared away. This is similiar to the old question, but has one added element. I wrote a trigger that looked for this text: You remove a * potion from inside a hessian sack.
And the action would put it right back in. Very simple. However, I also have other triggers running that automatically remove a potion, sip, and return to sack if a defence goes down. My question is: How can I have the auto put away trigger ignore the text when the action is fired by my own triggers, but recognize it when it's inacted by some other means (eg take potion from sack) ???
Any suggestions are most appreciated.
Meth
Well, I assume that any instance of a TAKE command would be done through the command-line rather than an alias/trigger/menu/button/etc, correct? In this case, create an #ONINPUT trigger. This will only match stuff that comes from the command-line and not any commands issued via an alias or trigger.
For other things, or if you can't just go with an #ONINPUT trigger, use #SEND to issue the TAKE command. #SEND dumps the command directly to the MUD so there's no display line to trigger off of.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
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
|
|