HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Passive miss, evade opposite

06-13-2003, 12:26 AM#1
box
OK. I wanted to make a spell that was the exact opposite of evade, where the unit has a chance to miss. Could someone help me with this/ I was thinking it might be something from curse, etc.
06-13-2003, 12:55 AM#2
Guest
I don't think that possbile unless you just used a modified curse lowering the % to hit for each target cursed.

Its just theres no skill that increases your chances of hitting:P(for good reason:P).
06-15-2003, 03:00 AM#3
Son-Of-Impurity
Quote:
Originally posted by box
OK. I wanted to make a spell that was the exact opposite of evade, where the unit has a chance to miss. Could someone help me with this/ I was thinking it might be something from curse, etc.


curse yes. evasion? no! if would make your own hero miss.-not a good spell if you ask me
06-15-2003, 12:30 PM#4
box
thats the point. Not for a hero anyways. I'm trying to make a map where long-range doesnt ALWAYS hit. so im using evade and cursevade. curious if anyone knows if this is do-able
06-15-2003, 12:46 PM#5
Guest
Just thought this out a bit more, and I figure a - evade would increase the enemies chance of hitting you:ggani:
06-15-2003, 05:05 PM#6
DemonicSoul
i dont think this is possibe because u cant make it count only for ranged units or as far as i know anyways, altho u could make for all, and ranged units miss 15% of the time firing up hill (or is it 25%? i dont remember, but it says in miscdata.txt)
06-15-2003, 05:28 PM#7
PitzerMike
Well .. you could do it the other way round.

Give everyone else evasion
06-16-2003, 12:02 AM#8
box
i'm basing the engine on the warhammer game. so there is a 50% chance someone will miss, and a 50% chance that the actuall hit won't wound the guy. so i need evasion to represent not being wounded, and miss to represent them missing. just clearing things up.
06-16-2003, 12:43 AM#9
Son-Of-Impurity
sorry... my bad
06-16-2003, 06:23 AM#10
FM_TertiaryEye
Evade is centered on one single hero, so its not like you can reverse it to make a curse aura, but there is something you can do with triggers...

What you can do is to have your units use damage triggers and handle the missing entirely through triggers. (warhamer doesnt have a vast amount of units per battle right?). Well anyway, whenever a unit takes damage you can either restore the units damage and put some kind of miss SFX on the unit causing the damage, or you can put some kind of shield sfx on the unit taking the damage.

Now, damage triggers have to be registered at runtime and having a damage trigger on over 30 different units will be quite expensive, so you have to decide depending on the scale of your map.

So how do you know if a unit is a ranged unit? Set a custom point value for ranged units. Make it something like 101 (nobody pays attention to the scoring in custom games anyway). Then you just check to see if the attacker has a 101, and if he doesnt you exit the trigger in the conditions. (exiting in the condition will save you some invocation time).

Now as far as everything else goes the only other way you can affect ranged units in a type of aura is to use a negative trueshot, but that of course wont have the exact effect you need.

Eye
06-16-2003, 09:38 PM#11
DemonicSoul
are u creating a turn based system or are u using the normal stuff?
06-16-2003, 10:08 PM#12
Arche
you could always make a curse with like 99999999 duration and then make a unit cast it on them.
06-24-2003, 05:57 AM#13
FM_TertiaryEye
Oh, something i forgot to mention. I use this a lot to make "cursed" items, a critical strike % of 25 that does 0x damage works as an awesome passive curse.

This is pretty neat if you want to give players powerful items that have a side effect of making them miss every once and a while.

Eye
07-13-2003, 09:21 AM#14
Arche
Quote:
Originally posted by qmr2cool
yo on critical strike (with TFT)one of the data fields for it says chance to miss. just make the field for chane to critcal strike 0 and then the chance to miss whatever.


That is probably chance for the enemy to miss him. The addition of Drunken Brawler made them do that.
07-13-2003, 03:07 PM#15
Electromancer
No, I'm pretty sure its the chance for the person to miss. I looked, and the panderian has this as well, but he also has a regular chance to miss for units attacking him. Still, it could be a funky field that does shit, since we are talking blizzard here. Plus i think its the chance to miss when you actually do crit. Not sure, if you wanna spend some time testing it, be my guest. You can make multiple abilities all with different values, create some units with mega hp and divine armor, and see what happens. Note that only one ability of a certain code can go on a unit at a time.