// creator  : weidu.exe (version 23100)
// argument : FSRIDD.DLG
// game		 : .
// source	 : ./DATA/25DIALOG.BIF
// dialog	 : ./DIALOG.TLK
// dialogF  : (none)

BEGIN ~FSRIDD~

IF ~NumTimesTalkedTo(0)
~ THEN BEGIN 0 // from:
  SAY #62487 /* ~Guests! Welcome to my domain. No doubt you seek a challenge. But are you worthy of it, or merely fools?  We shall soon see.~ */
  IF ~~ THEN REPLY #62490 /* ~I shall prove my worth to you, imp.  I await your challenge.~ */ GOTO 1
  IF ~~ THEN REPLY #62491 /* ~I'm sick of games and puzzles and tests.~ */ GOTO 2
END

IF ~~ THEN BEGIN 1 // from: 0.0
  SAY #62492 /* ~Let us see if that lump between your shoulders does more than hold up your hat. We begin with a riddle.  Pay attention.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 2 // from: 0.1
  SAY #62493 /* ~Sadly, you do not make the rules here.  This is my realm, my little world.  So we do as I say.~ */
  IF ~~ THEN GOTO 3
END

IF ~~ THEN BEGIN 3 // from: 2.0 1.0
  SAY #62495 /* ~I have as many brothers as sisters, but my brothers have twice the number of sisters as brothers. How many children do my parents have?~ */
  IF ~~ THEN REPLY #62496 /* ~Four.~ */ GOTO 4
  IF ~~ THEN REPLY #62497 /* ~Five.~ */ GOTO 4
  IF ~~ THEN REPLY #62498 /* ~Six.~ */ GOTO 4
  IF ~~ THEN REPLY #62499 /* ~Seven.~ */ GOTO 6
  IF ~~ THEN REPLY #62500 /* ~Eight.~ */ GOTO 4
  IF ~~ THEN REPLY #62501 /* ~Nine.~ */ GOTO 4
  IF ~~ THEN REPLY #62502 /* ~Ten.~ */ GOTO 4
  IF ~~ THEN REPLY #62503 /* ~Eleven.~ */ GOTO 4
  IF ~~ THEN REPLY #62504 /* ~Twelve.~ */ GOTO 4
END

IF ~~ THEN BEGIN 4 // from: 3.8 3.7 3.6 3.5 3.4 3.2 3.1 3.0
  SAY #62506 /* ~So very, very wrong.  Obviously you need a hint.  Very well: be aware that I am female.  Now, one last chance.  I suggest you get it right, or you'll be very, very sorry.~ */
  IF ~~ THEN REPLY #62567 /* ~Four.~ */ GOTO 5
  IF ~~ THEN REPLY #62569 /* ~Five.~ */ GOTO 5
  IF ~~ THEN REPLY #62570 /* ~Six.~ */ GOTO 5
  IF ~~ THEN REPLY #62571 /* ~Seven.~ */ GOTO 6
  IF ~~ THEN REPLY #62572 /* ~Eight.~ */ GOTO 5
  IF ~~ THEN REPLY #62573 /* ~Nine.~ */ GOTO 5
  IF ~~ THEN REPLY #62574 /* ~Ten.~ */ GOTO 5
  IF ~~ THEN REPLY #62576 /* ~Eleven.~ */ GOTO 5
  IF ~~ THEN REPLY #62577 /* ~Twelve.~ */ GOTO 5
END

IF ~~ THEN BEGIN 5 // from: 4.8 4.7 4.6 4.5 4.4 4.2 4.1 4.0
  SAY #62509 /* ~I suspected your intelligence was lacking when I first saw you.  But do not worry.  You shall have an eternity to try and figure out the right answer.~ */
  IF ~~ THEN DO ~StartCutSceneMode()
ReallyForceSpell(Player1,IMPRISONMENT_NO_SAVE)
ReallyForceSpell(Player2,IMPRISONMENT_NO_SAVE)
ReallyForceSpell(Player3,IMPRISONMENT_NO_SAVE)
ReallyForceSpell(Player4,IMPRISONMENT_NO_SAVE)
ReallyForceSpell(Player5,IMPRISONMENT_NO_SAVE)
ReallyForceSpell(Player6,IMPRISONMENT_NO_SAVE)
Wait(2)
Kill(Player1)
Kill(Player2)
Kill(Player3)
Kill(Player4)
Kill(Player5)
Kill(Player6)
EndCutSceneMode()
~ EXIT
END

IF ~~ THEN BEGIN 6 // from: 4.3 3.3
  SAY #62511 /* ~Correct.  Perhaps you are a worthy mental adversary, despite your doltish appearance.  But to complete this challenge, you must beat me at a game of coins.~ */
  IF ~~ THEN REPLY #62560 /* ~More games?  Fine - get on with it.~ */ DO ~AddXP2DA("Plot7C")~ GOTO 7
  IF ~~ THEN REPLY #62561 /* ~I passed your pathetically simple test.  I can certainly beat you at coins.  How do you play?~ */ DO ~AddXP2DA("Plot7C")~ GOTO 7
END

IF ~~ THEN BEGIN 7 // from: 6.1 6.0
  SAY #62512 /* ~The rules are simple.  Here are 11 coins.  We alternate turns, taking 1,2 or 3 coins at a time.  Whoever takes the last coin loses.  A simple game to learn, but a difficult one to master.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 8 // from: 20.0 16.3 7.0
  SAY #62513 /* ~Since I always play fair, I will let you start. 11 coins are left.   How many will you take?  Remember - whoever takes the last coin loses.~ */
  IF ~~ THEN REPLY #62517 /* ~I will take 1 coin.~ */ GOTO 11
  IF ~~ THEN REPLY #62518 /* ~I will take 2 coins.~ */ GOTO 12
  IF ~~ THEN REPLY #62519 /* ~I will take 3 coins.~ */ GOTO 15
  IF ~~ THEN REPLY #62520 /* ~Actually, why don't YOU go first?~ */ GOTO 9
END

IF ~~ THEN BEGIN 9 // from: 8.3
  SAY #62521 /* ~If that is what you wish, then so be it.  I will take 2 coins.~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 10 // from: 11.0 9.0
  SAY #62522 /* ~There are 9 coins left.  How many will you take?~ */
  IF ~~ THEN REPLY #62529 /* ~I will take 1 coin.~ */ GOTO 15
  IF ~~ THEN REPLY #62530 /* ~I will take 2 coins.~ */ GOTO 14
  IF ~~ THEN REPLY #62531 /* ~I will take 3 coins.~ */ GOTO 13
END

IF ~~ THEN BEGIN 11 // from: 8.0
  SAY #62523 /* ~I shall take 1 coin.  The game is getting interesting, wouldn't you agree?~ */
  IF ~~ THEN GOTO 10
END

IF ~~ THEN BEGIN 12 // from: 8.1
  SAY #62527 /* ~Well played.  I will take 1 coin.  There are 8 left, and it is your move.~ */
  IF ~~ THEN REPLY #62542 /* ~I will take 1 coin.~ */ GOTO 14
  IF ~~ THEN REPLY #62543 /* ~I will take 2 coins.~ */ GOTO 13
  IF ~~ THEN REPLY #62544 /* ~I will take 3 coins.~ */ GOTO 21
END

IF ~~ THEN BEGIN 13 // from: 12.1 10.2
  SAY #62532 /* ~Very well, just 1 coin for me.  Things are not looking too good for you now, are they?~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 14 // from: 12.0 10.1
  SAY #62535 /* ~I will take 2 coins.  I am afraid you are in a difficult position now.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 15 // from: 10.0 8.2
  SAY #62536 /* ~Let me see... I grab 3 coins.  I hate to say it, but this one is as good as over.~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0 14.0 13.0
  SAY #62537 /* ~Only 5 coins left, and it is your play.  How many do you want?~ */
  IF ~~ THEN REPLY #62549 /* ~I will take 1 coin.~ */ GOTO 19
  IF ~~ THEN REPLY #62551 /* ~I will take 2 coins~ */ GOTO 18
  IF ~~ THEN REPLY #62552 /* ~I will take 3 coins.~ */ GOTO 17
  IF ~~ THEN REPLY #62553 /* ~I forfeit.  Let's try this one more time.~ */ GOTO 8
END

IF ~~ THEN BEGIN 17 // from: 16.2
  SAY #62538 /* ~Only 2 coins left - a simple decision on my part.  I take 1.~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 18 // from: 16.1
  SAY #62539 /* ~Just 3 coins remain.  Obviously, I will take 2 of them.~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 19 // from: 16.0
  SAY #62540 /* ~Let me see... 4 coins left.  Give me these 3 coins, and the match is over!~ */
  IF ~~ THEN GOTO 20
END

IF ~~ THEN BEGIN 20 // from: 19.0 18.0 17.0
  SAY #62541 /* ~Just 1 lonely coin left, and it is all yours.  As I said, a difficult game to master.  But I will give you another chance.~ */
  IF ~~ THEN GOTO 8
END

IF ~~ THEN BEGIN 21 // from: 12.2
  SAY #62545 /* ~Damn - you are smarter than you look.  Or sound.  Or act.  Fine, I will take 3 coins and leave just 2.  Try not to sprain anything figuring this out.~ */
  IF ~~ THEN REPLY #62546 /* ~I will take 1 and leave the last coin for you, imp! The victory is mine!~ */ GOTO 22
END

IF ~~ THEN BEGIN 22 // from: 21.0
  SAY #62578 /* ~You may have won, but I'm not going to stick around here and listen to your gloating!~ */
  IF ~~ THEN DO ~AddXP2DA("Plot7D")
CreateCreatureObjectEffect("FSSPIRC","SPFLESHS",Player1)
ActionOverride("FSSpirc",Wait(1))
ActionOverride("FSSpirc",StartDialogNoSet(Player1))
DestroySelf()
~ EXIT
END
