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
Xirin
Newbie


Joined: 25 May 2004
Posts: 7
Location: USA

PostPosted: Wed Jun 09, 2004 7:44 pm   

Question on combat spam triggers
 
I'm trying to set up triggers to parse all of combat spam out to a separate window. All of my combat ends with ~(%d Dmg~), so that's not a problem, but others' doesnt. It looks like this:
So-and-so's /insert damage noun here/ /insert damage verb here/ someone-else

So-and-so, and someone-else can be one or multiple word names.
Damage noun is type of damage, I have the full list in my database (things like 'slash' or 'fireball').
Damage verb is one word, sometimes surrounded by special characters, and I have a full list of them in my database as well (things like 'scratches' or '-+- DISINTEGRATES -+-')
Alltogether it looks like this:
The Queen of the Dryads's blast of flame *** DEVASTATES *** the Pit Serpent!
Reply with quote
Zener
Wanderer


Joined: 31 May 2004
Posts: 54
Location: USA

PostPosted: Wed Jun 09, 2004 7:58 pm   
 
I am taking a wild guess at this, as I would LOVE to have this for my characters, but unlike you, I don't have a list of all the possible damage messages and such, yet.

#TRIGGER ^(%w)'s {blast of|fireball|slash} {scratches|*** DEVASTATES ***|-+- DISINTERGRATES -+-} {the|a|an} %2!

Then just filter it to your combat spam window.
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Wed Jun 09, 2004 9:53 pm   
 
#VAR damage_noun {slash|fireball|blast of flame|...}
#VAR damage_verb {scratches|~*~*~* DEVASTATES ~*~*~*|-+- DISINTEGRATES -+-|...}

#TRIGGER {* {@damage_noun} {@damage_verb} *~!$} {#CAP second_window}

When I copy and pasted the second #VAR into zMUD, the tildes(~s) didn't get copied into the list var. I had to go back and put them back in. Good luck.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jun 09, 2004 10:36 pm   
 
Take one of your lists, Xirin, and use it as your trigger pattern. Both CAPTURE and GAG affect the entire line, so there's no need to match everything.
#TR {{@DamageNouns}} {#CAP Battle;#GAG}
Reply with quote
Xphere
Beginner


Joined: 08 Jun 2004
Posts: 26
Location: USA

PostPosted: Wed Jun 09, 2004 10:41 pm   
 
so there are no numbers indicating damage in the mud your playing? other then your damage? nothing in the combat engine you can turn on?
Reply with quote
Xirin
Newbie


Joined: 25 May 2004
Posts: 7
Location: USA

PostPosted: Thu Jun 10, 2004 2:00 am   
 
mr_kent, thank you! I went with that idea, and it works like a charm!

LightBulb, that wouldn't do. Some of the words in either list would cause too much text to go to that window (digestion is a damage noun, or hits is a damage verb, for example)

Zener, neither do I. I have an almost-full-list. As soon as some text doesn't get parsed, I'll just add the appropriate damnoun to the database.
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