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

NameValueBrief Description
mySKILL_CRAFT_TRAP22
SKILL_CTRAP_ACIDCOMPONENTX1_WMGRENADE001Acid Flask.
SKILL_CTRAP_ELECTRICALCOMPONENTNW_IT_MSMLMISC11Quartz Crystal.
SKILL_CTRAP_FIRECOMPONENTX1_WMGRENADE002Alchemists Fire.
SKILL_CTRAP_FROSTCOMPONENTX1_IT_MSMLMISC01Coldstone.
SKILL_CTRAP_GASCOMPONENTX1_WMGRENADE004Choking Powder.
SKILL_CTRAP_HOLYCOMPONENTX1_WMGRENADE005Holy Water.
SKILL_CTRAP_NEGATIVECOMPONENTNW_IT_MSMLMISC13Skeleton Knuckles.
SKILL_CTRAP_SONICCOMPONENTX1_WMGRENADE007Thunderstone.
SKILL_CTRAP_SPIKECOMPONENTX1_WMGRENADE003Caltrops.
SKILL_CTRAP_TANGLECOMPONENTX1_WMGRENADE006Tanglefoot Bag.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ACID25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ACID_SPLASH20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_ELECTRICAL25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_FIRE25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_FROST20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_GAS35DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_HOLY20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_NEGATIVE20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_SONIC20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_SPIKE20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_AVERAGE_TANGLE20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ACID35DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ACID_SPLASH30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_ELECTRICAL35DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_FIRE35DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_FROST30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_GAS45DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_HOLY30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_NEGATIVE30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_SONIC30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_SPIKE35DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_DEADLY_TANGLE30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ACID15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ACID_SPLASH15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_ELECTRICAL20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_FIRE20DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_FROST15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_GAS30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_HOLY15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_NEGATIVE15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_SONIC15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_SPIKE5DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_MINOR_TANGLE15DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ACID30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ACID_SPLASH25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_ELECTRICAL30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_FIRE30DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_FROST25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_GAS40DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_HOLY25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_NEGATIVE25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_SONIC25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_SPIKE25DC needed to make the trap kit.
SKILLDC_TRAP_BASE_TYPE_STRONG_TANGLE25DC needed to make the trap kit.
SKILL_TRAP_AVERAGE3Trap type.
SKILL_TRAP_DCAVERAGE2002Custom token.
SKILL_TRAP_DCDEADLY2004Custom token.
SKILL_TRAP_DCMINOR2001Custom token.
SKILL_TRAP_DCSTRONG2003Custom token.
SKILL_TRAP_DEADLY7Trap type.
SKILL_TRAP_MINOR1Trap type.
SKILL_TRAP_STRONG5Trap type.

Functions

NameBrief Description
ClearTrapMakingInternal function. Contains a single function call to ClearAllActions.
DestroyNumItemsDestroys the indicated number of items.
skillCTRAPCreateTrapKitCreates 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.
skillCTRAPGetCurrentTrapViewReturns the string of the current trap view.
skillCTRAPGetCurrentTrapViewEqualsReturns TRUE if input string is equal to the current trap view.
skillCTRAPGetHasComponentReturns TRUE if the target object has enough components for this type of trap.
skillCTRAPSetCurrentTrapViewCalled 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.
skillCTRAPTakeComponentDestroys the specified item.


  author: Mistress, contributor: Graewerld