// creator  : weidu.exe (version 23100)
// argument : _OBE.DLG
// game		 : .
// source	 : ./override/_OBE.DLG
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~_OBE~

IF ~NumberOfTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #88712 /* ~<CHARNAME>, the Gatewarden "arsked" me to prepare a little going away party for you! A bit of mass combat practice is in order, I believe. Well I'll make it real simple for you. Canderous, Mordaine, Arkanis, Deder and Osprey are all going to join your party. You'll have complete control over them, same as you will with anyone else who might join you in your coming travels.~ */
  IF ~~ THEN GOTO 1
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #88713 /* ~Once they've all joined your party, I'm going to summon in several illusions of common monsters you might encounter outside the safety of this Keep. These illusions will attack the party and it will be up to you to issue the necessary orders to dispose of them. Remember, these creatures are illusions and they won't be able to hurt you. Try your best to kill them, however, because in the real world, pain, harm, and even death are far more real.~ */
  IF ~~ THEN GOTO 2
END

IF ~~ THEN BEGIN 2 // from: 1.0
  SAY #88714 /* ~Some of your comrades will have magic items such as potions and wands. You'll have to equip these in the quick slots of the characters who have them. Some of them also have spells. You can cast these during the battle. Remember, even thieves and fighters can benefit from a good understanding of these more arcane forms of combat.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0
  SAY #88715 /* ~Every so often, I will ask you if you've had enough. If you have, then I shall teleport you back outside. If you wish to continue practicing, however, then I shall create some more illusions for you to fight. Are you ready then? Good, here we go!~ */
  IF ~~ THEN DO ~ActionOverride("osprey",JoinParty())
ActionOverride("canderous",JoinParty())
ActionOverride("mordaine",JoinParty())
ActionOverride("arkanis",JoinParty())
ActionOverride("deeder",JoinParty())
CreateCreature("_IGIBBER",[724.660],0)
CreateCreature("_IGIBBER",[754.701],0)
CreateCreature("_IGIBBER",[698.568],0)
CreateCreature("_IGIBBER",[823.574],0)
CreateCreature("_IGIBBER",[919.533],0)
CreateCreature("_IGIBBER",[798.460],0)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(1)
~ THEN BEGIN 4 // from:
  SAY #88716 /* ~Have you had enough yet? If you're ready to go, I'll teleport you back outside, otherwise you better be ready for some more fighting.~ */
  IF ~~ THEN REPLY #88717 /* ~Bring on some more monsters, I'm not ready to quit yet.~ */ GOTO 6
  IF ~~ THEN REPLY #88718 /* ~I think I've had enough.  Just take me outside.~ */ GOTO 5
  IF ~~ THEN REPLY #88719 /* ~I'll just deal with the monsters that I'm fighting now.  Ask me if I want to fight more a little later.~ */ EXIT
END

IF ~~ THEN BEGIN 5 // from: 14.1 11.1 9.1 7.1 4.1
  SAY #88720 /* ~Okay then. Once I teleport you outside, you're not going to be able to get back in here again. This is for your own protection, as the illusions I use can sometimes be dangerous.~ */
  IF ~~ THEN DO ~SetGlobal("OBE","GLOBAL",99)
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.0
  SAY #88721 /* ~Good! Then I will create some more illusionary monsters. This time I'll create some xvarts. Xvarts are primarily mountain-dwelling creatures, but they can be often found on the Coastway. Also, if you would like to use that wand in Osprey's possession, then simply right click on its icon in her inventory. This will bring up a description of the wand. There will be a button at the bottom of that page that says "Identify."  Press that button to identify the wand and you will then be able to place it in Osprey's Quick Item slot where she can make use of it in combat.  Whenever a mage in your party has the Identify spell memorized, just remember to put the item in his inventory and repeat the instructions that I've given you.~ */
  IF ~~ THEN DO ~CreateCreature("_IXVART",[724.660],0)
CreateCreature("_IXVART",[754.701],0)
CreateCreature("_IXVART",[698.568],0)
CreateCreature("_IXVART",[823.574],0)
CreateCreature("_IXVART",[919.533],0)
CreateCreature("_IXVART",[798.460],0)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(2)
~ THEN BEGIN 7 // from:
  SAY #88722 /* ~Have you had enough yet?  If you're ready to go, I'll teleport you back outside, otherwise you better be ready for some more fighting.~ */
  IF ~~ THEN REPLY #88717 /* ~Bring on some more monsters, I'm not ready to quit yet.~ */ GOTO 8
  IF ~~ THEN REPLY #88718 /* ~I think I've had enough.  Just take me outside.~ */ GOTO 5
  IF ~~ THEN REPLY #88719 /* ~I'll just deal with the monsters that I'm fighting now.  Ask me if I want to fight more a little later.~ */ EXIT
END

IF ~~ THEN BEGIN 8 // from: 7.0
  SAY #88723 /* ~Good! Then I'll create some more illusionary monsters. This time I'm going to create some skeletons. Try to hold them at bay using Osprey's Turn Undead ability. To do this, just press down on the Skull icon that appears on her toolbar.~ */
  IF ~~ THEN DO ~CreateCreature("_ISKELET",[724.660],0)
CreateCreature("_ISKELET",[754.701],0)
CreateCreature("_ISKELET",[698.568],0)
CreateCreature("_ISKELET",[823.574],0)
CreateCreature("_ISKELET",[919.533],0)
CreateCreature("_ISKELET",[798.460],0)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(3)
~ THEN BEGIN 9 // from:
  SAY #88722 /* ~Have you had enough yet?  If you're ready to go, I'll teleport you back outside, otherwise you better be ready for some more fighting.~ */
  IF ~~ THEN REPLY #88717 /* ~Bring on some more monsters, I'm not ready to quit yet.~ */ GOTO 10
  IF ~~ THEN REPLY #88718 /* ~I think I've had enough.  Just take me outside.~ */ GOTO 5
  IF ~~ THEN REPLY #88719 /* ~I'll just deal with the monsters that I'm fighting now.  Ask me if I want to fight more a little later.~ */ EXIT
END

IF ~~ THEN BEGIN 10 // from: 9.0
  SAY #88724 /* ~Good! Then I'll create some more illusionary monsters. I'm creating kobolds this time. They have bows, so you may have to use a different technique to fight them.~ */
  IF ~~ THEN DO ~CreateCreature("_IKOBOLD",[724.660],0)
CreateCreature("_IKOBOLD",[754.701],0)
CreateCreature("_IKOBOLD",[698.568],0)
CreateCreature("_IKOBOLD",[823.574],0)
CreateCreature("_IKOBOLD",[919.533],0)
CreateCreature("_IKOBOLD",[798.460],0)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(4)
~ THEN BEGIN 11 // from:
  SAY #88722 /* ~Have you had enough yet?  If you're ready to go, I'll teleport you back outside, otherwise you better be ready for some more fighting.~ */
  IF ~~ THEN REPLY #88717 /* ~Bring on some more monsters, I'm not ready to quit yet.~ */ GOTO 12
  IF ~~ THEN REPLY #88718 /* ~I think I've had enough.  Just take me outside.~ */ GOTO 5
  IF ~~ THEN REPLY #88719 /* ~I'll just deal with the monsters that I'm fighting now.  Ask me if I want to fight more a little later.~ */ EXIT
END

IF ~~ THEN BEGIN 12 // from: 11.0
  SAY #88725 /* ~Good! Then I'll create even more illusionary monsters. This time I'll create some tasloi. These creatures are usually only found in forests. But then again, Cloakwood is only a few days' travel north of Candlekeep.~ */
  IF ~~ THEN DO ~CreateCreature("_ITASLOI",[724.660],0)
CreateCreature("_ITASLOI",[754.701],0)
CreateCreature("_ITASLOI",[698.568],0)
CreateCreature("_ITASLOI",[823.574],0)
CreateCreature("_ITASLOI",[919.533],0)
CreateCreature("_ITASLOI",[798.460],0)
~ EXIT
END

IF ~NumberOfTimesTalkedTo(10)
~ THEN BEGIN 13 // from:
  SAY #88726 /* ~I think that's enough fighting for the day. You're starting to look pretty tired and my magical abilities have been stretched to very near their limit.  I'm going to teleport you outside now, and I think it would be good if you went and talked to your foster father, Gorion. You won't be able to enter these cellars once I teleport you out. That's for your own safety as sometimes the aftermath of my illusions can be dangerous.~ */
  IF ~~ THEN DO ~SetGlobal("OBE","GLOBAL",99)
~ EXIT
END

IF ~True()
~ THEN BEGIN 14 // from:
  SAY #88722 /* ~Have you had enough yet?  If you're ready to go, I'll teleport you back outside, otherwise you better be ready for some more fighting.~ */
  IF ~~ THEN REPLY #88717 /* ~Bring on some more monsters, I'm not ready to quit yet.~ */ GOTO 15
  IF ~~ THEN REPLY #88718 /* ~I think I've had enough.  Just take me outside.~ */ GOTO 5
  IF ~~ THEN REPLY #88719 /* ~I'll just deal with the monsters that I'm fighting now.  Ask me if I want to fight more a little later.~ */ EXIT
END

IF ~~ THEN BEGIN 15 // from: 14.0
  SAY #88727 /* ~Good!  Then I'll create some more illusionary monsters.~ */
  IF ~~ THEN DO ~CreateCreature("_IHOBGOB",[724.660],0)
CreateCreature("_IHOBGOB",[754.701],0)
CreateCreature("_IHOBGOB",[698.568],0)
CreateCreature("_IHOBGOB",[823.574],0)
CreateCreature("_IHOBGOB",[919.533],0)
CreateCreature("_IHOBGOB",[798.460],0)
~ EXIT
END
