x2_inc_intweapon
Central include file for the intelligent weapon functionality in Hordes of the Underdark.NOTE: This file includes x2_i0_spells and x2_inc_itemprop.
Constants
Name | Value | Brief Description |
---|---|---|
X2_IW_CURSE_ENHANCEMENT_DURATION | 10 | |
X2_IW_INTERJECTION_BATTLECRY_COUNT | 20 | |
X2_IW_INTERJECTION_CHANCE_BATTLECRY | 8 | |
X2_IW_INTERJECTION_CHANCE_EQUIP | 25 | |
X2_IW_INTERJECTION_CHANCE_ONHIT_CRE | 20 | |
X2_IW_INTERJECTION_CHANCE_UNEQUIP | 25 | |
X2_IW_INTERJECTION_EQUIP_COUNT | 5 | |
X2_IW_INTERJECTION_TYPE_BATTLECRY | 3 | |
X2_IW_INTERJECTION_TYPE_EQUIP | 1 | |
X2_IW_INTERJECTION_TYPE_ONHIT_CRE | 4 | |
X2_IW_INTERJECTION_TYPE_TRIGGER | 5 | |
X2_IW_INTERJECTION_TYPE_UNEQUIP | 2 | |
X2_IW_INTERJECTION_UNEQUIP_COUNT | 5 |
Functions
Name | Brief Description |
---|---|
IWClearConversationCondition | Internal function. Wrapper for IWClearConversationConditions. |
IWClearConversationConditions | Clear current intelligent weapon starting conditions. |
IWCreateIntelligentWeapon | Transforms the weapon passed in oWeapon into an intelligent weapon, preserving all item properties stored on the weapon. |
IWEndIntelligentWeaponConversation | End an intelligent weapon conversation, despawning the null human that wields the weapon and moving the weapon back into the player's hands. This should be called on the OnEnd and OnAbort scripts of the weapon dialog. |
IWGetConversationCondition | Gets the starting conditions for current intelligent weapon conversation. |
IWGetIntelligentWeaponEquipped | |
IWGetIsHotUChapter1 | Returns TRUE if we currently play Hordes of the Underdark Chapter 1. |
IWGetIsHotUChapter2 | Returns TRUE if we currently play Hordes of the Underdark Chapter 2. |
IWGetIsHotUChapter3 | Returns TRUE if we currently play Hordes of the Underdark Chapter 3. |
IWGetIsInIntelligentWeaponConversation | Returns TRUE if oPlayer is currently engaged in a conversation with his intelligent weapon. |
IWGetQuestionAsked | Returns the asked flag for question no. nQuestion, in sWeaponTag's conversation on the Player. |
IWGetStaticEnhancementBonus | |
IWGetTalkedTo | Gets the number of times a player has talked to the intelligent weapon. |
IWGetWeaponDialogName | Return the dialog ResRef name of the intelligent weapon passed in. |
IWPlayRandomEquipComment | |
IWPlayRandomHitQuote | |
IWPlayRandomUnequipComment | |
IWPlayTriggerQuote | Internal function. |
IWSetConversationCondition | Sets the starting conditions for the next intelligent weapon conversation. |
IWSetCreatureHadOneLiner | |
IWSetEnhancementAndDrainLevel | |
IWSetIntelligentWeaponEquipped | Internal function. |
IWSetQuestionAsked | Sets the asked flag for question no. nQuestion, in sWeaponTag's conversation on the Player. |
IWSetTalkedTo | Sets the number of times a player has talked to the intelligent weapon. |
IWSpawnInWeaponCreature | This function returns OBJECT_INVALID. |
IWStartIntelligentWeaponConversation | Start a conversation with the intelligent weapon. This will make the weapon jump out of the player's hands onto a null human and start the conversation. |
IWSWrapper | Wrapper to use IWSpawnInWeaponCreature with DelayCommand. |
author: Mistress, contributor: Graewerld