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

[JASS] Need Explaination of a Jass Command

Status
Not open for further replies.
Level 18
Joined
Oct 18, 2007
Messages
930
ok the command is this
JASS:
UnitDamageTarget(unit wichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype DamageType,weapontype Weapontype) returns boolean

Code:
I need help to fill inn:
-the Widget "Target"
-the "boolean attack"
-the "boolean ranged"
-the attacktype "attacktype"
-the damagetype "damagetype"
-the weapontype "WeaponType"
anyone got any ideas?
 
Level 16
Joined
Feb 22, 2006
Messages
960
which unit, is the unit which deals the damage, target should be clear to you, real amount is the damage

ok boolean attack means: is it a melee attack, if it is so, put true
boolean range is the same for range, is it a range attack, if so put true
attacktype,damagetype,weapontype are constants.... for example for attacktype ATTACK_TYPE_NORMAL....DAMAGE_TYPE_NORMAL.....WEAPON_TYPE_WHOKNOWS

thats it
 
Level 27
Joined
Feb 22, 2006
Messages
3,052
Attack type is the only one that really has any influence from what I can tell, it dictates how the armor responds to the damage on the widget target (i.e. normal is most effective against medium armor, magic against heavy, pierce against light, etc.). The rest, as far as I know, have very limited or no effect.
--donut3.5--
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Attack type has to do with armor type reductions. Damage type has to do with behaviour relative to Ethereal/Magic Immune/counting Armor. Weapon type is the attack sound (WEAPON_TYPE_WHOKNOWS is equivalent to null) - in the editor, some examples are Metal Light Slash and Wood Heavy Bash.

Boolean attack and boolean ranged... their use is rather unclear.

And donut, a widget is 'A dynamic game object with life', so yes, unit+item+destructable.
 
Status
Not open for further replies.
Top