• 🏆 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!

[Solved] Units cant attack ingame?

Status
Not open for further replies.
Level 8
Joined
Aug 21, 2009
Messages
408
Well, I have only been working on this map for an hour or so.. so its a bit of an eye sore. However, I've made a bunch of custom units based off of the default ones (like the rifleman or footman) and changed a bunch of their stats, but on my first test of the map I discovered they cant attack, nor do they have the attack command button thing. I'm not sure if I've changed something i wasn't supposed to, but i cant figure out what went wrong.. Any help is appreciated. You can find the units in the "custom units" section of the unit editor (all of them under human)
 
Last edited:
Level 28
Joined
Jan 26, 2007
Messages
4,789
Well, the damage formula is:

(A+B) - (A + (B * C))​

Where:
A = Combat - Attack X - Damage Base
B = Combat - Attack X - Damage Number of Dice
C = Combat - Attack X - Damage Sides per Die


So technically, you're correct (if B and C are both 0, then the formula would be A - A).
But Warcraft just doesn't want to make it easy for modders and decided that B and C may not be 0.

I always set A to (first damage-1), B to 1 and then C to (last damage - A).
So if you want 80-100 damage, then A = 79 (80-1), B = 1 (always) and C = 21 (100 - 79).
Nice and easy.

One problem: a damage upgrade increases the last damage by by C (so with 1 upgrade, that would become 81 - 121).
 
Status
Not open for further replies.
Top