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

// README ~nephele/nephele_readme.html~


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


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


// Compiling dialogue...
COMPILE ~nephele/dialogue/lk#neph.d~
COMPILE ~nephele/dialogue/lk#nepj.d~
COMPILE ~nephele/dialogue/blk#nep.d~
COMPILE ~nephele/dialogue/lk#nepp.d~
COMPILE ~nephele/dialogue/lk#ne25.d~
COMPILE ~nephele/dialogue/lk#ne25j.d~
COMPILE ~nephele/dialogue/blk#ne25.d~
COMPILE ~nephele/dialogue/lk#ne25p.d~


// Compiling scripts...
COMPILE ~nephele/scripts/lk#neph.baf~
EXTEND_BOTTOM ~ar2010.bcs~ ~nephele/scripts/ar2010.baf~
EXTEND_BOTTOM ~ar6200.bcs~ ~nephele/scripts/ar6200.baf~


// Copying images and creatures
COPY ~nephele/images~ ~override~

COPY ~nephele/creatures/lk#neph.cre~ ~override/lk#neph.cre~
  SAY NAME1 ~Nephele~
  SAY NAME2 ~Nephele Samios~
  WRITE_EVALUATED_ASCII DIALOG          ~%DEST_RES%~ #8
  WRITE_EVALUATED_ASCII DEATHVAR        ~Nephele~ #32
  WRITE_EVALUATED_ASCII SCRIPT_OVERRIDE ~%DEST_RES%~ #8
  SAY BIO ~When asked about her past, NEPHELE closes her eyes briefly, a small smile on her wrinkled face.  Raised in the halfling village of Larrikin, she joined the church of Yondalla in her mid-twenties, and though she has always been a devout follower of her goddess, she was never quite content with the home-life of many halflings.  "Cursed with wanderlust," she says, a sparkle in her eyes.  She jumped at the chance to help the occasional adventurer, and began her travels aiding the wounded and injured, eventually becoming quite the formidable adventurer herself.  She married and returned to Larrikin, where she "brought seven wonders" into the world.  Her smile broadens as she tells you of her children, pride evident in her voice.  After her children were grown she set out adventuring once more.  Something in her eyes tells you that there is more to the story, but she squeezes your shoulder cheerfully and walks away, humming under her breath.~
  SAY MORALE ~Sorry, dear, but something's just not right!~
  SAY LEADER ~Oh!  Well, I will do my best.~
  SAY TIRED ~These old legs aren't quite as strong as yours, dear; I need to sit down!~
  SAY BORED ~How about a story?  No?  I suppose I'll just have to entertain myself, then.~
  SAY BATTLE_CRY1 ~~
  SAY BATTLE_CRY2 ~~
  SAY BATTLE_CRY3 ~~
  SAY BATTLE_CRY4 ~~
  SAY BATTLE_CRY5 ~~
  SAY DYING ~~
  SAY HURT ~~
  SAY AREA_DUNGEON ~~
  SAY SELECT_COMMON1 ~~
  SAY SELECT_COMMON2 ~~
  SAY SELECT_COMMON3 ~~
  SAY SELECT_COMMON4 ~~
  SAY SELECT_COMMON5 ~~
  SAY SELECT_COMMON6 ~~
  SAY SELECT_ACTION1 ~~
  SAY SELECT_ACTION2 ~~
  SAY SELECT_ACTION3 ~~
  SAY SELECT_ACTION4 ~~
  SAY SELECT_ACTION5 ~~
  SAY SELECT_ACTION6 ~~
  SAY SELECT_ACTION7 ~~
  SAY SELECT_RARE1 ~~
  SAY SELECT_RARE2 ~~
  SAY CRITICAL_HIT ~~
  SAY CRITICAL_MISS ~~
  SAY TARGET_IMMUNE ~~
  SAY INVENTORY_FULL ~~
  SAY HAPPY ~~
  SAY UNHAPPY_ANNOYED ~~
  SAY UNHAPPY_SERIOUS ~~
  SAY SPELL_DISRUPTED ~~
  SAY SET_A_TRAP ~~
  SAY HIDDEN_IN_SHADOWS ~~
  SAY PICKED_POCKET ~~
  
  
// Epilogues
COPY ~nephele/epilogues/lk#neph1.2da~ ~override/lk#neph1.2da~
   REPLACE ~99999~ ~After Nephele's adventures with <CHARNAME>, she declared it was time for her to settle down again. She took on the role of grandmother to her daughter Alrie's children once more, and spent many years amongst those she loved most. After her two hundred and fiftieth birthday, however, she grew gravely ill. A great feast was held in her honor, with appearances by many dignitaries, nobles and old friends Nephele had met in her long life, and it was to them the aging mother of seven gave her last speech. She spoke of her children, her beloved Davrin, her travels and of <CHARNAME>, the <PRO_MANWOMAN> she fondly recalled as her friend and <PRO_SONDAUGHTER> in everything but blood. She died a heroine, beloved by many whom she had shared her life with.~

COPY ~nephele/epilogues/lk#neph1.2da~ ~override/lk#neph2.2da~
   REPLACE ~99999~ ~After Nephele's adventures with <CHARNAME>, she declared it was time for her to settle down again. She took on the role of grandmother to her daughter Alrie's children once more, and spent many years amongst those she loved most. After her two hundred and fiftieth birthday, however, she grew gravely ill. A great feast was held in her honor, with appearances by many dignitaries, nobles and old friends Nephele had met in her long life, including her great friend, <CHARNAME>. It was to these the aged mother gave her last speech. She spoke of her children, her beloved Davrin, her travels and of <CHARNAME>, the <PRO_MANWOMAN> she fondly recalled as her friend and <PRO_SONDAUGHTER> in everything but blood. She died a heroine, beloved by many whom she had shared her life with.~


// Appends
APPEND ~interdia.2da~ ~Nephele BLK#NEP BLK#NE25~
   UNLESS ~Nephele~

APPEND ~pdialog.2da~ ~Nephele LK#NEPP LK#NEPJ LK#NEPD LK#NE25P LK#NE25J LK#NE25D LK#NE25~
  UNLESS ~Nephele~
  
  
// --------------------------------------------
// Alternate Nephele portrait by Ilmatar
// --------------------------------------------
// Component setup
BEGIN ~Alternate Nephele portrait by Amaurea~
  REQUIRE_COMPONENT ~nephele.tp2~             ~0~ ~You need Nephele installed to change her portrait!~

    COPY ~nephele/portraits/amaurea/lk#neph.bmp~ ~override~
    COPY ~nephele/portraits/amaurea/lk#nepm.bmp~ ~override~
    COPY ~nephele/portraits/amaurea/lk#neps.bmp~ ~override~