|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Thu Nov 06, 2003 3:09 pm
New Skill, Tough Trigger... |
Hiya and Thanks in Advance!
I just got a new skill called "Hellblade". A more advanced skill than the previous "helldagger'.
Now when you send the command hellblade to the MUD you can get several different responses... here are some examples;
Masterful hit!!!! Your ==H=e=l=l=b=l=a=d=e>>>> <<--*-->> IMPLODES <<--*-->> Sea Snail!
Masterful hit!!!! Your ==H=e=l=l=b=l=a=d=e>>>> <<--*-->> IMPLODES <<--*-->> Sea Snail!
Masterful hit!!!! Your ==H=e=l=l=b=l=a=d=e>>>> <<--*-->> IMPLODES <<--*-->> Sea Snail!
or
Your ==H=e=l=l=b=l=a=d=e>>>> misses Sea Snail.
or variations such as;
Your ==H=e=l=l=b=l=a=d=e>>>> <--+--> FOSSILIZES <--+--> Sea Snail!
Your ==H=e=l=l=b=l=a=d=e>>>> misses Sea Snail.
Masterful hit!!!! Your ==H=e=l=l=b=l=a=d=e>>>> <<--*-->> IMPLODES <<--*-->> Sea Snail!
So when it's successful it always hits with 3 lines whether or not there's a "miss" in it, if it fails then there's only the single line with the "miss" in it.
Here's the trigger I wrote for it but there seems to be a problem in the first #IF I think...
PATTERN:
Your ~[~[==~]~]H=e=l=l=b=l=a=d=e~>~>~>~> (*)
TRIGGER:
#ADD hblade 1
#VA hblademsg %1
#IF ((@hblademsg = misses) & (@hblade >= 1)) {
hellblade
@hblade = 0
}
#IF (@hblade >= 3) {
hellblade
@hblade = 0
}
Any help would be greatly appreciated.
Thanks,
Tygerhart |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Nov 06, 2003 5:27 pm |
Since you can't know in advance if the pattern will happen once or three times, add something different to control your trigger.
#TR Hellblade1 {Your ~[~[==~]~]H=e=l=l=b=l=a=d=e~>~>~>~> } {#T- Hellblade1;say attack;hellblade}
#TR {You say attack} {#T+ Hellblade1} |
|
|
|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Sat Nov 08, 2003 10:57 am |
Thanks Lightbulb!
Once again your solutions boggle my mind, but I'll be damned if they don't always work too!
Thanks again!
Tygerhart |
|
|
|
|
|