Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Backstab/flee script
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Jagan
(3 posts) Bio
|
Date
| Thu 29 Dec 2011 02:02 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 30 Dec 2011 04:31 AM (UTC) |
Message
| 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.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Jagan
(3 posts) Bio
|
Date
| Reply #2 on Fri 30 Dec 2011 02:32 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sat 31 Dec 2011 04:21 AM (UTC) |
Message
| Two versions? One enables and one disables.
Triggers and scripts do what you want them to. I'm not sure I understand your question. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,848 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top