			Xan NPC MOD for Baldur's Gate II
				   Version 19
			  A Pocket Plane Group Project
			   http://www.pocketplane.net


Contents

1. Introduction
2. Installation
3. General Information
   a. Overview
   b. Player-Initiated Dialogues
   c. Romances
   d. Quests and Encounters
   e. Crossmod Content
4. Frequently Asked Questions
5. Credits
6. Version History
7. Legal Information

----------------
1. Introduction
----------------

Xan NPC MOD for Baldur's Gate II (Xan for short) is an add-on for the game
Baldur's Gate II, with or without the Throne of Bhaal expansion pack.
Throne of Bhaal content is present.

Xan, a non-player character from the first game in Baldur's Gate series, is a
depressed elven mage - enchanter. Notable quotes: "We're all doomed."
"Life is so hollow." "It is hardly worth the effort of trying."
"What is the point?" "Our quest is vain." "Onward, to futility!"

----------------
2. Installation
----------------

Windows:
--------

ATTENTION: If you're a French, Polish or Russian user who plays Enhanced Edition,
please choose ENHANCED EDITION translations.

Make sure that you have obtained and installed the latest official Bioware patch.
Install the official patch BEFORE installing any unofficial modifications.

To save you time and effort, it is recommended to backup dialog.tlk, chitin.key,
baldur.ini, bgmain.exe and override directory before installing any mods.
This way, you can restore your "clean install" in seconds by deleting weidu.log,
dialog.tlk, chitin.key, baldur.ini, bgmain.exe and override directory,
and restoring backups.

Make sure that Baldur's Gate II or ANY game-related utilities are not running.

To install the mod, unpack it into your game directory and run Setup-Xan.exe.

To reinstall or uninstall the mod, run Setup-Xan.exe in your game directory.

During the installation you may change Xan's class to Fighter/Mage, Mage, Wild
Mage(ToB only) or Sorcerer. To decline, choose "N"("No"). To return to Enchanter,
choose "U"("Uninstall").

As well, you will have an option to install BG1-style flaming sword animations
for Xan's moonblade, courtesy of Erephine, the author of One Pixel Productions.


Mac OS X:
---------

If the mod was previously installed, uninstall it before extracting
the new version.

To install, simply extract the contents of the mod into your BG2 folder.
If properly extracted, you should have a Xan folder,
Setup-Xan, and Setup-Xan.command in your BG2 folder.

To install, simply double-click Setup-Xan.command
and follow the instructions on screen.

In case of difficulties:

1. Open the Terminal, type 'chmod +x' followed by a space, drag 
Setup-Xan.command into the window, press enter.
2. Type 'chmod 755' followed by a space, drag Setup-Xan
into the window, press enter.
3. Double-click Setup-Xan.command,
the installation process should now proceed.

To reinstall or uninstall the mod, run Setup-Xan.command
in your game directory.

-----------------------
3. General Information
-----------------------


a. Overview
------------

Xan can be found in the Government District of Athkatla, near the main entrance.
You do not need to start a new game to get him into your party.

In ToB, Xan can also be summoned from the Pocket Plane Fate Spirit.

Xan has an extensive friendship path with the PC, a minimum of three banters with
every Bioware NPC, a vast amount of interjections, character reactions and other
scenery dialogue. 

Xan also has two romance paths for a female elven PC: for more information, see
"Romances" below.

All three paths are dialogue-heavy, including sequential dialogues, dialogues
reactive to the events of the game, and player-initiated dialogues.

A short "future romance" path is available to female protagonists of every race
in the Throne of Bhaal expansion pack.

Xan also has three character-related encounters and four character-related
quests, not counting the encounter with Bodhi in Chapter 6 for the bonded path.
For more information, see "Quests and Encounters" below.

When Xan's experience hits 1500000XP, his moonblade can be upgraded. Talk to him.
For the Fighter-Mage class, it receives the following additional abilities:

Vocalize
+4 enchantment
+1 extra attack

For the Enchanter, Mage, Sorcerer and Wild Mage classes, the blade receives
the following additional abilities:

Vocalize
+4 enchantment
Invisibility as per the Staff of the Magi

TIP: Get your PC drunk at some point in SoA. You will not regret it.

If you experience any problems with Xan's select/confirm sounds, select him
in the game and press K key. This should fix the problem.


b. Player-Initiated Dialogues
------------------------------

At any moment of the game you will be able to click on Xan and get a player-
initiated menu. Note these two options, available for every path:

"May I ask you a question?" You may find some interesting information here. 
Some answers are based on game events, your reputation and the path you have
chosen, others are the same for every path.

"May I talk to you?" You can manage your relationship, turn flirts on and off,
try to change the path you have taken, or talk. Some dialogues are available
right away, others are added in the course of the game.

In ToB player-initiated dialogues are available through the option "Let us talk".


c. Romances
------------

If your PC is an elven female and your game is in Chapter 2 or 3, you may start
a romance with Xan. To do so, simply choose the FIRST OPTION a menu you will get
upon meeting him.

If you played and enjoyed Xan Romance by the same author, included into
the BG1 NPC Project, you may continue it, choosing the SECOND OPTION in a menu
you will get upon meeting Xan. This path is called the bonded path, since PC and
Xan have formed an elven bond in BG1. Again, elven female PC, Chapter 2 or 3.

The BG1 NPC Project is available at http://gibberlings3.net/bg1npc

Note that these two are different relationships, and as such, they have
different dialogues and outcomes. As ever, be prepared for nasty surprises.

TIP: If you wish to enjoy the first romance path fully, DO NOT RUSH TO CHAPTER 4.

Both relationships include Xan-initiated and PC-initiated flirts, different
for each relationship. After certain events, flirts are disabled.

TIP: Check your "May I talk to you?" option from time to time - there will be new
talks, even in impossible circumstances.

Romances are continued in ToB... in a way. If you have chosen the tragic
ending for the bonded path, taking Valygar with you into ToB is recommended.


SPOILER SECTION
---------------

It is well-known to Xan players that in the non-bonded path, Xan and his
CHARNAME go through a rough period after Spellhold, yet are reunited in ToB. 

But the bonded path ended at Bodhi's graveyard: Xan died every time and
his CHARNAME was left alone. It is time to change that, and give Xan
and his heroine a happy ending.

From version 10 onwards, there is an option to save Xan in the bonded path. 

Explore new player-initiated options in "May I talk to you?" menu to learn more.
There is also Xan-initiated dialogue at the beginning of Chapter 6.

There is new dialogue for the subsequent events and a romance track for the
ToB portion, plus a new flirt pack, player-initiated dialogues and
two new epilogues. Try resting outdoors at night in ToB - you won't regret it.

There are ten Xan-initiated lovetalks in the bonded path for ToB. 
The last one starts with these words: "Well. I wanted to talk to you,
but it seems I've run out of things to say. Does this even happen anymore?"

There are two additional dialogues at rest in SoA: late in romance outdoors
in Athkatla, if Xan is wounded(it is available in the non-bonded path, as well),
and after Bodhi's death, not in a dungeon, and not in Chapter 7.

There are six additional dialogues at rest in ToB: after meeting Gorion's Wraith,
killing Yaga-Shura, defeating Sendai or Abazigail(these three are available in
the non-bonded path, as well), one in a tavern(Saradush or Amkethran), and 
two happen at rest outdoors at night, one - anywhere but in Saradush,
another - in Chapter 9, and not outside the Watcher's Keep.

You will be able to summon a "bonded" Xan even if you start a fresh ToB game.


d. Quests and Encounters
-------------------------

There are three minor encounters and four full quests in the mod. The first
encounter involves one of Trademeet's merchants. The second one takes part
in the lust chambers of a certain city, and is romance-related. The third
one happens in Amkethran if you are on the bonded path, or after you ask Xan
about the letter he received.

There is also an encounter with Bodhi for the bonded path in chapter 6, in
Athkatla's Graveyard District. There are two outcomes to that encounter -
- see "Romances"(spoiler section) to learn more.

The first SoA quest starts in the Temple District, the second SoA quest
starts in the slums, the third SoA quest starts in Chapter 6,
at the Underdark Exit, and the ToB quest takes place in Amkethran.


Walkthrough:


SPOILERS START HERE


Encounters: 

1) The first encounter is with the merchant who sells the Robe of Good Archmagi
and the Robe of Neutral Archmagi in Trademeet. For five thousand gold, he will
return Xan's Robe of Neutral Archmagi, but only if Xan is in party, in the area,
and able to talk.

2) The Lust chambers(the inn of Ust Natha, second floor): a drow female, Hunrae,
stands in the middle of the entrance hall. She will dismiss the party, if Xan
is not present, otherwise she will demand his services. PC may choose to stand
aside, or to get involved in the conflict. If the player chooses to 
participate in Ricar's quest in Chapter 6, they will meet Hunrae again.
The encounter is only available if one of the romance paths has been chosen.

3) If you are talked to Xan about a letter from Evereska in ToB via his
player-initiated menu, or if you are on the bonded path, you will see Ricar
again in Chapter 9 - he finds the player in Amkethran. After a conversation
he gives you a magical cloak and leaves.


Quests:

1) This quest is available upon entering the Temple District in Athkatla.
An elven girl approaches Xan and asks him to find her father. The clues
indicate he might be in the Temple of Talos, and he is indeed there. However,
Rotan, the girl's father, is mad. Weathermistress Ada agrees to return his 
sanity, but only if PC retrieves the Talos' ring to the temple. The thieves
are rumored to meet in the Copper Coronet.

PC has two opportunities: to bribe the thieves, or to kill them all. In both
cases it is revealed that the ring is with their other member, Selia, in the
temple of Lathander. If Xan is in the party, he makes Selia return the ring,
otherwise, PC has to pay a thousand gold(Selia teleports away, if attacked).

Weathermistress Ada rewards the party, and Rotan is reunited with his daughter.

2) This quest is available upon entering the slums with Xan in the party. A
rogue stands near the Copper Coronet. When talked to, he implores Xan to flee
the city, because something "terrible and wondrous" will happen soon. After
this meeting, he will wait in the Government District, near the main entrance,
at night.

If PC meets him with Xan in party, the rogue will arrange a meeting with his
superiors, who are revealed to belong to Eldreth Veluuthra, an organization
determined to wipe all humans from the face of Faerun. They ask for assistance
in poisoning the temples and the government of the city.

There are two choices. Should PC interfere in the discussion, the encounter
eventually leads to violence. Should PC remain silent, or refuse to get 
involved, the group departs, and the quest is over - unless PC tells
Inspector Brega of this, in which case the party is ambushed by this group
after their next rest outdoors.

After the group is dead, the party can address Chief Inspector Brega, and he
will reward the party with one thousand gold pieces.

3) This quest is available upon exiting the Underdark in chapter 6, if Xan is
in party. After the talk with Elhan, a mage, Ricar, teleports next to Elhan.
The player can choose to agree right away, or to refuse, in which case it is
possible to approach Ricar later.

Ricar and the party journey to Irenicus' Dungeon. When they finally exit,
they have to battle an Adamantite golem, and then head to Elhan. They are 
given a task to find the drow group. Hunrae, the group's leader,
can be found in the North Forest, the upper left corner of the map. 

The player can either believe Hunrae and let her go, or to attack her. In both
cases, the player should report to Ricar and Elhan for the quest's conclusion.

If Hunrae was killed, a drow mage will confront the party in Athkatla.

4) This quest is available in ToB, in Chapter 9, in Amkethran. Siene, an elven
girl, will approach the party, if Xan is in party, and ask them for help. The
party can agree immediately or choose to delay the encounter, and approach her
afterwards. 

Upon meeting the slavers, the party can choose to either let the
slavers pass(in which case all three elven girls remain enslaved), attack
the slavers(in which case all three elven girls are killed immediately), or
try and free the girls. PC can propose themselves as a hostage, or ask Xan to
do it. Another solution would be bribing their mercenaries.

Should Xan propose himself as a hostage, a mercenary will approach the party
within a few minutes. PC may choose to pay the ransom, bribe the mercenary, or
threaten him(INT>14 or WIS>14 or CHA>14), in which case Xan appears in a hut
that the party passes on the way to the upper Amkethran. Otherwise Xan will
approach the party in Amkethran a day later.

One more day later, Xan will initiate conversation. Should the player desire to,
they can confront the slavers in Amkethran(the bottom left corner of the map)
again and finally put an end to their existence.


SPOILERS END HERE


e. Crossmod Content
--------------------

Xan includes extra conversations for
- Dungeon Crawl
- Assassinations
- The Sellswords
- Back to Brynnlaw quest mods. These mods are available at
http://www.pocketplane.net 

Xan also includes reactions for the Romantic Encounters Mod:
http://gibberlings3.net/romanticencounters

Xan includes a reaction to the Tower of Deception mod:
http://www.blackwyrmlair.net/~valiant/

Xan includes a reaction to the Tales of the Deep Gardens mod and the Longer
Road mod:
http://www.spellholdstudios.net

Install these mods in any order.

Crossmod Banter Pack includes banters between Xan and Kelsey, Keto, Amber,
Angelo, Ajantis, Kivan, Tiax, Coran, Solaufein and other custom
characters, as well as additional romance conflicts. 
http://gibberlings3.net/crossmod

Install Crossmod Banter Pack AFTER all NPC mods.


As well, for those who want to enhance their BG1 playing experience:

Xan's Friendship Path for BG1: 
http://www.pocketplane.net/tutumods

The BG1 NPC Project(includes Xan Romance): 
http://gibberlings3.net/bg1npc

Finally, if you liked soundset and actor in this mod, you can take it with you
in your BG1 playing experience, or choose the original BG1 soundset for BG2.

Polish and French soundsets are also avaliable.

http://www.pocketplane.net/audio

------------------------------
4. Frequently Asked Questions
------------------------------

Q: Where is Xan?
A: Xan is in the Government district of Athkatla, not far from the main entrance.
You should see him once you enter the area. Look next to the Roenall Estate.
Q: But he is not there!
A: Make sure that you have actually installed the mod. Open your game directory
and run Setup-Xan.exe. If this file is not there, repeat the installation process
as described above.

Q: Xan's select/confirm sounds are all mixed up!
A: Select Xan and press K key.

Q: How often should I check for new player-initiated dialogues?
A: Every chapter or so is about right.

Q: I have a problem with one of the quests.
A: Listen to what the characters say, and check your journal. A walkthrough is
available in the "Quests and Encounters" section of this Readme.

Q: Is Xan compatible with mod X?
A: Xan should work fine with other mods. Read each Readme file for the
additional information and the installation orders.

-----------
5. Credits
-----------

Olga Silaeva (Kulyok)				Writer
						Programmer

SisterVigilante					ToB Core Romance(non-bonded)
						Voice of Xan

Joey Bracken					Voice of Xan

Matt Britton					Voices of Elven Spirits

berelinde					Voice of Siene

Proofreading: arabellaesque, Badgert, Chimera, Eleima, Princeps, Wyvern

Playtesting: arabellaesque, Chimera, Kulyok, pavelord, SisterVigilante, Wyvern,
Mary Winchester

Russian translation: Kulyok

Polish translation: Magda Buller
Crossmod translation for v9: Lava Del'Vortel

French translation: Eleima
Proofreading(French translation): Eleima, Graoumf

Moonblade's "BG1-esque" animation: Erephine, the author of One Pixel Productions.
http://www.spellholdstudios.net/ie/1pp

Coding for "BG1-like flaming sword animation" component: Nythrun

Mac OS X version: Gorilym

Help with Xan's .cre files for v10: Miloch

Flirting technology originally developed for Kelsey NPC by Jason Compton and
Jesse Meyers. http://www.pocketplane.net/kelsey

Xan was created using the resources provided by the IESDP.
http://iesdp.gibberlings3.net

Special thanks to Dominique (Domi) Sotto for giving Xan Romance a green light.

The following resource was used in writing with Brian Patterson's permission:
"Fortune Cookies of Doom" by Robi Mookerjee (major author), Chris Ashworth,
Brian Patterson, Jeremy Hoehn, Joseph Graly, Jonathan Wichmann, Charles Petersen,
Lewis Keyte, Eric W. Anderson, Dan Shinn-Krantz, James C. Shaw, and Seth Menning.

Modding communities, tutorial and technical assistance:

Pocket Plane Group			http://pocketplane.net
Spellhold Studios			http://spellholdstudios.net
The Black Wyrm's Lair			http://blackwyrmlair.net
The Chosen of Mystra			http://chosenofmystra.net
The Gibberlings Three			http://gibberlings3.net

Xan was created with the following software:

Audacity				http://audacity.sourceforge.net
DLTCEP					http://www.gibberlings3.net/tools
Infinity Explorer			http://infexp.sourceforge.net
Near Infinity				http://www.idi.ntnu.no/~joh/ni
NSIS					http://nsis.sourceforge.net
Ogg Vorbis				http://www.vorbis.com
WeiDU					http://www.weidu.org
winLAME					http://winlame.sourceforge.net

-------------------
6. Version History
-------------------

Version 19 4th August 2020
-fixed alternative soundset: sound clips should match written text

Version 18 31st January 2020
-updated .ini with the GitHub address for download
-added folder libiconv-1.9.2-1-src.zip with iconv licence info

Version 17 7th February 2019
- EET compatibility by k4thos
- (EET) Xan will no longer think he is still in hell if ToB started
- (English) setup-xan-ee.tra now matches EE description style
- corrected item descriptions (speed factors)
- added Continue() to ar0400.baf
- removed unnecessary archive "libiconv-1.9.2-1-src.7z", "handle_charsets.tpa"
- updated songlist.2da entry
- changed tob checks to GAME_INCLUDES
- made components dependent on the main component via REQUIRE_COMPONENT (so they are removed automatically if the main Xan NPC is deinstalled)
- renamed setup-xan.tp2 -> xan.tp2
- added xan.ini with mod info metadata
- Updated to WeiDU 246

Version 16
- Added an alternative voiceset by Joey Bracken

Version 15
- Multilanguage support for BG2:EE, thanks to Isaya

Version 14
- Banters with Dorn, Hexxat, Neera and Rasaad for BG2EE

Version 13
- French, Polish and Russian translations made available for BG2EE

Version 12
- Full BG2:EE compatibility

Version 11
- Fixed the issue with Xan not appearing in the Government District after kickout
- Three crossmod banters for The Sellswords mod
- Three crossmod banters for Back to Brynnlaw mod
- A reaction and a changed epilogue for Valygar Romance ToB(Romantic Encounters)

Version 10
- Xan's happy ending for the bonded path(SoA and ToB content, Readme, flirts,
player-initiated dialogue, voicing, two new epilogues - and limericks!)
- Additional talks for the friendship and the non-bonded romance paths
- Additional encounter with Ricar in ToB, Chapter 9
- Reactions to the Longer Road mod(player-initiated dialogue)
- Russian translation for the new content
- Corrected the mod's .cre files(Thanks, Miloch!)
- Updated to WeiDU 231
- Minor corrections

Version 9
- Additional crossmod banters
- Updated to WeiDU 211
- Minor corrections

Version 8
- Updated "BG1-style flaming sword animation" component
- Adjusted enemy levels in Eldreth Veluuthra quest
- Updated to WeiDU 208
- Minor corrections

Version 7
- Updated "BG1-style flaming sword animation" component
- Romantic conclusion of the friendship path is now available to all females
- Wild Mage component: level 9 Xan now has all Wild Mage-specific spells
- Updated to WeiDU 203
- Minor corrections

Version 6
- Polish translation for SoA and ToB
- Readme file is displayed on exit again
- Loot for Azag's group and Hiel's group has been toned down
- Reaction to Talak encounter(Romantic Encounters)
- Yakman interjections in the Watcher's Keep
- Readme: Crossmod Content section is now available
- Minor corrections

Version 5
- "BG1-style flaming sword animation" component
- An option to upgrade Xan's moonblade
- A sequence of weather-related dialogues for the bonded path - SoA
- A quest in Athkatla, starting in the slums
- An opportunity for the PC to suggest a Xan-NPC relationship
- Reactions to Romantic Encounters and Dungeon Crawl
- Russian translation for the new material
- Readme file is no longer displayed on exit
- Minor corrections

Version 4
- A sequence with Valygar for the bonded path - ToB
- 'Ear' flirt for both romances in SoA
- Siene's part is now voiced
- Fixed a scripting error in the last Xan-initiated flirt
- Russian translation for the new material
- Updated to WeiDU 199
- Minor corrections

Version 3
- Flirts and player-initiated dialogues for ToB
- Extra player-initiated dialogues for SoA
- A romance-related encounter in Chapter 5(lust chambers)
- A quest in Athkatla, starting in Temple District
- A quest in Chapter 6, starting at the Underdark Exit
- A ToB quest, starting in Amkethran
- Player receives Xan's journal in the end of the bonded path
- An extra epilogue for the friendship path
- Russian translation for the new material
- Updated to WeiDU 198
- Minor corrections

Version 2
- ToB portion of the mod
- Russian translation for SoA and ToB
- "Alternate Xan's class" component: Mage, Fighter/Mage, Sorcerer, Wild Mage(ToB)
- Additional NPC romance reactions for SoA
- Updated to WeiDU 195
- Altered Xan's starting proficiencies
- Altered 'spoilerish' interjections
- Adjusted voice volume
- Corrected some typographical errors

Version 1
- Initial SoA release

---------------------
7. Legal Information
---------------------

=================================================================================
BALDUR'S GATE II: SHADOWS OF AMN Developed and © 2000 BioWare Corp. All Rights
Reserved. BALDUR'S GATE II: THRONE OF BHAAL Developed and © 2001 BioWare
Corp. All Rights Reserved. Baldur's Gate, Shadows of Amn, Tales of the Sword
Coast, Forgotten Realms, the Forgotten Realms logo, Advanced Dungeons & Dragons,
the AD&D logo, TSR and the TSR logo, and the Wizards of the Coast logo, are
trademarks of the Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and
are used by Interplay Entertainment Corp. under license. All Rights Reserved.
BioWare, the BioWare Infinity Engine and the BioWare logo are the trademarks of
BioWare Corp. All Rights Reserved. Black Isle Studios and the Black Isle Studios
logo are trademarks of Interplay Entertainment Corp. All Rights Reserved.
Exclusively licensed and distributed by Interplay Entertainment Corp. All other
trademarks and copyrights are property of their respective owners.
=================================================================================

=================================================================================
Xan NPC MOD for Baldur's Gate II © 2006-2013 Olga Silaeva. Xan is not developed,
supported, or endorsed by BioWare, Black Isle Studios, Interplay Entertainment
Corp., or the Wizards of the Coast. All other trademarks and copyrights are
property of their respective owners.
=================================================================================

=================================================================================
REDISTRIBUTION NOTE: Xan was created to be freely enjoyed by all Baldur's Gate II
players. However, Xan may not be sold, published, compiled or redistributed
in any form without the consent of its author.
=================================================================================