[Reference] Index of Attacktypes, Damagetypes, and Weapontypes

Status
Not open for further replies.

PurgeandFire

zxcvmkgdfg
Reaction score
509
Index of Attacktypes, damagetypes, and weaponTypes:
Code:
[B][U]AttackTypes:[/U][/B]
- ATTACK_TYPE_CHAOS
- ATTACK_TYPE_HERO
- ATTACK_TYPE_MAGIC
- ATTACK_TYPE_MELEE
- ATTACK_TYPE_NORMAL
- ATTACK_TYPE_PIERCE
- ATTACK_TYPE_SIEGE

Code:
[B][U]DamageTypes:[/U][/B]
- DAMAGE_TYPE_ACID
- DAMAGE_TYPE_COLD
- DAMAGE_TYPE_DEATH
- DAMAGE_TYPE_DEFENSIVE
- DAMAGE_TYPE_DEMOLITION
- DAMAGE_TYPE_DISEASE
- DAMAGE_TYPE_DIVINE
- DAMAGE_TYPE_ENHANCED
- DAMAGE_TYPE_FIRE
- DAMAGE_TYPE_FORCE
- DAMAGE_TYPE_LIGHTNING
- DAMAGE_TYPE_MAGIC
- DAMAGE_TYPE_MIND
- DAMAGE_TYPE_NORMAL
- DAMAGE_TYPE_PLANT
- DAMAGE_TYPE_POISON
- DAMAGE_TYPE_SHADOW_STRIKE
- DAMAGE_TYPE_SLOW_POISON
- DAMAGE_TYPE_SONIC
- DAMAGE_TYPE_SPIRIT_LINK
- DAMAGE_TYPE_UNIVERSAL
- DAMAGE_TYPE_UNKNOWN

Code:
[B][U]WeaponTypes:[/U][/B]
- WEAPON_TYPE_AXE_MEDIUM_CHOP
- WEAPON_TYPE_CLAW_HEAVY_SLICE
- WEAPON_TYPE_CLAW_LIGHT_SLICE
- WEAPON_TYPE_CLAW_MEDIUM_SLICE
- WEAPON_TYPE_METAL_HEAVY_BASH
- WEAPON_TYPE_METAL_HEAVY_CHOP
- WEAPON_TYPE_METAL_HEAVY_SLICE
- WEAPON_TYPE_METAL_HEAVY_STAB
- WEAPON_TYPE_METAL_LIGHT_CHOP
- WEAPON_TYPE_METAL_LIGHT_SLICE
- WEAPON_TYPE_METAL_MEDIUM_BASH
- WEAPON_TYPE_METAL_MEDIUM_CHOP
- WEAPON_TYPE_METAL_MEDIUM_SLICE
- WEAPON_TYPE_METAL_MEDIUM_STAB
- WEAPON_TYPE_ROCK_HEAVY_BASH
- WEAPON_TYPE_WHOKNOWS
- WEAPON_TYPE_WOOD_HEAVY_BASH
- WEAPON_TYPE_WOOD_HEAVY_SLICE
- WEAPON_TYPE_WOOD_LIGHT_BASH
- WEAPON_TYPE_WOOD_LIGHT_SLICE
- WEAPON_TYPE_WOOD_LIGHT_STAB
- WEAPON_TYPE_WOOD_MEDIUM_BASH
- WEAPON_TYPE_WOOD_MEDIUM_SLICE
- WEAPON_TYPE_WOOD_MEDIUM_STAB

Please Read:
WEAPONTYPE_WHOKNOWS is actually equal to null, and it's used to make no sound when damaging.

The BJ set it to WHOKNOWS by default.

I hope this helps in some way! :D
 

SFilip

Gone but not forgotten
Reaction score
634
Well...can't you just open common.j and see these?
 

Sim

Forum Administrator
Staff member
Reaction score
534
Well...can't you just open common.j and see these?

Indeed.

What I suggest is that you make connections between this "reference" and UnitDamageTarget. Honestly those constants aren't really used elsewhere, so I suggest making the connections for people, and how to damage units efficiently and how you really want it damaged.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
It may be an index, but it doesn't explain what each does (weapontypes and attacktypes are the only ok).

Alright, I might add a few details and examples soon.

> WeaponTypes

Oh these are for playing sound ? I have to update my system, it even was useful in a way.

Yes, they are usually used to play sound. I have yet to find a function that doesn't have that as a purpose for weapontypes. :rolleyes:

Well...can't you just open common.j and see these?

Yes, but not many people open the common.j just to see a small constant, so I made this index thingy.

Indeed.

What I suggest is that you make connections between this "reference" and UnitDamageTarget. Honestly those constants aren't really used elsewhere, so I suggest making the connections for people, and how to damage units efficiently and how you really want it damaged.

Yes, they are mainly used in the "damage" category and not in many other ways but I thought this could be useful in way to some people.

I might add the conection to it later, but I'm too busy right now.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
nice but why you make that if jass.sourcefource.com have everything :/

It does not matter if it is there, and jass.sourceforge.net/ does not contain everything...

If you have never seen a tutorial that exists here remade here or on another site, you're insane unless you never went to another site.

Same thing applies to things such as this... :D

Thanks for the feedback though. :)
 

Sim

Forum Administrator
Staff member
Reaction score
534
wc3campaigns.net has some tutorials and spells we have here.

TheHiveWorkshop has some spells and tutorials we have here.

The more people that see it, the better! If it can help but 1 person, it hasn't been done in vain.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Ok, yes, it does have them. It has everything in the API browser... :\

I wonder what will happen if I delete my post... :(

Since this proves no use to most people here. :p

EDIT: Nvm... I can't delete this thread. But if a moderator could at least lock it, that would be nice.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top