Backstab/flee script

Posted by Jagan on Thu 29 Dec 2011 02:02 PM — 4 posts, 16,012 views.

#0
Hi,

I need a bit of help with a script. I have a target setting script written that allows me to pick the target.

Now I want one to backstab a target which is fine but then I want it to flee and re-enter and backstab the same target.

The problem I am having is when I flee the mud gives 2 lines of text:

You make use of an opportunity to flee!
You go east...

The second line is the same as if you walked east so it triggers just walking around. Is there a way to fix this?

I have seen some around #if something direction then go back in but I'm not sure how to get around the text being the same for the flee and just walking east etc.

Thanks.
Australia Forum Administrator #1
You could make the line "You make use of an opportunity to flee!" temporarily disable the trigger that matches "You go east...". Then make another trigger (e.g.. on that matches the prompt line) that re-enables it.

Template:function=EnableTrigger
EnableTrigger

The documentation for the EnableTrigger script function is available online. It is also in the MUSHclient help file.

#2
Hey

Thanks. So u are saying that when my character is walking around "you go west..." the trigger will disable? And only when the text is there with the flee "you take this opportunity to flee." will it enable?

Will that work since the lines of text appear separately?

I read the link u sent. Which of the versions should I be using in tes of how to write it?

Thanks
Australia Forum Administrator #3
Two versions? One enables and one disables.

Triggers and scripts do what you want them to. I'm not sure I understand your question.