// --------------------------------------------
// Mod setup
// --------------------------------------------
// Basics
BACKUP ~drogar/backup~
AUTHOR ~K'aeloree (kae@spellholdstudios.net)~
MODDER

// README ~drogar/drogar_readme.html~


// --------------------------------------------
// drogar NPC Mod v.01
// --------------------------------------------
// Component setup
BEGIN ~Drogar One Day NPC Mod for BGII: SoA & ToB~
  REQUIRE_FILE ~data/25dialog.bif~ ~ToB is not installed! Please install the Throne of Bhaal expansion before installing drogar.~
  REQUIRE_FILE ~data/25scripts.bif~ ~ToB is not installed! Please install the Throne of Bhaal expansion before installing drogar.~

// Adds custom IsValidForPartyDialogue state used throughout Drogar
APPEND ~STATE.IDS~
  ~0x80101FEF CD_STATE_NOTVALID~
  UNLESS ~CD_STATE_NOTVALID~

// Compiling dialogue...
PRINT ~Compiling dialogue...~

COMPILE ~drogar/dialogue/lk#drog.d~
COMPILE ~drogar/dialogue/lk#droj.d~
COMPILE ~drogar/dialogue/blk#dro.d~
COMPILE ~drogar/dialogue/lk#drop.d~
COMPILE ~drogar/dialogue/lk#dr25.d~
COMPILE ~drogar/dialogue/lk#dr25j.d~
COMPILE ~drogar/dialogue/blk#dr25.d~
COMPILE ~drogar/dialogue/lk#dr25p.d~

// Compiling scripts...
PRINT ~Compiling and extending scripts...~

COMPILE ~drogar/scripts/lk#drog.baf~
EXTEND_BOTTOM ~ar2010.bcs~ ~drogar/scripts/ar2010.baf~
EXTEND_BOTTOM ~ar6200.bcs~ ~drogar/scripts/ar6200.baf~

// Copying images and creatures
PRINT ~Copying images and creatures...~

COPY ~drogar/images~ ~override~

COPY ~drogar/creatures/lk#drog.cre~ ~override/lk#drog.cre~
  SAY NAME1 ~Drogar~
  SAY NAME2 ~Drogar Delgyth~
  WRITE_EVALUATED_ASCII DIALOG          ~%DEST_RES%~ #8
  WRITE_EVALUATED_ASCII DEATHVAR        ~drogar~ #32
  WRITE_EVALUATED_ASCII SCRIPT_OVERRIDE ~%DEST_RES%~ #8
  SAY BIO ~When asked about his past, DROGAR chuckles grimly.  "There ain't nothin' there ye be wantin' to know, young 'un.  Trust me."  From what you have gleaned, Drogar is peculiar for a dwarf; a follower of Vergadain, the Dwarven god of wealth and luck, he is an unassuming companion with an aversion to alcohol and the undead. You know little about his history beyond that he grew up in the Dales to the north and that heat makes him extremely irritable.~
  SAY MORALE ~That's quite enough o' that, methinks.~
  SAY LEADER ~I'll do me best, young 'un.~
  SAY TIRED ~I be needin' a ruddy bed, ye fool adventurer, not another mile to walk!~
  SAY BORED ~Ye'd betto be plannin' somethin' or I'll soon start itchin' fer things to do.~
  SAY BATTLE_CRY1 ~Rot in hell!~
  SAY BATTLE_CRY2 ~Tha's right, go cryin' to yer mam.~
  SAY BATTLE_CRY3 ~Get outta me way!~
  SAY BATTLE_CRY4 ~They don't make 'em like they used to!~
  SAY BATTLE_CRY5 ~Stop yer ruddy wailin' and die already!~
  SAY DYING ~Auuugh...~
  SAY HURT ~Ruddy hell!~
  SAY AREA_DUNGEON ~Ruddy dungeons. [spits]~
  SAY SELECT_COMMON1 ~What?~
  SAY SELECT_COMMON2 ~Hurry up, then.~
  SAY SELECT_COMMON3 ~What is it?~
  SAY SELECT_COMMON4 ~Go on.~
  SAY SELECT_COMMON5 ~Say what?~
  SAY SELECT_COMMON6 ~~
  SAY SELECT_ACTION1 ~'Course.~
  SAY SELECT_ACTION2 ~If ye want.~
  SAY SELECT_ACTION3 ~As ye wish.~
  SAY SELECT_ACTION4 ~Done.~
  SAY SELECT_ACTION5 ~~
  SAY SELECT_ACTION6 ~~
  SAY SELECT_ACTION7 ~~
  SAY SELECT_RARE1 ~Get out o' me personal space!~
  SAY SELECT_RARE2 ~They say a dwarf gets mighty irritated when ye keep pullin' his beard, ye know.  Ruddy idiot.~
  SAY CRITICAL_HIT ~An' luck smiles again!~
  SAY CRITICAL_MISS ~Come on, come on!~
  SAY TARGET_IMMUNE ~Fer Vergadain's sake, this ain't makin' a scratch!~
  SAY INVENTORY_FULL ~Take it yerself.  Or not.~
  SAY HAPPY ~~
  SAY UNHAPPY_ANNOYED ~~
  SAY UNHAPPY_SERIOUS ~~
  SAY SPELL_DISRUPTED ~[vehemently] Ruddy hell!~
  SAY SET_A_TRAP ~~
  SAY HIDDEN_IN_SHADOWS ~~
  SAY PICKED_POCKET ~~
  
  
// Epilogues
COPY ~drogar/epilogues/lk#drog1.2da~ ~override/lk#drog1.2da~
   REPLACE ~99999~ ~With <CHARNAME>'s ascension behind him, Drogar returned to the Dales with the intention of taking control ~


// Appends
PRINT ~Appending files...~

APPEND ~intodia.2da~ ~DROGAR BLK#DRO BLK#DR25~
   UNLESS ~drogar~

APPEND ~pdialog.2da~ ~DROGAR LK#DROP LK#DROJ LK#DROG LK#DR25P LK#DR25J LK#DR25D LK#DR25~
  UNLESS ~drogar~
