Help with triggers I think

Posted by Zeyomie on Tue 21 Aug 2012 01:37 AM — 3 posts, 14,871 views.

#0
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?
Australia Forum Administrator #1
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.
#2
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>