HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need Help with shadow1500's Any Unit Takes Damage

03-30-2006, 01:01 AM#1
hourglasseye
Hey,

I kinda need help with shadow1500's Any Unit Takes Damage thing. How do I use it? I copy pasted it unto the custom script section of my map but it wouldn't compile haha. Can anyone help me understand how it works? I know very little JASS at the moment so I don't think I'd be able to figure it out by myself yet.

Here is his code: http://www.wc3jass.com/viewtopic.php?t=2608

Please reply, I kinda need a way to detect damage done by barrage and cleaving attack based spells so after searching the forums, i figured that this one might be a good option.
03-30-2006, 01:20 AM#2
shadow1500
Quote:
This allows you to use the specific unit event "Unit is Damaged" as a generic unit event.
Its leakfree and it requires the handle vars.
Put your actions in the "AnyUnitTakesDamage" function.
Make a trigger called "AddDmg", convert to jass and put this code into the trigger
it says right there
03-30-2006, 02:32 AM#3
hourglasseye
Oh its you! Hmm... So I have to get the code for these LocalVars and stuff... Thanks for pointing that out I hate being a noob... *searches the JASS Vault* Aha! Found it. Thanks.