First, text from the MUD:
*Sergeant Xena*'s slash >>> CASTRATES <<< Mungo! (302)
*Sergeant Xena*'s slash -*- DESOLATES -*- Mungo! (249)
*Sergeant Xena*'s slash -*- DESOLATES -*- Mungo! (298)
*Sergeant Xena*'s critical strike -=< RAVAGES >=- Mungo! (371)
*Sergeant Xena*'s critical strike -=< RAVAGES >=- Mungo! (354)
*Sergeant Xena*'s attack crashes against Mungo's shield.
*Sergeant Xena*'s life drain injures Mungo. (13)
Mungo's stab grazes *Sergeant Xena*. (
Mungo's stab grazes *Sergeant Xena*. (6)
Mungo's life drain scratches *Sergeant Xena*. (2)
Mungo's lightning bolt decimates *Sergeant Xena*. (26)
Mungo's chilling touch wounds *Sergeant Xena*. (20)
Mungo's burning hands maims *Sergeant Xena*. (34)
Captain Daikata's thwack mauls *Sergeant Xena*. (22)
Captain Daikata's thwack devastates *Sergeant Xena*. (29)
Captain Daikata's electric strike mauls *Sergeant Xena*. (22)
Captain Daikata's life drain misses *Sergeant Xena*.
Captain Daikata's critical strike DISEMBOWELS *Sergeant Xena*. (42)
Captain Daikata's thwack mauls *Sergeant Xena*. (23)
Captain Daikata's electric strike mauls *Sergeant Xena*. (22)
Captain Daikata's life drain scratches *Sergeant Xena*. (3)
That is a single round of combat, which can cause serious spam. I would like to gag all of that text, and replace it with a few single lines, like this:
Mungo damages *Sergeant Xena*. (200)
Captain Daikata damages *Sergeant Xena*. (200)
*Sergeant Xena* damages Mungo. (200)
Basically, telling attacker, target, and adding up all the numbers. The hard part is that an attacker doesn't always have the same number of attacks per round - it can vary from 1 to 7ish.
Also, there may be specific spells or attacks I might want to show in full; separate out from the main damage number.
Any pointers/code/help you all could throw my way would be great!
My initial approach would be something like this:
1. Read in combat text, attacker by attacker
2. Add up numbers for each target of the attacker
3. Display compacted combat text
Question: Would this script lag my client enough to affect performance?
*Sergeant Xena*'s slash >>> CASTRATES <<< Mungo! (302)
*Sergeant Xena*'s slash -*- DESOLATES -*- Mungo! (249)
*Sergeant Xena*'s slash -*- DESOLATES -*- Mungo! (298)
*Sergeant Xena*'s critical strike -=< RAVAGES >=- Mungo! (371)
*Sergeant Xena*'s critical strike -=< RAVAGES >=- Mungo! (354)
*Sergeant Xena*'s attack crashes against Mungo's shield.
*Sergeant Xena*'s life drain injures Mungo. (13)
Mungo's stab grazes *Sergeant Xena*. (
Mungo's stab grazes *Sergeant Xena*. (6)
Mungo's life drain scratches *Sergeant Xena*. (2)
Mungo's lightning bolt decimates *Sergeant Xena*. (26)
Mungo's chilling touch wounds *Sergeant Xena*. (20)
Mungo's burning hands maims *Sergeant Xena*. (34)
Captain Daikata's thwack mauls *Sergeant Xena*. (22)
Captain Daikata's thwack devastates *Sergeant Xena*. (29)
Captain Daikata's electric strike mauls *Sergeant Xena*. (22)
Captain Daikata's life drain misses *Sergeant Xena*.
Captain Daikata's critical strike DISEMBOWELS *Sergeant Xena*. (42)
Captain Daikata's thwack mauls *Sergeant Xena*. (23)
Captain Daikata's electric strike mauls *Sergeant Xena*. (22)
Captain Daikata's life drain scratches *Sergeant Xena*. (3)
That is a single round of combat, which can cause serious spam. I would like to gag all of that text, and replace it with a few single lines, like this:
Mungo damages *Sergeant Xena*. (200)
Captain Daikata damages *Sergeant Xena*. (200)
*Sergeant Xena* damages Mungo. (200)
Basically, telling attacker, target, and adding up all the numbers. The hard part is that an attacker doesn't always have the same number of attacks per round - it can vary from 1 to 7ish.
Also, there may be specific spells or attacks I might want to show in full; separate out from the main damage number.
Any pointers/code/help you all could throw my way would be great!
My initial approach would be something like this:
1. Read in combat text, attacker by attacker
2. Add up numbers for each target of the attacker
3. Display compacted combat text
Question: Would this script lag my client enough to affect performance?