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

VERSION ~1.0~

//MODDER

AUTO_TRA ~Korax_NPC/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~
           ~Korax_NPC/tra/English/Korax_NPC.tra~

BEGIN "Korax NPC" //

/*
COPY_EXISTING ~USKORAXP.DLG~ ~override~
    DECOMPILE_DLG_TO_D
BUT_ONLY_IF_IT_CHANGES
COPY_EXISTING ~USKORAXJ.DLG~ ~override~
    DECOMPILE_DLG_TO_D
BUT_ONLY_IF_IT_CHANGES
COPY_EXISTING ~BUSKORAX.DLG~ ~override~
    DECOMPILE_DLG_TO_D
BUT_ONLY_IF_IT_CHANGES

COPY_EXISTING ~KORAX.DLG~ ~override~
    DECOMPILE_DLG_TO_D
BUT_ONLY_IF_IT_CHANGES
*/

COMPILE ~Korax_NPC/dlg/KORAX.d~

COMPILE ~Korax_NPC/dlg/USKORAXP.d~
COMPILE ~Korax_NPC/dlg/USKORAXJ.d~
COMPILE ~Korax_NPC/dlg/BUSKORAX.d~

APPEND ~pdialog.2da~ ~KORAX USKORAXP USKORAXJ KORAX~                            UNLESS ~25POST~ // for games w/o ToB
APPEND ~pdialog.2da~ ~KORAX USKORAXP USKORAXJ KORAX USKORAXP USKORAXJ KORAX KORAX~ IF     ~25POST~ // for games w ToB
APPEND ~interdia.2da~ ~KORAX BUSKORAX~        UNLESS ~25FILE~ // for games w/o ToB
APPEND ~interdia.2da~ ~KORAX BUSKORAX BUSKORAX~ IF     ~25FILE~ // for games w ToB

INCLUDE "Korax_NPC/lib/fl#add_kit_ee.tpa"


ADD_KIT ~USKO00~
	~USKO00 1 1 1 1 1 1 1 1~
      ~USKO00 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 0~
	~USKO00 0 0 9 0 0 0~
	~USKO00 0 0 0 0 0 1~
	~USKO00 0 0 0 0 0 0~
        ~USKO00 0 0 0 0 0 25~
	~USKO00 1 1 1 1 1 1 1 1 1~
	~USKO00 0 0 0 0 0 0~
	~Korax_NPC/CLABUSKO.2da~
	~~
	~0x00000000 2~
	~FI0~
	~LEAT14 * * BAG28 RING06 RING05 * BOOT02 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN04,2 POTN14,5 DAGG12 SW1H28 STAF08~

	SAY ~ghoul~
	SAY ~Ghoul~
	SAY ~Korax is a gross, ugly monster. He has long since forgotten whoever he was in life, but he seems not to mind the loss of his former identity. Underneath his twisted, rotting face and the putrid stench of death, he is a fairly cheerful "person" and surprisingly friendly. Still, whenever you catch him staring at you with his dead, unblinking eyes, you can't shake the feeling that he's thinking about eating your flesh.

Being undead has its advantages. As a ghoul, Korax is immune to many of the afflictions that plague humankind, and his very touch is toxic to living creatures. Undeath has left his mind hopelessly broken, however, and he cannot seem to grasp the concept of using his hands for anything other than grasping his prey. He cannot wield a weapon, dress himself, collect firewood, or do anything that a beast of burden could not. At the campfire, he spends most of his time staring intently at his companions or gnawing on a bone.

Korax might be a disgusting creature who constantly gets his noxious odor all over your clothes and personal possessions, but he is a faithful companion and attack dog as long as he has plenty of raw meat to sate his powerful hunger. Keep him well-fed, and he will be the most loyal crime against nature to ever call himself your friend.

CLASS FEATURES:

Advantages:

- Immune to hold, paralysis, stun, petrification, poison, disease, confusion, feeblemind, charm, domination, fear, sleep, unconsciousness, fatigue, berserk, and Finger of Death effects
- Regenerates 1 hit point per round
- Cannot die from ability score drain effects
- Ghoul Touch: Korax's natural attack deals 1d6+1 crushing damage, and if the victim fails a save vs. death, Korax also drains 1 additional point of HP and paralyzes the target for 6 seconds.
- Every 3 levels, Korax gains +1 to hit, damage, and AC (starting with an AC of 5 at level 1).
- Every 3 levels, Korax's victims must save vs. death at an additional -1 penalty to avoid being paralyzed.
- Every 6 levels, Korax's natural weapon strikes with an additional +1 enchantment.

Disadvantages:

- Immune to healing spells
- Cannot drink potions
- Cannot wear armor, helmets, or shields
- Cannot use weapons
- Is a hideous freak who smells terrible

- Hit Die: d10
~

LAF fl#add_kit_ee
	INT_VAR
		biography = RESOLVE_STR_REF (~~)
		briefdesc = RESOLVE_STR_REF (~Korax is a gross, ugly monster. He has long since forgotten whoever he was in life, but he seems not to mind the loss of his former identity. Underneath his twisted, rotting face and the putrid stench of death, he is a fairly cheerful "person" and surprisingly friendly. Still, whenever you catch him staring at you with his dead, unblinking eyes, you can't shake the feeling that he's thinking about eating your flesh.~)
	STR_VAR
		kit_name = ~USKO00~
		clswpbon = ~0 0 3~
		numwslot = ~4~
		clascolr = ~35 67 67 25 80~
		hpclass = ~HPWAR~
		clsrcreq = ~1 1 1 1 1 1 1~
		clasthac = ~0~
END

////////////////////////////////////////
/////////CREATURES//////////////////////
////////////////////////////////////////

COPY ~Korax_NPC/bcs/KORAX.bcs~ ~override~


COPY ~Korax_NPC/cre/KORAX.cre~ ~override~
  SAY NAME1 @1
  SAY NAME2 @1
WRITE_SHORT 0x246 (IDS_OF_SYMBOL (~kit~ ~USKO00~))
COPY ~Korax_NPC/cre/USKO01.cre~ ~override~
  SAY NAME1 @1
  SAY NAME2 @1

////////////////////////////////////////
/////////ITEMS//////////////////////////
////////////////////////////////////////

COPY ~Korax_NPC/itm/USKO01.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO02.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO03.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO04.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO05.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO06.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO07.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO08.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO09.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO10.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO11.itm~ ~override~
  SAY NAME1 @2
  SAY NAME2 @2
  SAY DESC @3
COPY ~Korax_NPC/itm/USKO12.itm~ ~override~
  SAY NAME1 @4
  SAY NAME2 @4
  SAY DESC @5
COPY ~Korax_NPC/itm/USKO13.itm~ ~override~
  SAY NAME1 @4
  SAY NAME2 @4
  SAY DESC @5

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

COPY ~Korax_NPC/spl/USKO00.spl~ ~override~
COPY ~Korax_NPC/spl/USKO01.spl~ ~override~
COPY ~Korax_NPC/spl/USKO02.spl~ ~override~
COPY ~Korax_NPC/spl/USKO03.spl~ ~override~
COPY ~Korax_NPC/spl/USKO04.spl~ ~override~
COPY ~Korax_NPC/spl/USKO05.spl~ ~override~
COPY ~Korax_NPC/spl/USKO06.spl~ ~override~
COPY ~Korax_NPC/spl/USKO07.spl~ ~override~
COPY ~Korax_NPC/spl/USKO08.spl~ ~override~
COPY ~Korax_NPC/spl/USKO09.spl~ ~override~
COPY ~Korax_NPC/spl/USKO10.spl~ ~override~
COPY ~Korax_NPC/spl/USKO11.spl~ ~override~
COPY ~Korax_NPC/spl/USKO12.spl~ ~override~

COPY ~Korax_NPC/spl/SPWI996.spl~ ~override~

////////////////////////////////////////
/////////DIALOGUES//////////////////////
////////////////////////////////////////

//////////////////////////////////////////////////////////
////////////////////////ICONS/////////////////////////////
//////////////////////////////////////////////////////////

COPY ~Korax_NPC/bam/USKO01L.bmp~ ~override~
COPY ~Korax_NPC/bam/USKO01s.bmp~ ~override~
COPY ~Korax_NPC/bam/USKO02L.bmp~ ~override~

