Knights...

by Gorokan

Back to Mechanic's Corner.

Gorokan2005-06-25 13:48:03
Not sure if I'm the only one who is having a bit of difficulting with pattern matching against Knights, especially when a Knight yourself.

I just managed to pierce 3 of 4 limbs simply off my attacks being parried.

Does anyone have the patterns for all possible wounding reflexes? Or know of a neat way to make it a lot easier?
Gorokan2005-06-25 14:00:18
Yep, I'm fine with tracking rebounding, my issue is more with the fact that there are so many different lengths in sword descriptions and names that messages from Knights can always vary greatly in length.
Unknown2005-06-25 14:34:51
Use a regular expression that looks something like this. It matches for me no matter how it's split up.

CODE
You(?: |\\n)+cry(?: |\\n)+out(?: |\\n)+in(?: |\\n)+pain(?: |\\n)+as(?: |\\n)+your(?: |\\n)+jaw(?: |\\n)+is(?: |\\n)+(?:smited|pulped|crushed|smashed|pounded|striked)(?: |\\n)+and(?: |\\n)+shatters\\.$
Gorokan2005-06-25 14:57:32
QUOTE(Zarquan @ Jun 25 2005, 10:34 PM)
Use a regular expression that looks something like this. It matches for me no matter how it's split up.

CODE
You(?: |\\n)+cry(?: |\\n)+out(?: |\\n)+in(?: |\\n)+pain(?: |\\n)+as(?: |\\n)+your(?: |\\n)+jaw(?: |\\n)+is(?: |\\n)+(?:smited|pulped|crushed|smashed|pounded|striked)(?: |\\n)+and(?: |\\n)+shatters\\.$

144565



I take it that's regex?

I'll try it out, thanks.
Unknown2005-06-25 18:34:17
Yes. Regex is simply an abbreviation for a regular expression. This works great for me in MUSHclient, but I can't guarantee success in other clients.
Gorokan2005-06-26 03:57:17
Yeah, that doesn't work with Zmud.
Murphy2005-06-26 06:09:11
Personally I have the Murphy swings a %1 at you to turn on a class of shorter triggers, like chin, head, nose, breaking your left arm, etc and then the prompt in that class to turn triggers off.

Its great for captuing those small words and such, except when terenas comes along with his redciulsouly long rapier names that go for 2 lines, which screws me up
Gorokan2005-06-26 07:20:23
QUOTE(Murphy @ Jun 26 2005, 02:09 PM)
Personally I have the Murphy swings a %1 at you to turn on a class of shorter triggers, like chin, head, nose, breaking your left arm, etc and then the prompt in that class to turn triggers off.

Its great for captuing those small words and such, except when terenas comes along with his redciulsouly long rapier names that go for 2 lines, which screws me up
144811



I suppose that's a way of doing it.. but it seems kinda messy.
Murphy2005-06-26 07:22:40
I find its rather clean.

You can also trigger rebounding and parry to turn your knight class on, and it tracks wounds and afflictions perfectly.
celahir2005-06-26 08:56:26
For people with extremeley long names I had a trigger that picked up someone was attacking and created a temporary trigger to pick up the work "you" to see if the attack was hitting me or not. Then the prompt line would untrigger the temporary trigger if it wasn't picked up.

The class way isnt that messy but if you wanted you could use a variable to check whether you have been attacked but that takes up more processing and so can be slower.
Gorokan2005-06-26 09:10:24
Thanks for the suggestions so far, I'll see what I can come up with.

I'm still interested to know if there is a way you can match a pattern in Zmud regardless of where the new line might start.
Amaru2005-06-26 11:43:42
QUOTE(Murphy @ Jun 26 2005, 07:09 AM)
Personally I have the Murphy swings a %1 at you to turn on a class of shorter triggers, like chin, head, nose, breaking your left arm, etc and then the prompt in that class to turn triggers off.
144811



You mean you took that from my system, right.

And Gorokan, using this in various ways is how the vast majority of people cure warriors. Including me, Thorgal..
Murphy2005-06-26 11:48:47
I took the partial idea from your and daevos' and another system I got my hands on for building mine.

It wasn't -just- your idea there Amaru.
Amaru2005-06-26 12:16:34
wink.gif
Gorokan2005-06-26 12:31:10
Allow me to get some clarification on the idea first of all.

So you reflex the attack, which enabled a specific class like below for example:
#TRIGGER {With a focused look, %w strikes at you with} {#T+ Knights}

And then in that class you would have what?

#TRIGGER {gut, which opens up} {marjoram cure here}
#TRIGGER {left arm, striking a major} {marjoram cure here}

#TRIGGER {^(%d)h, (%d)m, (%d)e, (%d)p (*)-} {#T- Knights}

etc?
Murphy2005-06-26 23:53:39
yep, thats it
Terenas2005-06-27 00:36:58
QUOTE(Murphy @ Jun 26 2005, 06:09 AM)
Its great for captuing those small words and such, except when terenas comes along with his redciulsouly long rapier names that go for 2 lines, which screws me up
144811


owned.gif
Murphy2005-06-27 00:40:26
die terenas!

Nerf those rapiers
Unknown2005-06-27 03:03:37
Maybe the limit on weapon's name length should be lowered? wink.gif
Alger2005-06-27 03:59:45
mines got a fall out trigger on keywords starting with a strike prompt. So it picks up individual words and if you get a combination and a certain number of points it alots an affliction.