Warcraft III resources & community, 2003–2006 · archived

'Miss' System need help

13 posts
#1

'Miss' System need help

I have been working on an ORPG for 8 months now and it is starting to take shape. For my map I need a 'miss' system, but I just can't get one working. I already have the miss system setup but I can't get the attacking unit to actually miss. :? Any suggestions?
#2
What is this "miss" system? What is supposed to happen?

On top of my head I'd say give the units evasion... :wink:
#3
What you could do is give the unit 100% evasion, and every unit a custom critical strike (no miss enabled, 1 x normal damage). Then you can change the chance of each unit's critical strike to give each unit type a different accuracy.
#4
But then the problem is that it will say the damage over your head (which may be an added bonus, if you want that to happen :P)
#5
I guess it's possible to change transparency of that crit. text tag
#6
Here's how my system works. It gets your attack rating and the defending monster's lvl. I then assign a % according to the lvl of monster and a % to the attack rating. Then it is [50 + %attack - %lvl]. Then the trigger rolls a d100 and if the d100 is lower than the hit%, he hits else he misses.

I want to avoid using ability's such as evasion because 1) it takes 1 of the 7 ability slots and 2) what if the defending monster has more than 1 player attacking it? Because 1 missed they all miss.

I need a way I can make the attacking unit miss by trigger. And please no 'add ability' suggestions (Read above). A JASS of 'Add Buff' would be nice.

PS: I already have a system in place to show the damage dealt to a monster.
#7
Low-Life -- In that case, I'm pretty sure you'd have to modify the SLK tables, and that would be fairly useless as if you had any other crit in your map it would overwrite that too :P
#8
Other crits could be emulated with triggers somehow
#9
There's a sample d&d combat system in the maps somewhere on this site, I think in systems, which does this. It uses a dummy unit that casts curse on the unit that is supposed to miss. The curse only lasts 1 second so it's enough to make that attack miss and then go away. That may be what you're looking for.
#10
So could this.
#11
There's a sample d&d combat system in the maps somewhere on this site, I think in systems, which does this. It uses a dummy unit that casts curse on the unit that is supposed to miss. The curse only lasts 1 second so it's enough to make that attack miss and then go away. That may be what you're looking for.


That is actually exactly what I was trying to do and it was my original system for missing but the dummy caster doesn't cast curse fast enough. The casting for the curse ability time was set to 0. The attacking Unit would finish his attack then he'd get the curse spell on him. :(

There's no fonction to cast a spell instantly. Wish there was.
#12
Well take a look at the map anyway http://www.wc3sear.ch/?p=Spells&ID=1660 and maybe its specifics will help.

Otherwise you could emulate the damage with triggers, but that may complicate things more than you want.
#13
I am happy to say I finally found the problem with the dummy casting system. The curse would be to late the 'Animation Damage Point' was set to 0.234 on the unit. I simply changed it to 0.500 and voila! it works! :D