Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Thu Nov 06, 2003 3:09 pm   

New Skill, Tough Trigger...
 
Hiya and Thanks in Advance! Very Happy

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. Very Happy

Thanks,
Tygerhart
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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}
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: 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! Very Happy

Thanks again!
Tygerhart
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net