X0 inc skills

From NWN Lexicon
Jump to: navigation, search



x0_inc_skills

Library functions for all the designer driven skills.

Uses CustomTokens #2001-2004.

KNOWN ISSUE: always takes an entire stack.

NOTE: This file includes nw_i0_plot .

Constants

Name Value Brief Description
mySKILL_CRAFT_TRAP 22
SKILL_CTRAP_ACIDCOMPONENT X1_WMGRENADE001 Acid Flask.
SKILL_CTRAP_ELECTRICALCOMPONENT NW_IT_MSMLMISC11 Quartz Crystal.
SKILL_CTRAP_FIRECOMPONENT X1_WMGRENADE002 Alchemists Fire.
SKILL_CTRAP_FROSTCOMPONENT X1_IT_MSMLMISC01 Coldstone.
SKILL_CTRAP_GASCOMPONENT X1_WMGRENADE004 Choking Powder.
SKILL_CTRAP_HOLYCOMPONENT X1_WMGRENADE005 Holy Water.
SKILL_CTRAP_NEGATIVECOMPONENT NW_IT_MSMLMISC13 Skeleton Knuckles.
SKILL_CTRAP_SONICCOMPONENT X1_WMGRENADE007 Thunderstone.
SKILL_CTRAP_SPIKECOMPONENT X1_WMGRENADE003 Caltrops.
SKILL_CTRAP_TANGLECOMPONENT X1_WMGRENADE006 Tanglefoot Bag.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ACID 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ACID_SPLASH 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ELECTRICAL 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_FIRE 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_FROST 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_GAS 35 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_HOLY 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_NEGATIVE 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_SONIC 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_SPIKE 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_TANGLE 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ACID 35 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ACID_SPLASH 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ELECTRICAL 35 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_FIRE 35 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_FROST 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_GAS 45 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_HOLY 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_NEGATIVE 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_SONIC 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_SPIKE 35 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_TANGLE 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ACID 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ACID_SPLASH 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ELECTRICAL 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_FIRE 20 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_FROST 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_GAS 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_HOLY 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_NEGATIVE 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_SONIC 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_SPIKE 5 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_TANGLE 15 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ACID 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ACID_SPLASH 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ELECTRICAL 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_FIRE 30 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_FROST 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_GAS 40 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_HOLY 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_NEGATIVE 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_SONIC 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_SPIKE 25 DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_TANGLE 25 DC needed to make the trap kit.
SKILL_TRAP_AVERAGE 3 Trap type.
SKILL_TRAP_DCAVERAGE 2002 Custom token.
SKILL_TRAP_DCDEADLY 2004 Custom token.
SKILL_TRAP_DCMINOR 2001 Custom token.
SKILL_TRAP_DCSTRONG 2003 Custom token.
SKILL_TRAP_DEADLY 7 Trap type.
SKILL_TRAP_MINOR 1 Trap type.
SKILL_TRAP_STRONG 5 Trap type.


Functions

Name Brief Description
ClearTrapMaking

Internal function. Contains a single function call to ClearAllActions .

DestroyNumItems Destroys the indicated number of items.
skillCTRAPCreateTrapKit Creates a trap kit and removes the appropriate number of reagents.

Must perform the skill roll and if fail by 5 or more destroy the reagent.
skillCTRAPGetCurrentTrapView Returns the string of the current trap view.
skillCTRAPGetCurrentTrapViewEquals Returns TRUE if input string is equal to the current trap view.
skillCTRAPGetHasComponent Returns TRUE if the target object has enough components for this type of trap.
skillCTRAPSetCurrentTrapView Called right before the node in dialog where the trap types and DC's are shown.

It sets the trap custom tokens to appropriate values based on the DC constants defined above.
skillCTRAPTakeComponent Destroys the specified item.



  author: Mistress, contributor: Graewerld