[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Help with triggers I think

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Help with triggers I think

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Zeyomie   (5 posts)  [Biography] bio
Date Tue 21 Aug 2012 01:37 AM (UTC)  quote  ]
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?
[Go to top] top

Posted by Nick Gammon   Australia  (18,772 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 21 Aug 2012 01:45 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Zeyomie   (5 posts)  [Biography] bio
Date Reply #2 on Tue 21 Aug 2012 03:50 AM (UTC)  quote  ]
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>
[Go to top] 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.


761 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]