if Yap=1{MsgBox.Msg="High, high in an iron tower, there is a lovely princess.         #She was taken into the tower when she was reading #stories of love."
SimpleFadeInOut.Act=1
with NPC{visible=0}
global.CreateZ=EvilKing.z
instance_create(EvilKing.x,EvilKing.y,TinderBoxStage)
TinderBoxStage.ActorAX=-140
TinderBoxStage.ActorBX=320
TinderBoxStage.ActorCX=32
TinderBoxStage.ActorCDir=270
TinderBoxStage.ActorCY=-32
TinderBoxStage.ActorDX=320
TinderBoxStage.ActorEX=-320
TinderBoxStage.ActorFX=320
GameCam.direction=90
GameCam.x=TinderBoxStage.x
GameCam.y=TinderBoxStage.y+240
GameCam.z=72
sound_loop(ThePlayBGM)
BGA.SkyTop=c_black
BGA.SkyBot=c_navy
d3d_set_fog(true,c_black,32,800)
TinderBoxStage.Talk=3
Targeted=0
}

if Yap=2{MsgBox.Msg="She wanted to know what it really meant to love...         #but her father forbade it, for if she were ever to love #someone, someone other than him would rule the #kingdom."
}
if Yap=3{MsgBox.Msg="As she was locked in the iron tower, she could never #read such stories of love...           #Instead she fantasized of it more and more..."
}
if Yap=4{MsgBox.Msg="#Little did she know that her fantasies would be #realized soon enough..."
}

if Yap=5{MsgBox.Msg="Let us journey into the forest, where the trees grow, #and the fruit is ripe, and ready for harvest...           #and a boy meets his destiny."
}
if Yap=6{
TinderBoxStage.Talk=3
with TinderBoxStage{
FakeActorAX=-32
ActorADir=0
FakeActorBX=320
FakeActorCX=32
FakeActorCY=-32
ActorCDir=270
FakeActorDX=320
ActorDDir=180
FakeActorEX=-320
FakeActorEY=-32
ActorEDir=180
FakeActorFX=320
event_perform(ev_other,ev_user0)
Talk=0
}
alarm[4]=60
MsgBox.Msg="?."
MsgBox.Letter=1
Yap=7
MsgBox.Dist=0
MsgBox.Act=0
}

if Yap=8{
MsgBox.Msg="#Hello, young man...            #What takes you this far into the woods?"
TinderBoxStage.Talk=3
}

if Yap=9 {MsgBox.Msg="#Not much, really..."
TinderBoxStage.Talk=1
}

if Yap=10 {MsgBox.Msg="Good. Could you help me with something?          #You see, I'm an old woman, and I need help retrieving #something... important."
TinderBoxStage.Talk=3
}

if Yap=11 {MsgBox.Msg="You see, there is something important within this #hollowed old tree. It's a tinder box. Yes, there's plenty #of gold inside, but I don't need that. If you help me, #you can have all the gold you can carry."
}

if Yap=12{MsgBox.Msg="#I'll get it for you, madam."
TinderBoxStage.Talk=1
}

if Yap=13{
MsgBox.Msg="#Thank you, but watch out for the three dogs, with #their enormous eyes..."
TinderBoxStage.Talk=3}

if Yap=14 {
Yap=15
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
Talk=0
FakeActorAX=0
FakeActorAY=-40
ActorADir=90
ActorCDir=180
event_perform(ev_other,ev_user0)}
}

if Yap=16 {MsgBox.Msg="Within the hollow tree, there was a hall with lots of #gold, and three dogs with large eyes watched him as #he took all the gold he could carry."
TinderBoxStage.Talk=3}

if Yap=17 {MsgBox.Msg="#...and he found an ordinary-looking tinder box.           #He brought that as well."
}

if Yap=18 {
Yap=19
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
Talk=0
FakeActorAX=16
FakeActorAY=-32
ActorADir=0
ActorCDir=180
event_perform(ev_other,ev_user0)}
}

if Yap=20{
MsgBox.Msg="#Okay, I have your tinder box...         #...why do you need it?"
TinderBoxStage.Talk=1}

if Yap=21 {MsgBox.Msg="#It's not really important what I need it for. Just give #it to me."
TinderBoxStage.Talk=3}

if Yap=22 {MsgBox.Msg="#If gold is none of your concern, then this little tinder #box must be better than any gold in the world."
TinderBoxStage.Talk=1}

if Yap=23 {MsgBox.Msg="Well, isn't that nice? You are no swine when you see #a pearl. ...perhaps you should keep it, and see for #yourself what's so special..."
TinderBoxStage.Talk=3}
if Yap=24 {
Yap=25
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{Talk=0
FakeActorAX=-160
FakeActorAY=0
ActorADir=180
ActorCDir=0
FakeActorCX=160
FakeActorCY=0
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=26 {
Yap=27
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
SimpleFadeInOut.Act=1
TinderBoxStage.BG=1
}

if Yap=28 {MsgBox.Msg="#When he came into town, he spent his money on food, #nice clothing, and other frivolities..."
with TinderBoxStage{
FakeActorAX=-16
FakeActorAY=0
ActorADir=0
event_perform(ev_other,ev_user0)}
}

if Yap=29 MsgBox.Msg="As time went on, he spent his money more and more, #but none of the frivolities of the world could make him #happier than he wanted to be."

if Yap=30 {
Yap=31
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{FakeActorAX=160
FakeActorAY=0
ActorADir=0
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=32 {
Yap=33
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
SimpleFadeInOut.Act=1
with TinderBoxStage{FakeActorAX=-24
FakeActorAY=12
ActorADir=180
BG=2
event_perform(ev_other,ev_user0)
}
}

if Yap=34 MsgBox.Msg="#Eventually, his supply of gold ran out...           #and he had to live in a dark attic..."

if Yap=35 {MsgBox.Msg="#It is so dark.           #I cannot see a thing."
with TinderBoxStage{
ActorADir=270
Talk=1
}
}

if Yap=36 MsgBox.Msg="#Perhaps, this tinder box would be good for something #about now..."

if Yap=37 {
Yap=38
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
ActorADir=180
ActorEDir=0
FakeActorEX=24
FakeActorEY=-8
Talk=0
event_perform(ev_other,ev_user0)}
}

if Yap=39 {MsgBox.Msg="#Poof."
TinderBoxStage.ActorADir=0}

if Yap=40 MsgBox.Msg="#Greetings, master. What dost thou wish for?"

if Yap=41 {MsgBox.Msg="#It's one of the three dogs I met in the hollow tree."
TinderBoxStage.Talk=1}

if Yap=42 {MsgBox.Msg="#Yes, I am. Ask any wish, and I shall granteth it unto #you."
TinderBoxStage.Talk=0}

if Yap=43 {MsgBox.Msg="#...okay...                #Could you get me some money?"
TinderBoxStage.Talk=1}
if Yap=44 {MsgBox.Msg="#Thy wish is my command.             #...poof."
TinderBoxStage.Talk=0}

if Yap=45 {
Yap=46
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorEX=160
FakeActorEY=0
event_perform(ev_other,ev_user0)}
}

if Yap=47 {
Yap=48
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorEX=-16
FakeActorEY=-4
event_perform(ev_other,ev_user0)}
}

if Yap=49 MsgBox.Msg="#Poof."

if Yap=50 MsgBox.Msg="#Here is the money thou hast requested.           #Taketh what thou wilt."

if Yap=51 {MsgBox.Msg="#Thank you, doggie."
TinderBoxStage.Talk=1}
if Yap=52 {MsgBox.Msg="#It is my pleasure to serveth you, master. Dost thou #wish for anything else?"
TinderBoxStage.Talk=0}
if Yap=53 MsgBox.Msg="I can see, within your heart, that which you wish for #the most.              #Thou wishest to be happy...               #Just giveth the command, and I shall do thy will."

if Yap=54 {MsgBox.Msg="#...can I think about it?"
TinderBoxStage.Talk=1}
if Yap=55 {MsgBox.Msg="#Yes, master. Taketh thy time."
TinderBoxStage.Talk=0}
if Yap=56 {
Yap=57
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorEX=160
FakeActorEY=0
FakeActorAX=-120
ActorADir=180
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=58 {
Yap=59
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
SimpleFadeInOut.Act=1
with TinderBoxStage{
FakeActorAX=8
FakeActorAY=-16
ActorADir=0
BG=1
event_perform(ev_other,ev_user0)}
}

if Yap=60 MsgBox.Msg="#As he wondered what he would wish for, he passed #by the iron tower, which held the princess."

if Yap=61 {MsgBox.Msg="Hmm...         #I hear a lovely princess lives in this tower against #her will...          #I wonder, just how lovely is she?"
with TinderBoxStage{
FakeActorAX=0
FakeActorAY=-32
ActorADir=90
Talk=1
event_perform(ev_other,ev_user0)}
}

if Yap=62 MsgBox.Msg="I hear she is the most beautiful woman in the world.          #Is it really true?           #Is she really that beautiful?             #Is she really there?"

if Yap=63 {
Yap=64
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorAX=160
FakeActorAY=0
ActorADir=0
Talk=0
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=65 {
Yap=66
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
SimpleFadeInOut.Act=1
with TinderBoxStage{
FakeActorAX=-48
FakeActorAY=8
ActorADir=180
BG=2
event_perform(ev_other,ev_user0)}
}

if Yap=67 MsgBox.Msg="And so, that night, the boy could hardly sleep.          #When he awoke, he couldn't stop thinking about #the mysterious princess."

if Yap=68 {
Yap=69
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorEX=0
FakeActorEY=-4
ActorADir=0
event_perform(ev_other,ev_user0)}
}

if Yap=70 MsgBox.Msg="#Yes, master?"

if Yap=71 {MsgBox.Msg="I wish to see the princess in the iron tower, for I know #not whether or not she is as beautiful as the people #say she is."
TinderBoxStage.Talk=1}

if Yap=72 {MsgBox.Msg="#Yes, master. You shalt see thy fair lady.           #Poof."
TinderBoxStage.Talk=0}

if Yap=73 {
Yap=74
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorEX=320
FakeActorEY=-2
event_perform(ev_other,ev_user0)}
}

if Yap=75 {
Yap=76
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorBX=-8
FakeActorBY=8
ActorBDir=360
FakeActorEX=-8
FakeActorEY=6
event_perform(ev_other,ev_user0)}
}

if Yap=77 MsgBox.Msg="#Poof.             #Here she is."

if Yap=78 {MsgBox.Msg="#Oh...          #It's true."
with TinderBoxStage{
FakeActorAX=-8
FakeActorAY=4
FakeActorEX=32
FakeActorEY=-24
Talk=1
event_perform(ev_other,ev_user0)}
}

if Yap=79 {MsgBox.Msg="#There she lay...            #So beautiful..."
TinderBoxStage.ActorADir=270
}

if Yap=80 MsgBox.Msg="#The rumors were true.             #This princess is truly the fairest woman of all..."

if Yap=81 MsgBox.Msg="#Her lips...           #It would be a great duty for my lips to meet hers..."

if Yap=82 {
Yap=83
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorAX=-16
FakeActorBX=16
FakeActorAY=0
FakeActorBY=0
ActorADir=0
ActorBDir=180
Talk=0
event_perform(ev_other,ev_user0)}
}

if Yap=84 {MsgBox.Msg="Huh?            #Are you... are you the man who I have been seeing #outside my window?"
TinderBoxStage.Talk=2}
if Yap=85 {MsgBox.Msg="Have you seen me outside the window?           #If I have, I am now grateful for you witnessing my #appearance."
TinderBoxStage.Talk=1}
if Yap=86 {MsgBox.Msg="You are the one... the one I love.         #I always wished I would meet you.        #Though I know nothing about you, I want nothing #but to be with you."
TinderBoxStage.Talk=2}
if Yap=87 MsgBox.Msg="#Tell me, my hero, is this another dream?             #Kiss me, my love, so I know it is real..."

if Yap=88 {MsgBox.Msg="#As you request... my darling..."
TinderBoxStage.Talk=1}

if Yap=89 {
Yap=90
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorAX=8
FakeActorBX=16
FakeActorAY=1
FakeActorBY=0
ActorADir=0
ActorBDir=180
Talk=0
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=91 {
Yap=92
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
ActorAX=-160
ActorAY=0
ActorBX=0
ActorBY=0
ActorEX=160
ActorBDir=270
BG=1
}
SimpleFadeInOut.Act=1
}

if Yap=93 MsgBox.Msg="That night, she didn't know if it was a dream or if it #was real...            #Her family assumed it was a dream that night."

if Yap=94 MsgBox.Msg="#...but just to be sure, the king wrapped a leaky bag of #grain upon his daughter's leg."

if Yap=95 {
Yap=96
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorBX=160
ActorBDir=0
BG=1
FakeActorAX=-160
FakeActorAY=0
FakeActorBX=160
FakeActorBY=0
FakeActorEX=160
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=97 {
Yap=98
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
ActorAX=-16
ActorBX=16
ActorAY=8
ActorBY=8
ActorEX=24
ActorEY=-16
FakeActorAX=-16
FakeActorBX=16
FakeActorAY=8
FakeActorBY=8
FakeActorEX=24
FakeActorEY=-16
ActorBDir=360
ActorADir=0
BG=2
}
SimpleFadeInOut.Act=1
}

if Yap=99 MsgBox.Msg="#Poof.            #Here she is, once more."

if Yap=100 {MsgBox.Msg="...oh...              #My love! You are real!             #Please, kiss me, my love..."
with TinderBoxStage{
ActorBDir=180
Talk=2
}
}

if Yap=101 {MsgBox.Msg="#As you wish, my princess..."
TinderBoxStage.Talk=1}

if Yap=102 {
Yap=103
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorAX=8
FakeActorAY=7
FakeActorEX=160
Talk=0
event_perform(ev_other,ev_user0)}
}

if Yap=104 {MsgBox.Msg="My love, I don't want to return to the iron tower...              #I want to spend the rest of my entire life with you, #as your beloved wife..."
TinderBoxStage.Talk=2
}
if Yap=105 {MsgBox.Msg="#My princess... that's what I want, too...            #Would you marry me?"
TinderBoxStage.Talk=1}
if Yap=106 {MsgBox.Msg="...in a heartbeat, my love.            #I love you more than anything in this world...             #I would give you my heart, my body, my soul to you..."
TinderBoxStage.Talk=2}
if Yap=107 MsgBox.Msg="...but my father would never allow it.          #It was his greed for power that led me to my captive #state within that tower...         #...and I don't ever want to go back there."

if Yap=108 MsgBox.Msg="Please, my love, keep me close to you...             #Take me far, far away from him, so we can live #together forever..."

if Yap=109 {MsgBox.Msg="#I will... my princess."
TinderBoxStage.Talk=1}
if Yap=110 MsgBox.Msg="#I wish--"

if Yap=112 {MsgBox.Msg="#Halt, peasant!           #Take your hands off my daughter!"
with TinderBoxStage{
ActorBDir=0
ActorDDir=180
FakeActorDX= 64
FakeActorAX=0
FakeActorFX=8
FakeActorFY=16
ActorFDir=180
Talk=4
event_perform(ev_other,ev_user0)}
}

if Yap=113 {MsgBox.Msg="#...but father, I love him!            #I love him with all my heart and soul!"
TinderBoxStage.Talk=2}
if Yap=114 {MsgBox.Msg="#You cannot love a man, ever!            #I forbid it!"
TinderBoxStage.Talk=4}
if Yap=115 {MsgBox.Msg="#You cannot forbid love, father!             #Love will always find a way, no matter what happens!"
TinderBoxStage.Talk=2}
if Yap=116 {MsgBox.Msg="#Foolish girl! He cannot love you when he will be #swinging at the gallows!"
TinderBoxStage.Talk=4}
if Yap=117 {MsgBox.Msg="#No! No, father, don't!"
TinderBoxStage.Talk=2}
if Yap=118 {MsgBox.Msg="#You will leave your tower no more, my child!           #You will live your life in that tower forever!"
TinderBoxStage.Talk=4}
if Yap=119 {MsgBox.Msg="#No, father! You are evil! Evil!"
TinderBoxStage.Talk=2}
if Yap=120 {MsgBox.Msg="#Guards! Lock her up, and make sure she never leaves #her tower ever again!"
TinderBoxStage.Talk=4}
if Yap=121 MsgBox.Msg="#...as for you, boy... I will see you hanged for treason to #the crown!"

if Yap=122 {
Yap=123
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorBX=160
FakeActorBY=4
FakeActorDX=160
FakeActorDY=0
ActorDDir=0
Talk=0
event_perform(ev_other,ev_user0)}
instance_create(0,0,SimpleFadeInOut)
}

if Yap=124 {
Yap=125
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
ActorFX=160
FakeActorFX=160
BG=3
ActorADir=270
event_perform(ev_other,ev_user0)}
SimpleFadeInOut.Act=1
}

if Yap=126 MsgBox.Msg="True to his word, the king locked the once-lovestruck #boy in the dungeons.             #...but before he could be hanged, a new opportunity #arrives."

if Yap=127 {
Yap=128
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorCX=24
ActorCDir=180
ActorADir=0
event_perform(ev_other,ev_user0)}
}

if Yap=129 {MsgBox.Msg="See what happens when you waste your precious #power?              #You should have just given me the tinder box #when you had the chance."
TinderBoxStage.Talk=3}
if Yap=130 {MsgBox.Msg="#It's you! Please, go back to my home! Get me my #tinder box."
TinderBoxStage.Talk=1}
if Yap=131 {MsgBox.Msg="#No. It was MY grandmother's tinder box, and by my #birthright, it belongs to me."
TinderBoxStage.Talk=3}
if Yap=132 MsgBox.Msg="#...besides, what do you intend to do with that thing, #anyway? Light your way to the gates of--"

if Yap=133 {MsgBox.Msg="#No, I need to get out of here!"
TinderBoxStage.Talk=1}
if Yap=134 {MsgBox.Msg="Get out of there? ...is that all?            #Once you get out of here, what are you going to do?          #Live your life on the run?          #I thought you were an intelligent boy."
TinderBoxStage.Talk=3}
if Yap=135 MsgBox.Msg="#Think, boy... what kind of wishes were you making #with that thing?"

if Yap=136 {MsgBox.Msg="#I wished to see the princess, and... and we fell in #love instantly."
TinderBoxStage.Talk=1}
if Yap=137 {MsgBox.Msg="#You love her?"
TinderBoxStage.Talk=3}
if Yap=138 {MsgBox.Msg="#Yes..."
TinderBoxStage.Talk=1}
if Yap=139 {MsgBox.Msg="#...and she loves you?"
TinderBoxStage.Talk=3}
if Yap=140 {MsgBox.Msg="#Yes. She wants to be my wife...             #...and I'd do anything to fulfill that desire for her."
TinderBoxStage.Talk=1}
if Yap=141 {MsgBox.Msg="#So... you wish you could marry the princess?"
TinderBoxStage.Talk=3}
if Yap=142 {MsgBox.Msg="Yes... with all my heart.           #I love her.           #Please, I don't want to hang...              #If I do, she will be miserable for the rest of her life."
TinderBoxStage.Talk=1}
if Yap=143 {MsgBox.Msg="...hmm... tell you what, boy. I'll make a deal with you.              #I save your life at the last minute, and release your fair #princess...            #...but I must keep the tinder box."
TinderBoxStage.Talk=3}
if Yap=144 MsgBox.Msg="Once you're the princess' husband, you'll be king, #and you'll have all the riches you need.           #You won't need a tinder box to make your life so #wonderful."

if Yap=145 MsgBox.Msg="#So, do we have a deal, boy?"

if Yap=146 {MsgBox.Msg="#...               #okay."
TinderBoxStage.Talk=1}
if Yap=147 {MsgBox.Msg="#Good boy. Now, I'll need that tinder box of yours.        #Where did you say it was?"
TinderBoxStage.Talk=3}

if Yap=148 {MsgBox.Msg="#So, the witch retrieved the tinder box, and the day for #him to hang approached."
with TinderBoxStage{
FakeActorCX=160
ActorCDir=0
Talk=0
ActorADir=270
event_perform(ev_other,ev_user0)}
}

if Yap=149 {
Yap=150
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
instance_create(0,0,SimpleFadeInOut)
}

if Yap=151 {
Yap=152
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
ActorAX=32
ActorAY=-32
FakeActorAX=32
FakeActorAY=-32
ActorADir=270
BG=4
event_perform(ev_other,ev_user0)}
SimpleFadeInOut.Act=1
}

if Yap=153 {
Yap=154
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorDX=0
FakeActorDY=0
FakeActorFX=32
FakeActorFY=24
ActorDDir=180
ActorFDir=180
event_perform(ev_other,ev_user0)}
}

if Yap=155 {MsgBox.Msg="You have been accused for your crimes against the #crown, namely kidnapping the princess.         #How do you plead?"
with TinderBoxStage{
ActorDDir=90
ActorFDir=90
Talk=4}
}
if Yap=156 {MsgBox.Msg="#NOT GUILTY!"
with TinderBoxStage{
ActorBDir=180
FakeActorBX=16
FakeActorBY=-24
Talk=2
event_perform(ev_other,ev_user0)}
}

if Yap=157 {MsgBox.Msg="I am the Princess, and that man you plan to hang will #become my husband!           #...I love him, father!              #Let him become my husband, please!"
TinderBoxStage.ActorBDir=270
}

if Yap=158 {MsgBox.Msg="#She speaks in tongues!             #Somebody, seize her!"
TinderBoxStage.Talk=4}

if Yap=159 {MsgBox.Msg="#No! We've put up with you for too long, my king!         #The princess loves her, and you know it."
with TinderBoxStage{Talk=0
ActorFDir=180}
}

if Yap=160 {MsgBox.Msg="#You take her word over mine? You speak treason!        #I will have you hanged as well!"
with TinderBoxStage{Talk=4
ActorDDir=0}
}

if Yap=161 {
Yap=162
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{Talk=0
FakeActorEX=0
FakeActorEY=-2
event_perform(ev_other,ev_user0)}
}

if Yap=163 MsgBox.Msg="Poof.           #By the request of my mistress, thou shalt no more #have reason to fear your death."

if Yap=164 {MsgBox.Msg="#My love!"
with TinderBoxStage{Talk=2
FakeActorAX=-80
FakeActorBX=-64
FakeActorAY=8
FakeActorBY=8
ActorADir=180
ActorBDir=180
ActorDDir=180
event_perform(ev_other,ev_user0)}
}

if Yap=165 {MsgBox.Msg="#My princess!"
with TinderBoxStage{Talk=1
ActorADir=0
event_perform(ev_other,ev_user0)}
}

if Yap=166 {MsgBox.Msg="#Kiss me, my love...          #Just kiss me..."
TinderBoxStage.Talk=2}

if Yap=167 {MsgBox.Msg="Guards! Get them already! She's kissing that man!          #They must not love each other!          #I am the king! I AM! I AAAAAAAAMMM!!"
with TinderBoxStage{
FakeActorAX=-72
FakeActorAY=9
ActorDDir=0
Talk=4
event_perform(ev_other,ev_user0)}
}
if Yap=168 {MsgBox.Msg="#No... if you don't believe in what it means to love, you #are no king of ours."
TinderBoxStage.Talk=0
TinderBoxStage.ActorDDir=0
}

if Yap=169 {MsgBox.Msg="#...my loyalties lie with the princess. If she loves that #man, I will follow him as king."
TinderBoxStage.ActorDDir=180
}

if Yap=170 {MsgBox.Msg="#Yes. He must be our new king!         #He's always been a good man!"
TinderBoxStage.ActorDDir=270}

if Yap=171 {MsgBox.Msg="#No! I'm the king! Not this half-wit peasant!         #Somebody, get my daughter and that man!"
TinderBoxStage.Talk=4
}

if Yap=172 MsgBox.Msg="...why aren't you obeying me!?            #I am your king! I'll ALWAYS be your king!          #I AM YOUR KING! OBEY ME!"

if Yap=173 {
Yap=174
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorDX=192
FakeActorEX=192
FakeActorFX=192
ActorFDir=0
Talk=0
event_perform(ev_other,ev_user0)}
}

if Yap=175 {MsgBox.Msg="People of the land, I want everyone to know #that this man is my fiance, and I will live with him #for the rest of my life.          #...because I love him, now and forever."
with TinderBoxStage{
FakeActorBX=8
FakeActorBY=24
ActorBDir=270
Talk=2
event_perform(ev_other,ev_user0)}
}

if Yap=176 {MsgBox.Msg="...and I want everyone to know that I love the princess, #and I always will live to serve her and the kingdom #that we will reign."
with TinderBoxStage{
FakeActorAX=-8
FakeActorAY=24
ActorADir=270
Talk=1
event_perform(ev_other,ev_user0)}
}

if Yap=177 {MsgBox.Msg="#Yes, my love...            #Please, kiss me..."
with TinderBoxStage{
ActorBDir=180
Talk=2
}
}

if Yap=178 {MsgBox.Msg="#As you wish, darling..."
with TinderBoxStage{
ActorADir=0
Talk=1
}
}


if Yap=179 {
Yap=180
alarm[4]=30
MsgBox.Msg="?."
MsgBox.Act=0
MsgBox.Dist=0
MsgBox.Letter=1
with TinderBoxStage{
FakeActorAX=0
FakeActorAY=25
Talk=0
event_perform(ev_other,ev_user0)}
}

if Yap=181 MsgBox.Msg="#And, as they say, they all lived happily ever after...        #except for the king. He died."

if Yap=182 MsgBox.Msg="#The end."

if Yap=183 {instance_create(0,0,SimpleFadeInOut)
Yap=0
MsgBox.Msg="?."
MsgBox.Letter=1
MsgBox.Act=0
MsgBox.Dist=0
alarm[4]=30
Dialog="Scripts/TielDate.txt"
}
