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
➜ Tips and tricks
➜ Help with triggers I think
|
Help with triggers I think
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Zeyomie
(5 posts) Bio
|
| Date
| Tue 21 Aug 2012 01:37 AM (UTC) |
| Message
| Ok, I don't know if I can do this with triggers or not. I know nothing about scripting, so if not then I'm out of luck.
I'm trying to set up a series of triggers that will function only certain number of times before basically resetting.
I want them to trigger on a phrase, something like "You've just been reset." then to kill 3 to 4 times. Which works until a particular mob is no longer in the room, it would be nice if they could switch rooms on a phrase like "There are none." maybe in junction with a timer, to find more of that mob. Maybe in a circle, north, east, south, west, etc. but I'm thinking that this is less and less possible the more I think about it.
Is this even possible? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 21 Aug 2012 01:45 AM (UTC) |
| Message
| | You would need some sort of scripting. I seem to recall in the past people did scripts that noticed which way the mob went. Maybe even have a trigger on (say) "* leaves *" (eg. the kobold leaves east) and then send %2 (the second wildcard) so you also go east. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Zeyomie
(5 posts) Bio
|
| Date
| Reply #2 on Tue 21 Aug 2012 03:50 AM (UTC) |
| Message
| Ok, I think I have figured out a way to do mostly what I want with triggers but there are a couple variables I'm hung up on. One is a multi-line trigger.
You are a *
Your height is *
You are carrying *
Offensive bonus: *
Your mood is: *
Your armor absorbs *
The data after the * changes, so I am having trouble with getting the trigger to activate when these lines appear.
Second. I've found a piece of script that will do a random direction trigger which works for me. But I've no idea how to use it. I've only ever done triggers via the configure menu and I'm not all that skilled at that either. lol
<triggers>
<trigger
enabled="y"
match="They aren\'t here\."
send_to="12"
sequence="100"
>
<send>
local directions = { "n", "s", "e", "w" }
Send ( directions [ math.random (#directions) ] )
</send>
</trigger>
</triggers> | | 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.
14,208 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top