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

BEGIN ~BDACT06~
//////////////////////////////////////////////////
// WARNING: this file contains non-trivial WEIGHTs
//////////////////////////////////////////////////

IF WEIGHT #10 /* Triggers after states #: 2 3 4 15 20 23 28 33 37 38 even though they appear after this state */
~GlobalGT("PlayQuality","GLOBAL",5)
GlobalLT("PlayQuality","GLOBAL",10)
!Global("BardPlotOn","GLOBAL",2)~ THEN BEGIN 0 // from:
  SAY #40998 /* ~I'm... I'm just the understudy, more or less, <SIRMAAM>.  And I do some of the stage backgrounds... painting, mostly.  Higgold says I might make a real actor some day.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #11 /* Triggers after states #: 2 3 4 15 20 23 28 33 37 38 even though they appear after this state */
~GlobalGT("PlayQuality","GLOBAL",0)
GlobalLT("PlayQuality","GLOBAL",6)
!Global("BardPlotOn","GLOBAL",2)~ THEN BEGIN 1 // from:
  SAY #40999 /* ~Ew, there's going to be trouble, now, isn't there?  The cursed play... always wanted to see it.  Didn't dare, though.  Make you blind, I hear.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #0 ~Global("BardPlot1","GLOBAL",30)~ THEN BEGIN 2 // from:
  SAY #41000 /* ~Er... I'm trying my best to help out, <SIRMAAM>.  Really I am.  Being an actor, though... I don't know... at least the play is really wonderfully written.~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #1 ~Global("BardPlot1","GLOBAL",20)~ THEN BEGIN 3 // from:
  SAY #41001 /* ~I didn't know they ever kept a steady playhouse in Athkatla.  People here... aren't the real theater-going type.  Can't show off your wealth enough, I guess...~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #2 ~Global("BardPlot1","GLOBAL",25)~ THEN BEGIN 4 // from:
  SAY #41003 /* ~We're all going to be famous!  Next year should be even better!~ */
  IF ~~ THEN EXIT
END

IF ~~ THEN BEGIN 5 // from: BDHIGG01:40.0
  SAY #41075 /* ~Yes, that's me.  I look forward to learning more of the craft, my <PRO_LADYLORD>.~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 20
END

IF ~~ THEN BEGIN 6 // from: BDHIGG01:107.0
  SAY #41475 /* ~Don't... don't be so hard on yourself, Higgold...~ */
  IF ~~ THEN EXTERN ~BDACT05~ 28
END

IF ~~ THEN BEGIN 7 // from: BDHIGG01:108.0
  SAY #41480 /* ~I... I can play the harp.  I have taken many lessons...~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 109
END

IF ~~ THEN BEGIN 8 // from: BDHIGG01:109.0
  SAY #41482 /* ~I can play the harp.  Really well, in fact.~ */
  IF ~~ THEN EXTERN ~BDACT05~ 31
END

IF ~~ THEN BEGIN 9 // from: BDACT05:31.0
  SAY #41484 /* ~Well... I don't know the score, much.  But I know it a little.  I... I suppose I could try to write a new score.  It wouldn't be so bad...~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 110
END

IF ~~ THEN BEGIN 10 // from: BDACT05:32.0
  SAY #41501 /* ~... I suppose...~ */
  IF ~~ THEN DO ~SetGlobal("ReturnToPositions","AR0523",1)
SetGlobalTimer("MeetHiggin6","GLOBAL",SEVEN_DAYS)
SetGlobal("BardPlot1","GLOBAL",19)
SetGlobal("BardPlotOn","GLOBAL",0)~ EXIT
END

IF ~~ THEN BEGIN 11 // from: BDHIGG01:110.1
  SAY #41502 /* ~You... you would allow me, <PRO_LADYLORD> patron?  Oh, joy!  I will do my absolute best, I promise!~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 112
END

IF ~~ THEN BEGIN 12 // from: BDACT05:33.0
  SAY #41509 /* ~It's as good as anything I could come up with, for sure...~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 116
END

IF ~~ THEN BEGIN 13 // from: BDACT05:34.0
  SAY #41588 /* ~I... I wish I could do something like that!  It's better than anything I could have done... in a million years, even!~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 116
END

IF ~~ THEN BEGIN 14 // from: BDACT05:35.0
  SAY #41590 /* ~And I will get to play it!  Thank you, patron... I surely wish I was a bard, and I could write such a work of art...~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 116
END

IF WEIGHT #3 ~Global("BardPlot1","GLOBAL",46)~ THEN BEGIN 15 // from:
  SAY #41611 /* ~We open our play in the Turmish land, in the highest peaks of the Aphrunn, the nearest town away by weeks...~ */
  IF ~~ THEN GOTO 16
END

IF ~~ THEN BEGIN 16 // from: 15.0
  SAY #41612 /* ~A dark and neglected castle sits amidst the blowing drifts of snow... a silent sentinel that watches the path of histories far below...~ */
  IF ~~ THEN GOTO 17
END

IF ~~ THEN BEGIN 17 // from: 16.0
  SAY #41613 /* ~And in this castle, my master lives.  A sorcerer of the kind that time forgives, vaults of ancient knowledge in his thoughts... but his aged heart twists and rots.~ */
  IF ~~ THEN GOTO 18
END

IF ~~ THEN BEGIN 18 // from: 17.0
  SAY #41614 /* ~My master taught me much of magic and spell, but I learned much more when winter fell...~ */
  IF ~~ THEN GOTO 19
END

IF ~~ THEN BEGIN 19 // from: 18.0
  SAY #41615 /* ~For with the snow came a woman lost... Karenina she was, a naive lamb, but 'twas she and my master both that paid the cost...~ */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("Cut31L)~ EXIT
END

IF WEIGHT #4 ~Global("BardPlot1","GLOBAL",47)~ THEN BEGIN 20 // from:
  SAY #41639 /* ~I do not understand, my master... why do you cry so?  What have you done to Karenina?~ */
  IF ~~ THEN EXTERN ~BDACT05~ 43
END

IF ~~ THEN BEGIN 21 // from: BDACT05:43.0
  SAY #41641 /* ~Gone?  She is dead, then?~ */
  IF ~~ THEN EXTERN ~BDACT05~ 44
END

IF ~~ THEN BEGIN 22 // from: BDACT05:44.0
  SAY #41643 /* ~You... you are married, my master?!~ */
  IF ~~ THEN EXTERN ~BDACT05~ 45
END

IF WEIGHT #5 ~Global("BardPlot1","GLOBAL",52)~ THEN BEGIN 23 // from:
  SAY #41680 /* ~We open our play in the Turmish land, in the highest peaks of the Aphrunn, the nearest town away by weeks...~ */
  IF ~~ THEN GOTO 24
END

IF ~~ THEN BEGIN 24 // from: 23.0
  SAY #41681 /* ~A dark and neglected castle sits amidst the blowing drifts of snow... a silent sentinel that watches the path of histories far below...~ */
  IF ~~ THEN GOTO 25
END

IF ~~ THEN BEGIN 25 // from: 24.0
  SAY #41682 /* ~And in this castle, my master lives.  A sorcerer of the kind that time forgives, vaults of ancient knowledge in his thoughts... but his aged heart twists and rots.~ */
  IF ~~ THEN GOTO 26
END

IF ~~ THEN BEGIN 26 // from: 25.0
  SAY #41683 /* ~My master taught me much of magic and spell, but I learned much more when winter fell...~ */
  IF ~~ THEN GOTO 27
END

IF ~~ THEN BEGIN 27 // from: 26.0
  SAY #41684 /* ~For with the snow came a woman lost... Karenina she was, a naive lamb, but 'twas she and my master both that paid the cost...~ */
  IF ~~ THEN DO ~StartCutSceneMode()
StartCutScene("Cut31r")~ EXIT
END

IF WEIGHT #6 ~Global("BardPlot1","GLOBAL",53)
Global("Monologue","AR0523",0)~ THEN BEGIN 28 // from:
  SAY #41710 /* ~I do not understand, my master... why do you cry so?  What have you done to Karenina?~ */
  IF ~~ THEN REPLY #41711 /* ~The kindest and cruelest act that I could summon, good pupil.  The lass is gone.  Now go.~ */ GOTO 29
  IF ~~ THEN REPLY #41712 /* ~The kindest and cruelest act that I could summon, good pupil.  The lass has gone.~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)~ GOTO 29
END

IF ~~ THEN BEGIN 29 // from: 28.1 28.0
  SAY #41713 /* ~Gone?  She is dead, then?~ */
  IF ~~ THEN REPLY #41714 /* ~Karenina desired to join me in my eternal life, good Whitten.  But I could not wish upon another such a fate.  Truer still, I could not bear to part with... my wife.~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)~ GOTO 31
  IF ~~ THEN REPLY #41715 /* ~Karenina wished to join me in my neverending life, good Whitten.  But even I could not wish upon another such a fate.  But, truer still, I could not bear to part with her... my wife.~ */ GOTO 30
END

IF ~~ THEN BEGIN 30 // from: 29.1
  SAY #41716 /* ~You... you are married, my master?!~ */
  IF ~~ THEN REPLY #41718 /* ~Aye.  Married now and forever more.  Karenina will stand forever for me to look upon... and she will not suffer the long years nor the pain that would make her weep.  For Karenina is now eternal stone... and in that blessed stone forever shall she sleep...~ */ GOTO 32
  IF ~~ THEN REPLY #41719 /* ~Aye.  Married now and forever.  Karenina will exist forever for me to gaze upon... and she will not endure the long years nor the pain that would make her weep.  For Karenina is now stone... and in that kind stone forever shall she sleep...~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)~ GOTO 32
END

IF ~~ THEN BEGIN 31 // from: 29.0
  SAY #41717 /* ~I... ah, you... you are married, my master?!~ */
  IF ~~ THEN REPLY #41720 /* ~Aye.  Married now and forever more.  Karenina will stand forever for me to look upon... and she will not suffer the long years nor the pain that would make her weep.  For Karenina is now eternal stone... and in that blessed stone forever shall she sleep...~ */ GOTO 32
  IF ~~ THEN REPLY #41721 /* ~Aye.  Married now and forever.  Karenina will exist forever for me to gaze upon... and she will not endure the long years nor the pain that would make her weep.  For Karenina is now stone... and in that kind stone forever shall she sleep...~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)~ GOTO 32
END

IF ~~ THEN BEGIN 32 // from: 31.1 31.0 30.1 30.0
  SAY #41722 /* ~You... you did that...?~ */
  IF ~~ THEN REPLY #41723 /* ~Now go, my pupil... leave me to my stony bride.  I shall caress her cold and hard cheek once more... for tonight a part of me has died inside.~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)
StartCutSceneMode()
StartCutScene("Cut31s2")~ EXIT
  IF ~~ THEN REPLY #41724 /* ~Now go, my pupil... leave me with my bride.  I shall touch her cold and unrelenting cheek once more... tonight a part of me has died inside.~ */ DO ~StartCutSceneMode()
StartCutScene("Cut31s2")~ EXIT
END

IF WEIGHT #7 ~Global("Monologue","AR0523",1)~ THEN BEGIN 33 // from:
  SAY #41725 /* ~(cough)~ */
  IF ~~ THEN REPLY #41726 /* ~Death by pieces, small and many though they are...
What crueler a fate... could await an eternal star?~ */ DO ~SetGlobal("Monologue","AR0523",2)
StartCutSceneMode()
StartCutScene("Cut31t")~ EXIT
  IF ~~ THEN REPLY #41727 /* ~Death by inches, small and many though they are...
What crueler a destiny... could await a heavenly star?~ */ DO ~IncrementGlobal("playmistake","GLOBAL",1)
StartCutSceneMode()
StartCutScene("Cut31t")~ EXIT
END

IF ~~ THEN BEGIN 34 // from: BDHIGG01:148.0
  SAY #42063 /* ~I... I messed up a few of my lines, especially in the last scene...~ */
  IF ~~ THEN EXTERN ~BDACT03~ 22
END

IF ~~ THEN BEGIN 35 // from: BDHIGG01:159.0
  SAY #42090 /* ~I... I messed up a few of my lines, especially in the last scene... but I'm glad it turned out okay!~ */
  IF ~~ THEN EXTERN ~BDACT04~ 39
END

IF ~~ THEN BEGIN 36 // from: BDACT02:18.0
  SAY #42096 /* ~Hurrah!!~ */
  IF ~~ THEN EXTERN ~BDHIGG01~ 152
END

IF WEIGHT #8 ~GlobalGT("PlayQuality","GLOBAL",9)
!Global("BardPlotOn","GLOBAL",2)~ THEN BEGIN 37 // from:
  SAY #42116 /* ~I never thought that being part of an acting troupe would be like this!  This... the play is wonderful!  Beautiful!  I am so happy I met Higgold!~ */
  IF ~~ THEN EXIT
END

IF WEIGHT #9 ~GlobalLT("PlayQuality","GLOBAL",1)
!Global("BardPlotOn","GLOBAL",2)~ THEN BEGIN 38 // from:
  SAY #42117 /* ~Everybody's... so mad.  And they're all blaming each other.  Is this what the theater is like?  Nothing feels... right about this.~ */
  IF ~~ THEN EXIT
END
