Difference between revisions of "Talk:Zmud Damage Counter"

From AvatarWiki
Jump to navigation Jump to search
m
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Heh. Looks nice. With the help of Ttak, this has been upgraded! It now also counts spell damage (for significant spells). Changed code would be:
+
== Big bugs ==
#TRIGGER {^(%w)[^>;]{strike|strikes|hits|blast|blasts|pierce|smash|backstab|bash|maelstrom|Meteor Swarm|acid rain|disintegrate|brimstone|cataclysm|ultrablast|field of death} (%w)[^>;]with([* ])(%w)[* ]%w[!.]} {#IF {%ismember( %lower( %1), @DClist)} {#VAR %lower( %1) %replaceitem( %eval( %item( @damagevalues, %ismember( %concat( %4, %3), @damageverbs))+%item( @{%lower( %1)}, 17)), 17, @{%lower( %1)});#VAR %lower( %1) %replaceitem( %eval( %item( @{%lower( %1)}, %eval( %ismember( %lower( %4), @damageverbshort)+1))+1) , %eval( %ismember( %lower( %4), @damageverbshort)+1) , @{%lower( %1)})};#IF {%ismember( %lower( %2), @DClist)} {#VAR %lower( %2) %replaceitem( %eval( %item( @damagevalues, %ismember( %concat( %4, %3), @damageverbs))+%item( @{%lower( %2)}, 18)), 18, @{%lower( %2)})};#IF {%lower( %2) = "you"} {#VAR %lower( your) %replaceitem( %eval( %item( @damagevalues, %ismember( %concat( %4, %3), @damageverbs))+%item( @{%lower( your)}, 18)), 18, @{%lower( your)})};#IF {%lower( %1) = "you"} {#VAR %lower( your) %replaceitem( %eval( %item( @damagevalues, %ismember( %concat( %4, %3), @damageverbs))+%item( @{%lower( your)}, 17)), 17, @{%lower( your)});#VAR %lower( your) %replaceitem( %eval( %item( @{%lower( your)}, %eval( %ismember( %lower( %4), @damageverbshort)+1))+1) , %eval( %ismember( %lower( %4), @damageverbshort)+1) , @{%lower( your)})}}
+
 
Basically, another #IF is added that checks when %1 is "you" and adds the numbers to the right vars, so that it can handle the new types of damage. Not sure if it will get messed up with the spaces and the uppercase, but I don't have any of those spells to test it with... -[[User:MooNFisH|Llanor]] 01:08, 21 September 2007 (CDT)
+
I'd recommend against using this current version because of the many mistakes. --[[User:MooNFisH|Llanor]] 15:55, 16 November 2009 (UTC)
 +
 
 +
 
 +
== Working version? ==
 +
 
 +
Does anyone have a good working version of a script like this? I'm looking for something that I can import into CMud and maybe make slight tweaks in it.
 +
--[[User:Shalineth|Shalineth]] 00:49, 27 May 2010 (UTC)

Latest revision as of 20:49, 26 May 2010

Big bugs

I'd recommend against using this current version because of the many mistakes. --Llanor 15:55, 16 November 2009 (UTC)


Working version?

Does anyone have a good working version of a script like this? I'm looking for something that I can import into CMud and maybe make slight tweaks in it. --Shalineth 00:49, 27 May 2010 (UTC)