BACKUP ~CrossClassKits/backup~
AUTHOR ~ced2168@columbia.edu~

VERSION ~1.0~

//MODDER

AUTO_TRA ~CrossClassKits/tra/%s~

/*
 * This mod does not use any chapter checks
 *
ALWAYS
  ACTION_IF GAME_IS ~eet~ BEGIN
    OUTER_SET bg2_chapter = 12
  END ELSE BEGIN
    OUTER_SET bg2_chapter = 0
  END
  OUTER_FOR (i=1; i<=10; i=i+1) BEGIN
    OUTER_SET bg2_chapter = bg2_chapter + 1
    OUTER_SPRINT name_source ~bg2_chapter_%i%~
    OUTER_SET EVAL ~%name_source%~ = bg2_chapter
  END
END
*/

LANGUAGE   ~English~
           ~English~
           ~CrossClassKits/tra/English/CrossClassKits.tra~

BEGIN "Cross Class Kits" //
INCLUDE "CrossClassKits/lib/fl#add_kit_ee.tpa"


ADD_KIT ~USAF00~
	~USAF00 1 1 1 1 1 1 1 1~
      ~USAF00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 5 5 5 5 1 1 1 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USAF00 9 0 0 0 0 0~
	~USAF00 0 0 0 0 0 0~
	~USAF00 15 0 0 0 0 0~
        ~USAF00 15 0 0 0 0 0~
	~USAF00 1 1 1 1 1 1 1 1 1~
	~USAF00 0 1 1 1 1 0~
	~CrossClassKits/CLABUSAF.2da~
	~K_F_H	K_F_D   K_F_G   K_F_E   K_F_HE   K_F_HL   K_F_HO~
	~0x00008000 2~
	~FI0~
	~LEAT14 * HELM07 BAG24 RING06 RING31 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 HAMM07 SW1H39 STAF08~

	SAY ~archer~
	SAY ~Archer~
	SAY ~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> proficiency with melee weapons and armor.

Advantages:
- +1 to hit and damage rolls with any missile weapon every 3 levels.
- May achieve Grand Mastery (5 slots) in longbows, shortbows, crossbows, darts, and slings.
- May use the Called Shot ability once per day. Gains one use at level 4 and an additional use every 4 levels thereafter.

CALLED SHOT: All successful ranged attacks within the next 10 seconds have the following cumulative effects besides normal damage, according to the level of the Archer:
 4th level: -1 penalty to target's THAC0.
 8th level: -1 penalty to target's Saving Throws vs. Spell.
 12th level: -1 penalty to the target's Strength score.
 16th level: +2 bonus to damage roll.

Disadvantages:
– May only wear leather, studded leather, and hide armor.
– May only become Proficient (one slot) with melee weapons.
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> proficiency with melee weapons and armor.~)
	STR_VAR
		kit_name = ~USAF00~
		clswpbon = ~1 0 2~
		numwslot = ~4~
		clascolr = ~30 91 93 23 93~
		hpclass = ~HPWAR~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END



ADD_KIT ~USAP00~
	~USAP00 1 1 1 1 1 1 1 1~
      ~USAP00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 5 5 5 5 5 1 1 1 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USAP00 12 0 0 0 12 17~
	~USAP00 0 0 0 0 0 0~
	~USAP00 0 0 0 0 0 0~
        ~USAP00 0 0 0 0 0 0~
	~USAP00 1 0 0 0 0 0 0 0 0~
	~USAP00 0 0 0 0 0 0~
	~CrossClassKits/CLABUSAP.2da~
	~K_P_H	K_P_D   K_P_G   K_P_E   K_P_HE   K_P_HL   K_P_HO~
	~0x00008000 6~
	~PA0~
	~LEAT14 * HELM07 BAG24 RING06 RING31 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 HAMM07 SW1H39 STAF08~

	SAY ~archer~
	SAY ~Archer~
	SAY ~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> proficiency with melee weapons and armor.

Advantages:
- +1 to hit and damage rolls with any missile weapon every 3 levels.
- May achieve Grand Mastery (5 slots) in longbows, shortbows, crossbows, darts, and slings.
- May use the Called Shot ability once per day. Gains one use at level 4 and an additional use every 4 levels thereafter.

CALLED SHOT: All successful ranged attacks within the next 10 seconds have the following cumulative effects besides normal damage, according to the level of the Archer:
 4th level: -1 penalty to target's THAC0.
 8th level: -1 penalty to target's Saving Throws vs. Spell.
 12th level: -1 penalty to the target's Strength score.
 16th level: +2 bonus to damage roll.

Disadvantages:
– May only wear leather, studded leather, and hide armor.
– May only become Proficient (one slot) with melee weapons.
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> proficiency with melee weapons and armor.~)
	STR_VAR
		kit_name = ~USAP00~
		clswpbon = ~1 0 2~
		numwslot = ~3~
		clascolr = ~25 28 57 2 24~
		hpclass = ~HPWAR~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END

ADD_KIT ~USAT00~
	~USAT00 1 1 1 1 1 1 1 1~
      ~USAT00 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 2 0 1 0 0 0 0 1 5 0 5 5 5 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USAT00 0 9 0 0 0 0~
	~USAT00 0 0 0 0 0 0~
	~USAT00 0 15 0 0 0 0~
        ~USAT00 0 15 0 0 0 0~
	~USAT00 1 1 1 1 1 1 1 1 1~
	~USAT00 1 1 1 0 0 0~
	~CrossClassKits/CLABUSAT.2da~
	~K_T_H	K_T_D   K_T_G   K_T_E   K_T_HE   K_T_HL   K_T_HO~
	~0x08000000 4~
	~TH0~
	~LEAT14 * * BAG28 RING06 RING05 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN10,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~archer~
	SAY ~Archer~
	SAY ~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> conventional skills as a rogue.

Advantages:
- +1 to hit and damage rolls with any missile weapon every 3 levels.
- May achieve Grand Mastery (5 slots) in shortbows, crossbows, darts, and slings.
- May achieve Specialization (2 slots) in daggers.
- May use the Called Shot ability once per day. Gains one use at level 4 and an additional use every 4 levels thereafter.

CALLED SHOT: All successful ranged attacks within the next 10 seconds have the following cumulative effects besides normal damage, according to the level of the Archer:
 4th level: -1 penalty to target's THAC0.
 8th level: -1 penalty to target's Saving Throws vs. Spell.
 12th level: -1 penalty to the target's Strength score.
 16th level: +2 bonus to damage roll.

Disadvantages:
– May not backstab.
– Only gains 15 skill points per level (30 at level 1).
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~ARCHER: The Archer is the epitome of skill with the bow—the ultimate marks<PRO_MANWOMAN>, able to make almost any shot, no matter how difficult. To become so skilled with the bow, the Archer has had to sacrifice some of <PRO_HISHER> proficiency with melee weapons and armor.~)
	STR_VAR
		kit_name = ~USAT00~
		backstab = ~1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1~
		clswpbon = ~0 0 3~
		numwslot = ~2~
		thiefskl = ~30 15~
		traplimt = ~7~
		clascolr = ~24 99 169 2 93~
		clasiskl = ~10 10 10 10 10 10 10~
		thiefscl = ~100 100 100 100 100 100 100 0~
		hpclass = ~HPROG~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
		sneakatt = ~1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1~
		crippstr = ~0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
END


COPY_EXISTING ~weapprof.2da~ ~override~
  COUNT_2DA_COLS cols
  SET kit_cols = (cols - 1) // because the row with the class/kit names has one fewer column
  FOR (col = 1; col < kit_cols; ++col) BEGIN
    READ_2DA_ENTRY 0 col kit_cols ~weapprof_kit~
    PATCH_IF (~%weapprof_kit%~ STRING_EQUAL_CASE ~feralan~) BEGIN
      SET archer_col = (%col% + 1) // because rows to be patched have one more column than the class/kit row
      SET_2DA_ENTRY 26 archer_col cols 5 // darts are row 26
      SET_2DA_ENTRY 27 archer_col cols 5 // sling is row 27
    END
  END
IF_EXISTS BUT_ONLY

/*

ADD_KIT ~USPS00~
	~USPS00 1 1 1 1 1 1 1 1~
      ~USPS00 0 1 0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USPS00 0 0 0 15 0 0~
	~USPS00 0 0 0 1 0 0~
	~USPS00 0 0 0 0 0 0~
        ~USPS00 0 0 0 18 0 0~
	~USPS00 1 1 1 1 1 1 1 1 1~
	~USPS00 0 1 1 1 1 0~
	~CrossClassKits/CLABUSPS.2da~
	~K_F_H	K_F_D   K_F_G   K_F_E   K_F_HE   K_F_HL   K_F_HO~
	~0x00000000 2~
	~US8~
	~PLAT05 * * BAG28 RING06 RING05 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~psionicist~
	SAY ~Psionicist~
	SAY ~A Psionicist uses <PRO_HISHER> mind to control and manipulate the world around <PRO_HIMHER>. Generally self-taught, Psionicists train their brains and sharpen their latent powers, gaining powers that are alien even to wizards and priests. A psionicist may levitate objects, create energy from nothing, and even seize control of the minds of other sentient beings with nothing more than a thought.

CLASS FEATURES:

Advantages:

- +1 Intelligence
- Gains special innate abilities as the Psionicist gains levels. All of a Psionicist's powers are instant-casting and bypass magical resistance:
- Level 1: Mind Blast. Gains an extra casting every 3 levels after.
- Level 2: Ballistic Attack. Gains an extra casting every 4 levels after.
- Level 3: Ego Whip. Gains an extra casting every 5 levels after.
- Level 4: Detonate. Gains an extra casting every 6 levels after.
- Level 5: Psionic Blast. Gains an extra casting every 7 levels after.
- Level 6: Psionic Disjunction. Gains an extra casting every 8 levels after.
- Level 7: Psionic Domination. Gains an extra casting every 9 levels after.
- Level 8: Cure Serious Wounds. Gains an extra casting every 10 levels after.
- Level 9: Planar Travel. Gains an extra casting every 11 levels after.
- Level 10: Psionic Maze. Gains an extra casting every 12 levels after.

Disadvantages:

- Can only attain Proficiency (one point) any weapon or weapon style
- Only gains 1d6 HP per level

High-Level Abilities:

- Psionic Shield
- Mental Deconstruction
- Psionic Mantle
- Astral Comet
- Psionic Stasis
- Diffusion
- Psychometabolism
- Psionic Backlash

Prime Requisite For Dual-Classing: Intelligence

- Hit Die: d6
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~A Psionicist uses <PRO_HISHER> mind to control and manipulate the world around <PRO_HIMHER>. Generally self-taught, Psionicists train their brains and sharpen their latent powers, gaining powers that are alien even to wizards and priests. A psionicist may levitate objects, create energy from nothing, and even seize control of the minds of other sentient beings with nothing more than a thought.~)
	STR_VAR
		kit_name = ~USPS00~
		clswpbon = ~1 0 3~
		numwslot = ~4~
		clascolr = ~30 91 93 23 93~
		hpclass = ~HPROG~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END


COPY ~CrossClassKits/tables/CLABUSPS.2da~ ~override~

*/


ADD_KIT ~USSM01~
	~USSM01 1 1 1 1 1 1 1 1~
      ~USSM01 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USSM01 9 9 0 0 9 0~
	~USSM01 0 0 0 0 0 0~
	~USSM01 0 0 0 0 0 0~
        ~USSM01 0 0 0 0 0 0~
	~USSM01 1 1 1 0 0 0 0 0 0~
	~USSM01 0 0 0 0 0 0~
	~CrossClassKits/CLABUSSM.2da~
	~K_MN_H~
	~0x00004000 20~
	~Fi0~
	~* * * BAG23 RING06 RING29 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~stalker~
	SAY ~Stalker~
	SAY ~STALKER: Stalkers serve as covert intelligence-gatherers, comfortable in both wilderness and urban settings. They are spies, informants, and interrogators, and their mastery of stealth makes them deadly opponents.

Advantages:
– +20% to Move Silently and Hide In Shadows.
– May use Backstab ability, although for a lower damage multiplier than Thieves:
  Level 1-8: x2
  Level 9-18: x3
  Level 19+: x4

Disadvantages:
– May not use Stunning Blow or Quivering Palm.

- Hit Die: d8
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~Stalkers serve as covert intelligence-gatherers, comfortable in both wilderness and urban settings. They are spies, informants, and interrogators, and their mastery of stealth makes them deadly opponents.~)
	STR_VAR
		kit_name = ~USSM01~
		clswpbon = ~1 3 3~
		numwslot = ~3~
		clascolr = ~25 28 57 2 24~
		thiefscl = ~0 0 100 100 100 0 0 0~
		hpclass = ~HPPRS~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END


ADD_KIT ~USAM01~
	~USAM01 1 1 1 1 1 1 1 1~
      ~USAM01 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USAM01 9 9 0 0 9 0~
	~USAM01 0 0 0 0 0 0~
	~USAM01 0 0 0 0 0 0~
        ~USAM01 0 0 0 18 0 0~
	~USAM01 0 1 1 1 0 0 0 0 0~
	~USAM01 0 0 0 0 0 0~
	~CrossClassKits/CLABUSAM.2da~
	~K_MN_H~
	~0x00004000 20~
	~USB~
	~* * * BAG23 RING06 RING29 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~assassin~
	SAY ~Assassin~
	SAY ~ASSASSIN: This is a killer trained in discreet and efficient murder, relying on anonymity and surprise to perform <PRO_HISHER> task.

Advantages:
– +1 bonus to hit and damage rolls.
– May use Backstab ability:
  Level 1-4: x2
  Level 5-8: x3
  Level 9-12: x4
  Level 13-16: x5
  Level 17+: x6
– May use the Poison Weapon ability. Gains one use at level 1 and an additional use every 4 levels thereafter.

Poison Weapon
Each successful hit within the next 5 rounds will inject poison into the target. Each target can only be affected once per round. The amount of poison damage depends on the character's level:

1st - Target suffers 1 poison damage per second for 6 seconds (Save vs. Death at +1 negates)
5th - Target suffers 1 poison damage per second for 12 seconds (Save vs. Death negates), and also immediately suffers 2 poison damage (no save)
9th - Target suffers 1 poison damage per second for 18 seconds (Save vs. Death at -1 negates), and also immediately suffers 4 poison damage (no save)
13th - Target suffers 1 poison damage per second for 24 seconds (Save vs. Death at -2 negates), and also immediately suffers 6 poison damage (no save)

Disadvantages:
– Only gains an extra unarmed half attack per round every 6 levels instead of 3
– May not use Lay on Hands

High Level Abilities:
– Assassination
– Power Attack
– Critical Strike
– Smite
– Hardiness
– Evasion
– Greater Evasion
– Avoid Death
– Resist Magic

- Hit Die: d8
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~Assassins are killers trained in discreet and efficient murder, relying on anonymity and surprise to perform <PRO_HISHER> task.~)
	STR_VAR
		kit_name = ~USAM01~
		clswpbon = ~1 6 3~
		numwslot = ~3~
		clascolr = ~25 28 57 2 24~
		thiefscl = ~0 0 100 100 100 0 0 0~
		hpclass = ~HPPRS~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END



ADD_KIT ~USSF00~
	~USSF00 1 1 1 1 1 1 1 1~
      ~USSF00 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USSF00 9 0 0 0 0 0~
	~USSF00 0 0 0 0 0 0~
	~USSF00 15 0 0 0 0 0~
        ~USSF00 15 0 0 0 0 0~
	~USSF00 1 1 1 1 1 1 1 1 1~
	~USSF00 0 1 1 1 1 0~
	~CrossClassKits/CLABUSSF.2da~
	~K_F_H	K_F_D   K_F_G   K_F_E   K_F_HE   K_F_HL   K_F_HO~
	~0x00000000 2~
	~FI0~
	~* * * BAG24 RING06 RING31 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 HAMM07 SW1H39 STAF08~

	SAY ~shapeshifter~
	SAY ~Shapeshifter~
	SAY ~SHAPESHIFTER: The Shapeshifter is a <PRO_MANWOMAN> who has willingly allowed <PRO_HISHER>self to become infected with lycanthropy, but due to intense training has learned to control <PRO_HISHER> affliction and gained the ability to transform into a werewolf.

Advantages:
- May shapeshift into a werewolf at will. While in werewolf form, the Shapeshifter gains a set of abilities that scale with level:

Level 1:
15 Strength, 16 Dexterity, 17 Constitution
6 AC, 10% magic resistance, +2 movement rate
+1 to hit and damage, 1d6 damage at 1.5 attacks per round
Regeneration: 1 HP per 60 seconds

Level 4:
17 STR, 18 DEX, 19 CON
4 AC, 20% MR, +4 movement rate, 10% resistance to elemental damage
+2 to hit and damage, 1d8 damage at 1.5 attacks per round (strikes as +1)
Regeneration: 1 HP per 30 seconds

Level 8:
18/50 STR, 20 DEX, 21 CON
2 AC, 30% MR, +6 movement rate, 20% resistance to elemental damage
+3 to hit and damage, 1d10 damage at 2 attacks per round (strikes as +2)
Regeneration: 1 HP per 12 seconds

Level 12:
18/00 STR, 22 DEX, 23 CON
0 AC, 40% MR, +8 movement rate, 30% resistance to elemental damage
+4 to hit and damage, 1d12 damage at 2.5 attacks per round (strikes as +3)
Regeneration: 1 HP per round
Immune to nonmagical weapons

Level 16:
20 STR, 24 DEX, 25 CON
-2 AC, 50% MR, +10 movement rate, 40% resistance to elemental damage
+5 to hit and damage, 1d12 damage at 3 attacks per round (strikes as +4)
Regeneration: 1 HP per second
Immune to +1 weapons and below

Level 20:
20 STR, 24 DEX, 25 CON
-4 AC, 50% MR, +10 movement rate, 50% resistance to elemental damage
+6 to hit and damage, 1d12 damage at 3.5 attacks per round (strikes as +5)
Regeneration: 1 HP per second
Immune to +2 weapons and below

Disadvantages:
– May not use any armor, helmets, or shields
– May not use missile weapons
– May only become proficient (one slot) with any weapon or weapon style
– Does not gain an extra half attack per round at levels 7 and 13
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~SHAPESHIFTER: The Shapeshifter is a <PRO_MANWOMAN> who has willingly allowed <PRO_HISHER>self to become infected with lycanthropy, but due to intense training has learned to control <PRO_HISHER> affliction and gained the ability to transform into a werewolf.~)
	STR_VAR
		kit_name = ~USSF00~
		clswpbon = ~0 0 2~
		numwslot = ~4~
		clascolr = ~30 91 93 23 93~
		hpclass = ~HPWAR~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END

COPY ~CrossClassKits/bam/USSSFB1.bam~ ~override~

COPY ~CrossClassKits/spl/USSSF00.spl~ ~override~

COPY ~CrossClassKits/spl/USSSF01.spl~ ~override~
  SAY NAME1 @0
  SAY NAME2 @0
  SAY UNIDENTIFIED_DESC @1
  SAY IDENTIFIED_DESC @1

COPY ~CrossClassKits/itm/USSSF02.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3

COPY ~CrossClassKits/itm/USSSF03.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @4

COPY ~CrossClassKits/itm/USSSF04.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @5

COPY ~CrossClassKits/itm/USSSF05.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @6

COPY ~CrossClassKits/itm/USSSF06.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @7

COPY ~CrossClassKits/itm/USSSF07.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @8




ADD_KIT ~USKT00~
	~USKT00 1 1 1 1 1 1 1 1~
      ~USKT00 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USKT00 0 9 0 0 0 0~
	~USKT00 0 0 0 0 0 0~
	~USKT00 0 17 0 0 0 0~
        ~USKT00 0 17 0 0 0 0~
	~USKT00 1 1 1 1 1 1 1 1 1~
	~USKT00 1 1 1 0 0 0~
	~CrossClassKits/CLABUSKT.2da~
	~K_T_H	K_T_D   K_T_G   K_T_E   K_T_HE   K_T_HL   K_T_HO~
	~0x00000004 4~
	~USC~
	~* * * BAG28 RING06 RING05 * BOOT02 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~
	SAY ~kensai~
	SAY ~Kensai~
	SAY ~KENSAI: This class's name, which means "sword saint" in the common tongue, refers to a thief who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor. (Note: Despite its common name, a Kensai may use any melee weapon with which <PRO_HESHE> is proficient.)

Advantages:
– +2 bonus to Armor Class.
– +1 to hit and damage rolls every 3 levels.
– -1 bonus to Speed Factor every 4 levels.
– May use the Kai ability once per day. Gains one use at level 1 and an additional use every 4 levels thereafter.

KAI: All successful attacks within the next 10 seconds deal maximum damage.

Disadvantages:
– May not wear any armor, gauntlets, or bracers.
– May not use missile weapons.
– May only assign 20 skill points per level (40 at level 1).
– May not take Use Any Item as an HLA.
– May not set traps.
– Backstab multiplier grows more slowly than that of other thieves:
  Level 1-3: x1
  Level 4-7: x2
  Level 8-11: x3
  Level 12+: x4

High Level Abilities:
– Power Attack
– Critical Strike
– Smite
– Assassination
– Evasion
– Greater Evasion
– Scribe Scrolls
– Alchemy
– Avoid Death

- Hit Die: d6
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~A Kensai, which means "sword saint" in the common tongue, is a thief who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor.~)
	STR_VAR
		kit_name = ~USKT00~
		backstab = ~1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4~
		clswpbon = ~0 0 3~
		numwslot = ~2~
		thiefskl = ~30 20~
		clascolr = ~35 67 67 25 80~
		clasiskl = ~0 0 0 0 0 0 0~
		thiefscl = ~100 100 100 100 100 100 0 0~
		hpclass = ~HPROG~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END


ADD_KIT ~USKM01~
	~USKM01 1 1 1 1 1 1 1 1~
      ~USKM01 0 5 0 0 5 0 0 5 0 5 5 0 0 5 5 5 0 5 0 0 0 0 0 0 0 0 0 0 0 0 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USKM01 9 9 0 0 9 0~
	~USKM01 0 0 0 0 0 0~
	~USKM01 0 0 0 0 0 0~
        ~USKM01 0 0 0 0 0 0~
	~USKM01 1 1 1 0 0 0 0 0 0~
	~USKM01 0 0 0 0 0 0~
	~CrossClassKits/CLABUSKM.2da~
	~K_MN_H~
	~0x00000004 20~
	~Fi0~
	~* * * BAG23 RING06 RING29 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~kensai~
	SAY ~Kensai~
	SAY ~KENSAI: This class's name, which means "sword saint" in the common tongue, refers to a monk who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor. (Note: Despite its common name, a Kensai may use any melee weapon with which <PRO_HESHE> is proficient.)

Advantages:
– +2 bonus to Armor Class.
– +1 to hit and damage rolls every 5 levels.
– -1 bonus to Speed Factor every 4 levels.
- May achieve Grandmastery (5 proficiency points) in longswords, short swords, daggers, katanas, scimitars, and clubs.
- May place two proficiency points in Single Weapon Style and three proficiency points in Two Weapon Style.
– May use the Kai ability once per day. Gains one use at level 1 and an additional use every 4 levels thereafter.

KAI: All successful attacks within the next 10 seconds deal maximum damage.

Disadvantages:
– May not wear any armor, gauntlets, or bracers.
– May not use missile weapons.
- May not use Stunning Blow or Quivering Palm.
- Does not gain extra attacks per round when fighting unarmed.

- Hit Die: d8
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~A Kensai is a monk who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor. (Note: Despite its common name, a Kensai may use any melee weapon with which <PRO_HESHE> is proficient.)~)
	STR_VAR
		kit_name = ~USKM01~
		clswpbon = ~1 0 3~
		numwslot = ~3~
		clascolr = ~25 28 57 2 24~
		thiefscl = ~0 0 100 100 100 0 0 0~
		hpclass = ~HPPRS~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END

ADD_KIT ~USKP01~
	~USKP01 1 1 1 1 1 1 1 1~
      ~USKP01 0 2 0 0 2 0 0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 0 0 0 0 0 2 2 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USKP01 9 0 0 0 13 17~
	~USKP01 0 0 0 0 0 0~
	~USKP01 0 0 0 0 0 0~
        ~USKP01 0 0 0 0 0 0~
	~USKP01 1 0 0 0 0 0 0 0 0~
	~USKP01 0 0 0 0 0 0~
	~CrossClassKits/CLABUSKP.2da~
	~K_P_H~
	~0x00000004 6~
	~Fi0~
	~* * * BAG23 RING06 RING29 CLCK02 BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~kensai~
	SAY ~Kensai~
	SAY ~KENSAI: This class's name, which means "sword saint" in the common tongue, refers to a paladin who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor. (Note: Despite its common name, a Kensai may use any melee weapon with which <PRO_HESHE> is proficient.)

Advantages:
– +2 bonus to Armor Class.
– +1 to hit and damage rolls every 3 levels.
– -1 bonus to Speed Factor every 4 levels.
– May use the Kai ability once per day. Gains one use at level 1 and an additional use every 4 levels thereafter.

KAI: All successful attacks within the next 10 seconds deal maximum damage.

Disadvantages:
– May not wear any armor, gauntlets, or bracers.
– May not use missile weapons.

- Hit Die: d10
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~A Kensai is a paladin who has been specially trained to be one with <PRO_HISHER> weapon. The kensai is deadly, fast, and trained to fight without the protection of armor. (Note: Despite its common name, a Kensai may use any melee weapon with which <PRO_HESHE> is proficient.)~)
	STR_VAR
		kit_name = ~USKP01~
		clswpbon = ~1 0 2~
		numwslot = ~3~
		clascolr = ~25 28 57 2 24~
		hpclass = ~HPWAR~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END



ADD_KIT ~USVA00~
	~USVA00 1 1 1 1 1 1 1 1~
      ~USVA00 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 0 0 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
	~USVA00 0 9 0 0 0 0~
	~USVA00 0 0 0 0 0 0~
	~USVA00 0 15 0 0 0 0~
        ~USVA00 0 15 0 0 0 0~
	~USVA00 1 1 1 1 1 1 1 1 1~
	~USVA00 0 0 0 0 0 0~
	~CrossClassKits/CLABUSVA.2da~
	~K_T_H	K_T_D   K_T_G   K_T_E   K_T_HE   K_T_HL   K_T_HO~
	~0x00000000 4~
	~TH0~
	~LEAT14 * * BAG28 RING06 RING05 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN10,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~vampyre~
	SAY ~Vampyre~
	SAY ~VAMPYRE: Also known as vrylokas, vampyres are alpha predators, hunters who fill the same ecological niche as tigers or wolves--only their prey are humanoid races. Vampyres exist on the blood of their victims. Unlike true vampires, vampyres are not undead: while the Vampyre may drain the life force of its victims, it is not vulnerable to sunlight and has neither the resistances nor the vulnerabilities of the undead.

Advantages:
- Gains an extra half attack per round at levels 7 and 13.
- +15% bonus to Hide in Shadows and Move Silently.
- Immune to level drain.
- Vampiric Drain: Whenever the Vampyre strikes its victim with a melee attack, it drains 1d4 hit points from the target and transfers them to the Vampyre on a failed save vs. death. For every 5 levels of the Vampyre, the damage dice increases: 1d6 at level 5, 1d8 at level 10, 1d10 at level 15, and 1d12 at level 20.
- At level 6, Vampiric Drain forces the victim to make a save vs. death or lose 1 level for 5 rounds.
- At level 12, Vampiric Drain penalizes the victim's save vs. death by 1 point (cumulative) for 5 rounds.
- At level 18, Vampiric Drain decreases the victim's Constitution score by 1 point for 5 rounds on a failed save vs. death.
- Whenever the Vampyre successfully backstabs an enemy or lands a critical hit, the victim suffers twice the effects of Vampiric Drain.

Disadvantages:
– Backstab multiplier does not progress beyond 2x.
– Only gains 10 skill points per level (20 at level 1).
– May not dual-class.
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~VAMPYRE: Also known as vrylokas, vampyres are alpha predators, hunters who fill the same ecological niche as tigers or wolves--only their prey are humanoid races. Vampyres exist on the blood of their victims. Unlike true vampires, vampyres are not undead: while the Vampyre may drain the life force of its victims, it is not vulnerable to sunlight and has neither the resistances nor the vulnerabilities of the undead.~)
	STR_VAR
		kit_name = ~USVA00~
		backstab = ~2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2~
		clswpbon = ~0 0 3~
		numwslot = ~2~
		thiefskl = ~20 10~
		traplimt = ~7~
		clascolr = ~24 99 169 2 93~
		clasiskl = ~10 10 10 10 10 10 10~
		thiefscl = ~100 100 100 100 100 100 100 0~
		hpclass = ~HPROG~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
		sneakatt = ~2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2~
		crippstr = ~0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
END


////////////////////////////////////////
/////////SPELLS/////////////////////////
////////////////////////////////////////

COPY ~CrossClassKits/spl/USVA00.spl~ ~override~
COPY ~CrossClassKits/spl/USVA01.spl~ ~override~
COPY ~CrossClassKits/spl/USVA02.spl~ ~override~
COPY ~CrossClassKits/eff/USVA00.eff~ ~override~


COPY ~CrossClassKits/spl/USSM01.spl~ ~override~
COPY ~CrossClassKits/spl/USSM02.spl~ ~override~
COPY ~CrossClassKits/spl/USSM03.spl~ ~override~

/*
COPY ~CrossClassKits/spl/US.spl~ ~override~

COPY ~CrossClassKits/spl/US.spl~ ~override~
  SAY NAME1 @
  SAY NAME2 @
  SAY UNIDENTIFIED_DESC @
  SAY IDENTIFIED_DESC @
*/

COPY ~CrossClassKits/tables/CLABUSKP.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSKT.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSKM.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSAM.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSSM.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSSF.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSAF.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSAP.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSAT.2da~ ~override~
COPY ~CrossClassKits/tables/CLABUSVA.2da~ ~override~

//COPY ~CrossClassKits/tables/LUUSA.2da~ ~override~
COPY ~CrossClassKits/tables/LUUSB.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSC.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSD.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSE.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSF.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSG.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSH.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSI.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSJ.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSK.2da~ ~override~
//COPY ~CrossClassKits/tables/LUUSL.2da~ ~override~
