GetSlashingWeapon

From NWN Lexicon
Jump to navigationJump to search


GetSlashingWeapon(object)

Returns TRUE if the item is a slashing weapon.

int GetSlashingWeapon(
    object oItem
);

Parameters

oItem

Item to be determined.


Description

This function returns TRUE if the given object is slashing weapon, FALSE otherwise.



Remarks

This function is not compatible with custom content as its based on base item type.

The following weapons are considered to be slashing by this function:

  • BASE_ITEM_BASTARDSWORD
  • BASE_ITEM_BATTLEAXE
  • BASE_ITEM_DOUBLEAXE
  • BASE_ITEM_DWARVENWARAXE
  • BASE_ITEM_GREATAXE
  • BASE_ITEM_GREATSWORD
  • BASE_ITEM_HALBERD
  • BASE_ITEM_HANDAXE
  • BASE_ITEM_KAMA
  • BASE_ITEM_KATANA
  • BASE_ITEM_KUKRI
  • BASE_ITEM_LONGSWORD
  • BASE_ITEM_SCIMITAR
  • BASE_ITEM_SCYTHE
  • BASE_ITEM_SICKLE
  • BASE_ITEM_TWOBLADEDSWORD
  • BASE_ITEM_THROWINGAXE
  • BASE_ITEM_WHIP

Requirements

#include " x2_i0_spells "


Version

???

See Also

functions: 

GetBaseItemType

constants: 

BASE_ITEM_*



author: ShaDoOoW, editor: Mistress