HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how to trigger misses?

07-11-2006, 12:18 AM#1
N3mezis
Hi !

First of all I wanna thank for opening the thread :P

Ok, here we go:
Im trying to make a skill like swordsmanship (who knows Ultima Online, would know what i mean, hopefully). I tried to do a little workaround to trigger misses:
When a unit gets attacked it would be healed for the demage it took by the attacking unit, if the attacking unit misses.
But there occur some freaky bugs when i tried this.
So, my question is now, if there is any way to trigger misses and weather somebody could make an example map.

So far N3mezis

Thanks for watchin and if u didnt understand what i meant, plz pm me
and sry for bad english :P
07-11-2006, 12:33 AM#2
aquilla
I've never tried triggering misses, can't you use Evasion?
07-11-2006, 12:40 AM#3
N3mezis
Hi !

Sure i can use evasion, but i try to do it like its done at Ultima Online.
There u have the skill swordsmanship, you level it by using a sword and fighting with it. i call that learning by doing :P so, the skill got 1000 levels: it starts with 0.1% and ends with 100.00% and maybe u find a scroll to level your skillcap to 120.00%. I would go crazy if i have to do 1200 levels per skill :D
So i'ld like to trigger it ^^

so far N3m
07-11-2006, 02:32 AM#4
Daxtreme
The maximum level of skills is 100 I think :P
07-11-2006, 02:39 AM#5
aquilla
Ehm, right. I tried triggering it. I used a timer and return-bug in JASS to be able to avoid the fact that units can't get the hp they lost restored (if you set hp to full it will become max hp - damage taken, hence the timer with the minimal delay). For some reason the "A unit enters playable map area"-trigger won't the newly created unit to the Unit takes damage-trigger, though it clearly does fire (might be because of the order check I did to make sure it wasn't a spell that was cast). And finally, doubt it's possible to prevent the sounds from playing.

Feel free to check it out below. Probably scared you into using Evasion now, eh?

Edit: You can probably shift-click to get higher levels. There is a slight chance that the chance of Evasion is rounded to the nearest 5 though, I know Critical Strike is that for some reason.
Attached Files
File type: w3mUnitMisses.w3m (17.9 KB)
07-11-2006, 04:40 AM#6
FatalError
What I would do is use the A Unit Takes Damage event, then get the damage, and add that amount of life to the unit. Of course, this would mean that you would not be able to evade fatal attacks (ones that would kill you), and it would also trigger for spells. Still, it's what I would use (with a few extra triggers to get rid of the first problem).
07-11-2006, 04:52 AM#7
Alevice
I guess this could help: http://www.wc3jass.com/viewtopic.php?t=2653