• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[JASS] Need Explaination of a Jass Command

Status
Not open for further replies.
Level 18
Joined
Oct 18, 2007
Messages
929
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?
 
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
 
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--
 
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.
Back
Top