• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] [working] Accuracy Trigger

Status
Not open for further replies.
Level 6
Joined
May 27, 2007
Messages
186
This trigger is for large armies. The attacking unit's custom value is for 'Burst' and 'Ammo Size'.

This trigger works online.
Tested with a total of 2 players. A total of 75 - 150 units were attacking each other at the same time, all using this code whenever they attacked. The unit's attack speed was set at .6

Variables:
BurstFire [Interger]
AttackerLocation
 
Last edited:
Level 6
Joined
May 27, 2007
Messages
186
Please use trigger tags for triggers. And what exactly does your trigger do?

It's an accuracy trigger. Whenever a unit is attacked (Units do not actually do any damage) this trigger will run.
It adds burst fire, reloading time (including the clip size) and than calculates the distance between the attacking unit and attacked unit.
Than it devides that to get a small little number such as 50
It now has a chance to hit anywhere near the attacking unit, offset by -50 - 50 X -50 - 50 Y

It's difficult to describe actually, I'll add the trigger into a blank map with a few triggers and post it here.
 
Level 3
Joined
Aug 19, 2005
Messages
47
It is nice, but it does fixed damage instead of each unit's attack damage. And I guess it doesn't show any projectiles.
 
Level 13
Joined
Feb 28, 2007
Messages
477
The trigger is very simple to do; anyone half-good at GUI could do it. What WindexGlow did above the call of duty, however, is make the trigger so darn clean. This is probably the most optimized way to do this kind of trigger, the exception being using JASS.
 
Level 6
Joined
May 27, 2007
Messages
186
It does fix damage, so the unit won't able to have any damage.
The unit's normal projectile is turned to false. And the unit will also need the passive ability 'Cold breathe' (or whatever the frost worm in wc3 has)
The ability allows you to change the attack projectile of the unit, without having to be cast.
 
Status
Not open for further replies.
Top