HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

trigger help

10-13-2002, 05:50 PM#1
BoZo
Ok I want to make like a critical hit trigger, a unit damages another unit (dmg 1-10), i want so if the unit makes exactly 5 dmg the unit wich is being hit looses 10 more hp, how do i do that?
10-14-2002, 08:14 PM#2
BoZo
I thought this would be easy but....... Ill just try to do it myself then.:////
10-14-2002, 08:43 PM#3
ph33rb0
Well honestly I don't know if it's easy to do with a trigger. I'd have to see. I don't know why you just don't give the unit critical strike though... would be so much easier.
10-14-2002, 08:49 PM#4
BoZo
yes but i dont want that :D
10-14-2002, 08:50 PM#5
Guest
Do you know variables well? That is the main thing you would have to use. Because you cant record exactly how much damage the hero does on the hero side. It mucst be on the unit attacked side.

So you might try fooling around w/ set Attacked= unit attacked

If Attacked health = x - 5 then do attacked health - 10.

You are getting into multiplue variables which can be either very useful or very stubborn. Ill try to help but im busy.

"Experimenting is the best you can do. You'll learn more that way" <- general quote from weaader.
10-15-2002, 06:44 PM#6
BoZo
weaaddar some help?
10-15-2002, 06:58 PM#7
weaaddar
It is unfortuantly messy (and would involve using 1 varaible and settinga tacks unit regen rate to zero) last I checked there is no way to tell the dmaage dealt. My suggestion just for a simple if Random int 1-10=5 then add -10 to life of attacked unit