Casualty
This mod doesn't really do anything directly useful; it was just an itch I wanted scratched.
A few gamers may remember Bungie's amazing "Myth: The Fallen Lords" back in the mid-90s, which set the bar for small unit fantasy tactical combat (and a wonderful backstory/voiceover "feel" which imho has yet to be matched in any game since).
Anyway, one of its well-done (albeit depressing) features was that whenever one of your units died, rather than either glossing over it or dwelling on it, a neutral voiceover voice would just say "Casualty." And in a big battle where you were sweating bullets and your troops were dying in large numbers, having this horribly neutral voice chanting "Casualty. Casualties. Casualty." was both maddening and yet energizing. It added something.
Anyway, for no good reason I decided I wanted that in WoW, so I coded up this little mod. It's horribly incomplete (for one thing, it triggers when pets die, which I should fix, and may trigger on other things) but it did what I wanted, so I thought I'd share it. If I have time and anyone in the universe wants it to do more, I may add more flexible announcements, integration with SCT so you get a message zipping up the screen with the name of who died, etc. But right now, with its basic "casualty" message, it does what I wanted.
Note: What you have for a sound sample is me and a microphone, since the actual sound samples from Myth are not free for public distribution, so feel free to go through the trouble of replacing them if you wish.
A few gamers may remember Bungie's amazing "Myth: The Fallen Lords" back in the mid-90s, which set the bar for small unit fantasy tactical combat (and a wonderful backstory/voiceover "feel" which imho has yet to be matched in any game since).
Anyway, one of its well-done (albeit depressing) features was that whenever one of your units died, rather than either glossing over it or dwelling on it, a neutral voiceover voice would just say "Casualty." And in a big battle where you were sweating bullets and your troops were dying in large numbers, having this horribly neutral voice chanting "Casualty. Casualties. Casualty." was both maddening and yet energizing. It added something.
Anyway, for no good reason I decided I wanted that in WoW, so I coded up this little mod. It's horribly incomplete (for one thing, it triggers when pets die, which I should fix, and may trigger on other things) but it did what I wanted, so I thought I'd share it. If I have time and anyone in the universe wants it to do more, I may add more flexible announcements, integration with SCT so you get a message zipping up the screen with the name of who died, etc. But right now, with its basic "casualty" message, it does what I wanted.
Note: What you have for a sound sample is me and a microphone, since the actual sound samples from Myth are not free for public distribution, so feel free to go through the trouble of replacing them if you wish.
ohhh so that was your mod that would randomly make my target change in combat?
id be hitting some trash mob in bwl only to find out seconds later i was suddenly targeting a mob 2 rooms away with the exact same name.
at least i hope its just this mod doing that, updating now.
Fixed the nasty retargeting bug. You must update to YakHelpers 1.2.0!
CRITICAL PROBLEM in TargetUnique for Rogues--it switches targets to and from the casualty to use UnitInRaid("target")--which was me being lazy. Problem is--rogues lose their combo points! ACK!
Fix coming within days.
LOOK BEHIND YOU! A THREE-HEADED MONKEY!
(while Lassevk's back is turned, uploads version 1.2.1, with localization.lua properly included)
Okay, 1.2.1 is up with that file properly included. Darn release procedures... should show here shortly.
Variable CASUALTY_CONFIG_STRINGS is missing. Did you forget a localization file somewhere?
Mitaki:
Close! What I actually get are messages in the chat log from the CHAT_MSG_COMBAT_FRIENDLY_DEATH event, which is either UNITDIESOTHER ("%s dies."), PARTYKILLOTHER ("%s is slain by %s!") or UNITDESTROYEDOTHER ("%s is destroyed").
So filtering out the totems is easy (just don't check when it's UNITDESTROYEDOTHER). But with the other two, I just get a name.
Filtering out other information given the name isn't as easy as it sounds. There are some useful functions ("UnitIsPlayer" for example) but they require a unit ID... which isn't as straightforward as it sounds (it wants things like "party1" and "target"). Now, I can target by name and then switch back, but I'm not sure I want something as simple as Casualty playing with targeting at all. I'll try it and see what happens.
Yeah, I think that's what I'd have to do, either TargetByName (name) and then use unit functions, OR parse through the entire raid/party and see if the name matches. Actually, that latter may be required since right now it triggers on ALL friendly casualties--whether or not they're in your party/raid!
That doesn't handle pets directly. Well, sorta. If I did the TargetByName thing, UnitInParty and UnitInRaid don't count pets as being in the party/raid.
Well, I'll look at it at some point. I've been spending much time on GreenLight and haven't looked at Casualty in a while (Casualty is fun, but GreenLight is more useful and I have more things I need to tweak there).
WTB 1.11.2...
Anyway, about the totems and pets and stuff showing up as casualty, I might have an idea.
First of all, I have no idea how addons work and how they are wrote, but if possible, you could make it work like this:
IF "Name" like (! ! % % % % %) or "Type" not like (Humanoid) then DIE
Assuming ! is a string of letters not including a space and % is a optional position for a string of letters not including a space ( players cant have a space in their name so this would rule out all things with more then 1 word (like totems).
Also, pets are "beasts", so if you could have them checked you could have them filtered on base of their class.
Dont know if this is in any way constructive, and if it is even possible. If this was just a load of bull**** since Addons dont work like that, my appologies :)
> But I am wondering if the sound still isnt fixed
Not you; the soft lock problem in WoW forced an emergency patch, which they had to name 1.11.1; the PlaySoundFile() fix has been delayed until 1.11.2, according to the forums.
GRRR. Very frustrating.
Really nice idea, not only is it just funny, but you can also keep trackof who dies and who doesnt. Really great that it works outside your party or raid as well!
But I am wondering if the sound still isnt fixed, or that I just need to get dependancy for it (doesnt list any).
Arright! News from Slouken is that PlaySoundFile was unintentionally broken and will be fixed in 1.11.1, so go ahead and download 1.1.0; it should work once that's fixed! Glad Casualty wasn't actually a casualty.
Okay, I fixed the totem problem, and added the "lists the deceased" line and added a slash command to toggle reporting on/off...
...but the 1.11 patch is causing problems with PlaySoundFile and it no longer plays the sound, which is kinda the point. No one seems to know what's up. I'll publish the update as soon as I can.
>It activates when totems die.
I thought it might; I'm not filtering by event information. That's OK; I wanted to fix that in a patch anyway (same patch that lists the deceased). Give me a couple of days, maybe today if I get time!
It activates when totems die.
oh, awesome. Thing is, I want the voice from Myth! hah, doh, I'll hafta dig that up.
Heh.
Update coming in a week or so (maybe less)--I think this triggers on more things than it should (I'm worried it may trigger on totems; I'll check that tonight), and I want to show who died on the chat line (ie "Casualty: Carys" or "Casualties: Carys, Frobnitz, Burfl")
Myth is still what I think when I hear "Thrall"
I loved Myth too.