HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a guy miss

10-09-2003, 01:21 AM#1
Dragon
I want certain guys to miss every once and awhile when they shoot (I want to give the rocket launcher a high damage and splash but give it another down-side).

Could I do this with a perminant curse or that brewmaster skill that makes them miss on them with the % lowered?
10-09-2003, 01:29 AM#2
Supra God CrK
well i don't know what permanent curse or the brewmaster skill does...i'm not familar with all the skills yet sadly... but i know you could make the demon hunter evasion a normal abilty and set the % to what ever you want the miss percent to be and than whenever a unit with the rocket launcher attacks give it to the target of his attack than once it misses or takes damage remiove the skill. would work but if that unit is getting jumped it could backfire.
10-09-2003, 01:49 AM#3
Dragon
Permanant curse isn't a spell. I could just make them have curse forever, which makes the unit miss x % of the time. (33%)

I'm thinking I could mod this and A. Give it to the unit as a skill to make him miss every once and awhile

-or-

B. Make a caster cast it on him when he is built or something.
10-09-2003, 04:06 AM#4
Reb
Quote:
Originally posted by ThePersonThing

I'm thinking I could mod this and A. Give it to the unit as a skill to make him miss every once and awhile



Skills like Bash and Criticle Strike have fields with a chance to miss setting. Would be the easiest way to do it i would think
10-09-2003, 05:27 AM#5
Saethori
Indeed. Base it off of Bash.

Also, since you're using Bash anyway, I think you should give the rocket attack a chance to stun for a bit. ^^ After all, it *is* supposed to be powerful.

I think a good idea would be to call the skill 'Power Blast', use icon of Fragmentation Shards, and mention that the unit's attacks deal extra damage and have a chance to stun, but miss so-and-so often.
10-09-2003, 05:36 AM#6
Supra God CrK
i think base the skill off of permanent curse or whatever and just turn it into a normal skill than give it to the unit with no icon for it. than it won't take up a space and you can just inform them of thier chance to miss through triggers. i think that is the best way to go.
10-09-2003, 01:14 PM#7
Zachary_Shadow
I made a trigger to help out this problem once... Lemme see if I can remember, very simple:

Event:
A unit is attacked
Conditions:
Unit attacking = YourRocketLauncher
Actions:
Add ability to attacked unit = Evasion (Or any other modified evasion skill, to set the % of miss you want)
wait 0.15 seconds
Remove ability from attacked unit = Evasion

The unit that is attacked, will now recive evasion when attacked by yourrocketlauncher, then have it removed again.

And this works, I tested it out and it works wonderfull :)

Gl
10-09-2003, 06:28 PM#8
Supra God CrK
zach that is exactly what i told him to do earlier but i am a big guy on making sure there is no possible bugs...even if they are nearly impossible to create(such as this one) i like to make sure it is not possible. if you gave the unit evasion for .15 seconds what if someone else was attacking him at the exact same time you are and ur rocket hits but the guy without the rocket launcher misses. that would be annoying and wierd....and also you have to think about splash damage....i don't know if he wants the splash damage to be able to miss. but i know that if you are attacking someone he shoots and he dodges the rocket but you get hit by splash and there is no way to avoid it that would be annoying. i can't think of a way to add evasion to.....ok wait i take that back you could just add evasion to all units in range of attacked unit but that would still be annoying when everyone starts to miss and they don't have a rocket launcher.
10-09-2003, 07:43 PM#9
KaTTaNa
I have an idea that might make it a little realistic, but I'm not sure if it will work.
If he deals splash damage, he should have the ability to attack ground. Try these triggers: (Again, not sure if it works)
Code:
Trigger
  Rocket Attack Ground
Events
  [i]None[/i]
Conditions
  [i]None[/i]
Actions
  Unit - Order (Triggering unit) to Attack ground at ((Position of (Target unit)) offset by (Random real between 0.00 and 120.00) in (Random angle) degrees)

--------------------------------

Trigger
  Init Rocket Launchers
Events
  A unit enters (Playable map area)
Conditions
  (Unit-type of (Entering unit)) Equal to Rocket Launcher
Actions
  Trigger - Add to Rocket Attack Ground <gen> the event: (Entering unit) Acquires a target
This should make him shoot at a place near the target, so it will actually be realistic. I havn't tried this, but it's worth a try I think.
10-09-2003, 08:14 PM#10
Zachary_Shadow
The time can be set down to 0.01 second, not a problem. Should someone else be attacking at the exact same time, and should happen to miss...it won't be alot that is going to happen.

Think you asked for this trigger a while back...not sure if it was you... But I did make it, and test it, and never had any problems with it.

Other ways to do this will be too massive and strange...this is by far the best way... Just make the rocket launchers shoot very slowly..ohh and btw, Splash can't be dodged if he is hit, it will splash, if not, it won't....
10-09-2003, 09:10 PM#11
chemo
if u wants the guy to miss just slow down the projectile speed... very simple...
10-09-2003, 10:58 PM#12
Illithid
first, if a unit is targetted by a splash damage attack and the attack misses due to evasion, the unit will still take the splash damage amount. As far as giving the unit a miss chance, why don't you just leave it as it is in game for units like mortar teams, The unit fires projectiles that don't track. So stationary targets are always hits, moving evasive targets will get missed, then you just have to adjust projectile speed to come up with a nice balance on the chance to hit.