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

NameValueBrief Description
X2_IW_CURSE_ENHANCEMENT_DURATION10
X2_IW_INTERJECTION_BATTLECRY_COUNT20
X2_IW_INTERJECTION_CHANCE_BATTLECRY8
X2_IW_INTERJECTION_CHANCE_EQUIP25
X2_IW_INTERJECTION_CHANCE_ONHIT_CRE20
X2_IW_INTERJECTION_CHANCE_UNEQUIP25
X2_IW_INTERJECTION_EQUIP_COUNT5
X2_IW_INTERJECTION_TYPE_BATTLECRY3
X2_IW_INTERJECTION_TYPE_EQUIP1
X2_IW_INTERJECTION_TYPE_ONHIT_CRE4
X2_IW_INTERJECTION_TYPE_TRIGGER5
X2_IW_INTERJECTION_TYPE_UNEQUIP2
X2_IW_INTERJECTION_UNEQUIP_COUNT5

Functions

NameBrief Description
IWClearConversationConditionInternal function. Wrapper for IWClearConversationConditions.
IWClearConversationConditionsClear current intelligent weapon starting conditions.
IWCreateIntelligentWeaponTransforms 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.
IWGetConversationConditionGets the starting conditions for current intelligent weapon conversation.
IWGetIntelligentWeaponEquipped
IWGetIsHotUChapter1Returns TRUE if we currently play Hordes of the Underdark Chapter 1.
IWGetIsHotUChapter2Returns TRUE if we currently play Hordes of the Underdark Chapter 2.
IWGetIsHotUChapter3Returns TRUE if we currently play Hordes of the Underdark Chapter 3.
IWGetIsInIntelligentWeaponConversationReturns TRUE if oPlayer is currently engaged in a conversation with his intelligent weapon.
IWGetQuestionAskedReturns the asked flag for question no. nQuestion, in sWeaponTag's conversation on the Player.
IWGetStaticEnhancementBonus
IWGetTalkedToGets the number of times a player has talked to the intelligent weapon.
IWGetWeaponDialogNameReturn the dialog ResRef name of the intelligent weapon passed in.
IWPlayRandomEquipComment
IWPlayRandomHitQuote
IWPlayRandomUnequipComment
IWPlayTriggerQuoteInternal function.
IWSetConversationConditionSets the starting conditions for the next intelligent weapon conversation.
IWSetCreatureHadOneLiner
IWSetEnhancementAndDrainLevel
IWSetIntelligentWeaponEquippedInternal function.
IWSetQuestionAskedSets the asked flag for question no. nQuestion, in sWeaponTag's conversation on the Player.
IWSetTalkedToSets the number of times a player has talked to the intelligent weapon.
IWSpawnInWeaponCreatureThis function returns OBJECT_INVALID.
IWStartIntelligentWeaponConversationStart 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.
IWSWrapperWrapper to use IWSpawnInWeaponCreature with DelayCommand.


  author: Mistress, contributor: Graewerld