;--------------
; SCENE 1 must be primary CAMP scene
;
SCENE 1 doesnotexist, SCENE, "Camp"
SET sceneLock, 0
ACTOR	15, "Lock", danNoFloat, 6, 95, 10
GOTO @thestart

@eventActorAttack15
@eventActorClick15
@eventActorGive15
@eventActorSpell15
COMPARE #<sceneLock>, 0
IF= @lockScene
LOCK 0
SET sceneLock, 0
SEL 15
POSE 6
N: Scene unlocked.
N: People can enter the camp again.
END

@lockScene
LOCK 1
SET sceneLock, 1
SEL 15
POSE 5
N: Scene locked.
N: No one can enter the camp. 
END


@thestart
	IF #0, @num0
	IF #1, @num1
	IF #2, @num2
	IF #5, @num5
	IF #8, @num8
	IF #9, @num9
	IF #10, @num10
	IF #13, @num13
	IF #14, @num14
	IF #19, @num19
	IF #22, @num22
	IF #23, @num23
	IF #24, @num24
	IF #25, @num25
	IF #26, @num26
	IF #27, @num27
	IF #28, @num28
	IF #29, @num29
	IF #32, @num32
	IF #33, @num33
	IF #34, @num34
	IF #35, @num35
	IF #36, @num36
	THEME   1
	BKGND camp.100.60
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num0
	THEME   1
	BKGND camp.100.60
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
	IF R10, @jukebox4sale
END

@num1
	BKGND alphafight.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num2
	BKGND manze.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num5
	BKGND manzemaze.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num8
	BKGND delta.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num9
	BKGND mayor.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END
	

@num10
	BKGND manzemaze.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	FIGHT -505
	MUSIC #silence
	IF T410, @jukebox
END

@num13
	BKGND rome1.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END


@num14
	BKGND euphoria.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num19
	BKGND vendetta.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num22
	BKGND castle.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num23
	BKGND castle.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num24
	BKGND forest.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num25
	BKGND masterscamp.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num26
	BKGND oblian.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num27
	BKGND euphunder.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num28
	BKGND cultelson.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num29
	BKGND shadowfaks.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num32
	BKGND shadowfaksmaze.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num33
	BKGND shadowfaksmaze.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num34
	BKGND menzixunderground.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num35
	BKGND menzix.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END

@num36
	BKGND quendibar.jpg
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
	IF T410, @jukebox
END
	

@pk
	N: %2 enters a PK fight!
	N: Who will exit victorious?
END

@jukebox4sale
	ACTOR 1, "Jukebox Man", ss, 2,-5,65
	POSE 1
	MOVE 1,25,65
	WAIT 5
	1: Hello, there! I have tons of jukeboxes to sell!
	1: All I ask for this lovely piece is 50 thousand gold!
	1: Do we have a deal? (YES/NO)
	ASK 99999
	IF YES, @jukebox4sale2
	1: What?! No!?
	POSE 3
	1: Yes, well, maybe next time...
	POSE 4
	1: If you change your mind, here's my card.
	1: You can come get a jukebox at my shop on east Pillow Gauntlet, but it will cost 75 thousand gold!
	1: Farewell!
	POSE 2
	WAIT 1.5
	POSE 1
	MOVE 1,-20,65
	GIVE T408
END

@jukebox4sale2
	IF -G50000, @jukeboxnot4sale
	1: Alright! Let me get your jukebox...
	POSE 4
	WAIT 3
	1: Here you go!
	POSE 2
	TAKE G50000
	ACTOR 2, "Jukebox", jukebox, 2,32,70
	GIVE T408
	GIVE T410
	GIVE T411
	GIVE I220
	SEL 1
	POSE 1
	1: Ok! This'll be there whenever you camp!
	1: It comes with one record, the 'Master of Reality Opening Theme!'
	1: Be sure to stop by my shop for more records; it's located on the eastern side of this island!
	1: I've given you a ticket to get there, use it when you want to come!	`
	1: Well, that's all you need to know!
	1: Have fun with it!
	MOVE 1,-20,65
END

@jukeboxnot4sale
	1: Oh, it appears that you don't have enough money!
	POSE 4
	1: Once you have the money, you can visit my shop at any time on the eastern side of this island.
	1: But be warned! It will cost 75 thousand gold!
	1: See ya!
	POSE 1
	MOVE 1,-20,65
	GIVE T408
END

@jukebox
	IF -T411, @cheater
	GIVE T408
	ACTOR 2, "Jukebox", jukebox, 2,32,70
	SEL 2
	POSE 1
	IF T409, @jukeboxready
	ACTOR 1, "Know-It-All", ronnie, 2,25,65
	MOVE 2,-100,-100,1
	1: Time for the tutorial!
	1: I'll guide you through on how to use the jukebox!
	1: First of all, whenever you want to listen to a song, simply right click the jukebox.
	1: The current song will stop, and then you will see a list of songs that you can listen to.
	1: Note that you might have to scroll up the window to see all the songs.
	1: Then, say which song you wish to listen to (it'll be a number), then the jukebox will start your song!
	1: Let's try it!
	1: So... first right-click it...
	ACTOR 0, "Jukebox", jukebox, 2,32,70
	SEL 0
	POSE 1
END

@eventactorclick0
	IF -T409, @training
END

@eventactorclick1
	IF -T409, @training2
END

@training
	MUSIC #silence
	N: 1: Master of Reality Opening Theme
	1: Good! Now, say '1', because it's the only song you have.
	ASK 99999
	IF Q1, @jukeboxpractice
	GOTO @training
END

@training2
	1: Err, that's not how you do it.
	1: Try again.
END

@jukeboxpractice
	SEL 0
	POSE 2
	MUSIC title.mid
	1: Right!
	1: Now, about the types of music...
	1: Currently, there are two types of music, soundtracks and records.
	1: Soundtracks are built into your jukebox, while records are CDs that you play in your jukebox.
	1: Well, that's all you need to know!
	1: Here, I'll give you a soundtrack!
	WAIT 0.5
	N: Acquired 'Master of Reality Overworld!'
	GIVE T412
	GIVE T409
	1: Have fun!
	MOVE 1,-20,65
	MOVE 0,-100,-100,1
	MOVE 2,32,70,1
@jukeboxready
@jr10
	IF T423, @jukeboxready10
@jr9
	IF T422, @jukeboxready9
@jr8
	IF T421, @jukeboxready8
@jr7
	IF T420, @jukeboxready7
@jr6
	IF T419, @jukeboxready6
@jr5
	IF T418, @jukeboxready5
@jr4
	IF T417, @jukeboxready4
@jr3
	IF T416, @jukeboxready3
@jr2
	IF T414, @jukeboxready2
@jr1
	IF T413, @jukeboxready1
END

@jukeboxready1
	ACTOR 3, "Prologue", disc, 1,25,65
END

@jukeboxready2
	ACTOR 4, "Game Music", disc, 1,32,60
	GOTO @jr1
END

@jukeboxready3
	ACTOR 5, "Chapter I: The Journey Begins", disc, 1,25,55
	GOTO @jr2
END

@jukeboxready4
	ACTOR 6, "Chapter II: Alpha", disc, 1,39,55
	GOTO @jr3
END

@jukeboxready5
	ACTOR 7, "Chapter III: A City in Ruins",disc,1,25,75
	GOTO @jr4
END

@jukeboxready6
	ACTOR 8, "Chapter IV: The City of Sitae",disc,1,39,75
	GOTO @jr5
END

@jukeboxready7
	ACTOR 9, "Anime Hits", disc, 1,32,72
	GOTO @jr6
END

@jukeboxready8
	ACTOR 10, "Chapter V-VII: The Mountains",disc,1,39,65
	GOTO @jr7
END

@jukeboxready9
	ACTOR 11, "Chapter VIII-IX: Vendetta",disc,1,32,50
	GOTO @jr8
END

@jukeboxready10
	ACTOR 12, "General Music",disc,1,32,80
	GOTO @jr9
END

;----------------
; Jukebox
;----------------

@eventactorclick2
	SEL 2
	POSE 1
	MUSIC #silence
	MENU "Master of Reality - Opening=@jukesong1","Master of Reality - Overworld=@jukesong2"
END

;-----------------
; Prologue
;-----------------

@eventactorclick3
	SEL 2
	POSE 1
	MUSIC #silence

@prologue
	MENU "Contents of Record (1/2):=@end","At the Port=@cdprosong1","Port Healer=@cdprosong2","The Masters=@cdprosong3","The Wiseman's Tale=@cdprosong4","At the Boat Shop=@cdprosong5","The City of Manze=@cdprosong6","More...=@Prologue2"
END

@Prologue2
	WAIT 0.05
	MENU "Contents of Record (2/2):=@end","Manze Castle=@cdprosong7","Manze Castle Pt. 2=@cdprosongB","Ouside of the Castle=@cdprosong8","King Axl=@end","Long Live the Prince=@cdprosong9","The Eternal Void=@cdprosongA","Back=@Prologue"
END

;--------------------
; Game Music
;--------------------
@eventactorclick4
	SEL 2
	POSE 1
	MUSIC #silence

@Game
	MENU "Contents of Record (1/2):=@end","Jet Grind Radio - Electric Tooth Brush=@cdgmesong1","JGR - Miller Break Balls=@cdgmesong2","JGR - Funky Radio=@cdgmesong3","JGR - Mischivious Boy=@cdgmesong4","JGR - Sneakman=@cdgmesong5","Morrowind - Theme=@cdgmesong6","More...=@Game2"
END

@Game2
	MENU "Contents of Record (2/2):=@end","Darude - Sandstorm=@cdgmesong7","Sonic the Hedgehog 3 - Ice Cap Zone=@cdgmesong8","Back=@Game"
END

;------------------
; Chapter I
;------------------
@eventactorclick5
	SEL 2
	POSE 1
	MUSIC #silence

@Ch1
	MENU "Contents of Record:=@end","Wiseman's Tale=@cdch1song1","Ronnie's Shop=@cdch1song2","Hal's Mini-Games=@cdch1song3","Manze Castle Maze - Entrance=@cdch1song4","Manze Castle Maze - Inside=@cdch1song5"
END

;------------------
; Chapter II
;------------------

@eventactorclick6
	SEL 2
	POSE 1
	MUSIC #silence

@Ch2
	MENU "Contents of Record:=@end","Within the Castle=@cdch2song1","Normal Battle=@cdch2song2","Duel of the Servants=@cdch2song3","After Defeat=@cdch2song4"
END

;------------------
; Chapter III
;------------------

@eventactorclick7
	SEL 2
	POSE 1
	MUSIC #silence

@Ch3
	MENU "Contents of Record:=@end","Erson's Gates=@cdch3song1","Erson=@cdch3song2","The Wandshop=@cdch3song3","Delta's Lair=@cdch3song4","Delta=@cdch3song5","The Mysterious Man=@cdch3song6"
END

;------------------
; Chapter IV
;------------------

@eventactorclick8
	SEL 2
	POSE 1
	MUSIC #silence

@Ch4
	MENU "Contents of Record:=@end","The Town of Sitae=@cdch4song1","The Mayor=@cdch4song2","Under Sitae=@cdch4song3","The Wompas Cat=@cdch4song4","Wiseman 1=@cdch4song5","Wiseman 2=@cdch4song6","More...=@Ch4pt2"
END

@Ch4pt2
	MENU "Euclid 1=@cdch4song7","Euclid 2=@cdch4song8","FFX Quiz=@cdch4song9","Back=@ch4"
END

;------------------
; Anime CD
;------------------

@eventactorclick9
	SEL 2
	POSE 1
	MUSIC #silence
@Anime
	WAIT 0.05
	MENU "Contents of Record (1/3):=@end","Ninja Chef Ayaka - Theme=@cdanmsong1","Ayasha No Ceres - Opening Theme=@cdanmsong2","Neon Genesis Evangalion - Cruel Angel Thesis=@cdanmsong3","NGE - Fly Me To the Moon=@cdanmsong10","Dragon Ball Z - Gohan's Theme=@cdanmsong4","Ranma 1/2 - Theme=@cdanmsong5","More...=@Anime2"
END

@Anime2
	WAIT 0.05
	MENU "Contents of Record (2/3):=@end","Ah! My Goddess! - Opening Theme=@cdanmsong6","Revolutionary Girl Utena - Rinbu Revolution=@cdanmsong7","Card Captor Sakura - Catch You Catch Me=@cdanmsong8","Tenchu - Yamerarenai!=@cdanmsong9","More...=@Anime3","Back=@Anime"
END

@Anime3
	WAIT 0.05
	MENU "Contents of Record (3/3):=@end","Slayers - Breeze=@cdanmsong11","Slayers - Give a Reason=@cdanmsong12","Slayers - Get Along=@cdanmsong13","Cowboy Bebop - Tank=@cdanmsong14","Love Hina - Sakura Saku=@cdanmsong15","Back=@Anime2"
END

;------------------
; Chapters V-VII
;------------------

@eventactorclick10
	SEL 2
	POSE 1
	MUSIC #silence


@Ch5
	MENU "Contents of Record:=@end","The Gabonasian Mountains=@cdch5song1","A Hunk of Chicken=@cdch5song2","*brbrbrbr* I'm Mr. Danner=@cdch5song3","*brbrbrbr* Attack!=@cdch5song4","Farmer's House=@cdch5song5","Rose's Theme=@cdch5song6"
END

;------------------
; Chapters VII, IX
;------------------

@eventactorclick11
	SEL 2
	POSE 1
	MUSIC #silence

@Ch8
	MENU "Contents of Record:=@end","On Vendetta=@cdch8song1","The Underlings' Chamber=@cdch8song2","Attack of the Spirits=@cdch8song3","While Praying=@cdch8song4","Benieth Euphoria=@cdch8song5","Elson=@cdch8song6","While Sleeping=@cdch8song7"
END

;-------------------
; General Music
;-------------------

@eventactorclick12
	SEL 2
	POSE 1
	MUSIC #silence

@previewGM
	MENU "Contents of Record:=@end","Fight 1=@cdGMsong1","Fight 2=@cdGMsong2","Fight 3=@cdGMsong3","Fight 4=@cdGMsong4","Fight 5=@cdGMsong5","Win Battle=@cdGMsong6","Lose Battle=@cdGMsong7"
END


;---------------------------------------

@jukesong1
	SEL 2
	POSE 2
	MUSIC title.mid
END

@jukesong2
	SEL 2
	POSE 2
	MUSIC pillowgauntlet.mid
END

;----------------------------------------

@cdprosong1
	SEL 2
	POSE 2
	MUSIC port.mid
END

@cdprosong2
	SEL 2
	POSE 2
	MUSIC angelisle.mid
END

@cdprosong3
	SEL 2
	POSE 2
	MUSIC master.mid
END

@cdprosong4
	SEL 2
	POSE 2
	MUSIC euclid.mid
END

@cdprosong5
	SEL 2
	POSE 2
	MUSIC portshop.mid
END

@cdprosong6
	SEL 2
	POSE 2
	MUSIC manze.mid
END

@cdprosong7
	SEL 2
	POSE 2
	MUSIC castle2.mid
END

@cdprosong8
	SEL 2
	POSE 2
	MUSIC greenery.mid
END

@cdprosong9
	SEL 2
	POSE 2
	MUSIC axl.mid
END

@cdprosonga
	SEL 2
	POSE 2
	MUSIC void.mid
END

@cdprosongb
	SEL 2
	POSE 2
	MUSIC mcastle.mid
END

;----------------------------------------

@cdGMsong1
	SEL 2
	POSE 2
	MUSIC fight.mid
END

@cdGMsong2
	SEL 2
	POSE 2
	MUSIC fight2.mid
END

@cdGMsong3
	SEL 2
	POSE 2
	MUSIC fight3.mid
END

@cdGMsong4
	SEL 2
	POSE 2
	MUSIC fight4.mid
END

@cdGMsong5
	SEL 2
	POSE 2
	MUSIC fight5.mid
END

@cdGMsong6
	SEL 2
	POSE 2
	MUSIC win.mid
END

@cdGMsong7
	SEL 2
	POSE 2
	MUSIC lose.mid
END

;----------------------------------------

@cdgmesong1
	SEL 2
	POSE 2
	MUSIC JSR-ETB.mid
END

@cdgmesong2
	SEL 2
	POSE 2
	MUSIC JSR-Miller.mid
END

@cdgmesong3
	SEL 2
	POSE 2
	MUSIC funkyradio.mid
END

@cdgmesong4
	SEL 2
	POSE 2
	MUSIC JSR-Misch.mid
END

@cdgmesong5
	SEL 2
	POSE 2
	MUSIC JSR-Sneak.mid
END

@cdgmesong6
	SEL 2
	POSE 2
	MUSIC morrowind.mid
END

@cdgmesong7
	SEL 2
	POSE 2
	MUSIC sandstorm.mid
END

@cdgmesong8
	SEL 2
	POSE 2
	MUSIC icecap.mid
END

;----------------------------------------

@cdch1song1
	SEL 2
	POSE 2
	MUSIC wiseman.mid
END

@cdch1song2
	SEL 2
	POSE 2
	MUSIC ronnie.mid
END

@cdch1song3
	SEL 2
	POSE 2
	MUSIC mayor.mid
END

@cdch1song4
	SEL 2
	POSE 2
	MUSIC funk1.mid
END

@cdch1song5
	SEL 2
	POSE 2
	MUSIC manzemaze.mid
END

;----------------------------------------

@cdch2song1
	SEL 2
	POSE 2
	MUSIC alpha.mid
END

@cdch2song2
	SEL 2
	POSE 2
	MUSIC alphafight.mid
END

@cdch2song3
	SEL 2
	POSE 2
	MUSIC alphafight2.mid
END

@cdch2song4
	SEL 2
	POSE 2
	MUSIC alpha2.mid
END

;----------------------------------------

@cdch3song1
	SEL 2
	POSE 2
	MUSIC battledark.mid
END

@cdch3song2
	SEL 2
	POSE 2
	MUSIC Ichiro1.mid
END

@cdch3song3
	SEL 2
	POSE 2
	MUSIC wandshop.mid
END

@cdch3song4
	SEL 2
	POSE 2
	MUSIC delta1.mid
END

@cdch3song5
	SEL 2
	POSE 2
	MUSIC delta.mid
END

@cdch3song6
	SEL 2
	POSE 2
	MUSIC ulamo.mid
END

;----------------------------------------

@cdch4song1
	SEL 2
	POSE 2
	MUSIC sitae.mid
END

@cdch4song2
	SEL 2
	POSE 2
	MUSIC sitaemayor.mid
END

@cdch4song3
	SEL 2
	POSE 2
	MUSIC sitae2.mid
END

@cdch4song4
	SEL 2
	POSE 2
	MUSIC wompas.mid
END

@cdch4song5
	SEL 2
	POSE 2
	MUSIC wiseman2.mid
END

@cdch4song6
	SEL 2
	POSE 2
	MUSIC predance.mid
END

@cdch4song7
	SEL 2
	POSE 2
	MUSIC multiscene1.mid
END

@cdch4song8
	SEL 2
	POSE 2
	MUSIC multiscene2.mid
END

@cdch4song9
	SEL 2
	POSE 2
	MUSIC quiz1.mid
END

;----------------------------------------

@cdch5song1
	SEL 2
	POSE 2
	MUSIC mountains1.mid
END

@cdch5song2
	SEL 2
	POSE 2
	MUSIC chicken.mid
END

@cdch5song3
	SEL 2
	POSE 2
	SOUND danner1.wav
	MUSIC danner1.mid
END

@cdch5song4
	SEL 2
	POSE 2
	SOUND danner3.wav
	MUSIC danner2.mid
END

@cdch5song5
	SEL 2
	POSE 2
	MUSIC gnome.mid
END

@cdch5song6
	SEL 2
	POSE 2
	MUSIC mountains4.mid
END

;----------------------------------------

@cdch8song1
	SEL 2
	POSE 2
	MUSIC vendetta.mid
END

@cdch8song2
	SEL 2
	POSE 2
	MUSIC vendetta1.mid
END

@cdch8song3
	SEL 2
	POSE 2
	MUSIC ucbattle.mid
END

@cdch8song4
	SEL 2
	POSE 2
	MUSIC shrine.mid
END

@cdch8song5
	SEL 2
	POSE 2
	MUSIC euphund.mid
END

@cdch8song6
	SEL 2
	POSE 2
	MUSIC elson.mid
END

@cdch8song7
	SEL 2
	POSE 2
	MUSIC themecont.mid
END

;----------------------------------------

@cdanmsong1
	SEL 2
	POSE 2
	MUSIC anime1.mid
END

@cdanmsong2
	SEL 2
	POSE 2
	MUSIC anime2.mid
END

@cdanmsong3
	SEL 2
	POSE 2
	MUSIC anime3.mid
END

@cdanmsong4
	SEL 2
	POSE 2
	MUSIC anime4.mid
END

@cdanmsong5
	SEL 2
	POSE 2
	MUSIC anime5.mid
END

@cdanmsong6
	SEL 2
	POSE 2
	MUSIC anime6.mid
END

@cdanmsong7
	SEL 2
	POSE 2
	MUSIC anime7.mid
END

@cdanmsong8
	SEL 2
	POSE 2
	MUSIC anime8.mid
END

@cdanmsong9
	SEL 2
	POSE 2
	MUSIC anime9.mid
END

@cdanmsong10
	SEL 2
	POSE 2
	MUSIC anime10.mid
END

@cdanmsong11
	SEL 2
	POSE 2
	MUSIC anime11.mid
END

@cdanmsong12
	SEL 2
	POSE 2
	MUSIC anime12.mid
END

@cdanmsong13
	SEL 2
	POSE 2
	MUSIC anime13.mid
END

@cdanmsong14
	SEL 2
	POSE 2
	MUSIC anime14.mid
END

@cdanmsong15
	SEL 2
	POSE 2
	MUSIC anime15.mid
END

@cheater
	ACTOR 1, "Simmen Stenil", ss, 2,25,65
	1: You cheater! DIE!
	TAKE G1000000
	TAKE H1000000
	TAKE M1000000
	TAKE L1000000
	SET money, 0
	1: And don't ever come back!
	POSE 1
END


;---------------------------------------------------------
;
SCENE 29	fight, SCENE, "Record Store", 0, 0
ACTOR	1, "Jukebox Man", ss, 1,25,65
ACTOR	2, "", jukebox, 2,10,86
ACTOR	3, "", jukebox, 2,30,80
ACTOR	4, "", jukebox, 2,34,90
@music
	SET randCookie, %R3
	GOTO @music#<randcookie>
END

@music1
	MUSIC funkyradio.mid
	GOTO @start
END

@music2
	MUSIC JSR-Miller.mid
	GOTO @start
END

@music3
	MUSIC JSR-ETB.mid
	GOTO @start
END

@music4
	MUSIC JSR-Misch.mid
	GOTO @start
END

@music5
	MUSIC JSR-Sneak.mid
	GOTO @start
END

@start
	COMPARE #<num.peopleInScene>, "1"
	IF>, @MOB
	LOCK 1
	IF -T410, @jukebox4sale
	IF -I220, @giveticket
@setdiscs
	IF T1-T413, @prologue
 @afterprologue
	IF T500-T416, @ch1
 @afterch1
	IF T24-T417, @ch2
 @afterch2
	IF T32-T418, @ch3
 @afterch3
	IF T45-T419, @ch4
 @afterch4
	IF T72-T421, @ch5
 @afterch5
	IF T105-T422, @ch8
 @afterch8
	IF -T414, @game
 @aftergame
	IF -T420, @anime
 @afteranime
	IF -T423, @GM
 @afterGM
END

@giveticket
	1: Here, have this ticket so you can come here any time!
	GIVE I220
	GOTO @start
END

@jukebox4sale
	1: Hey! You came!
	1: I can sell it to you now, if you want.
	1: It'll cost 75 thousand gold, want it? (YES/NO)
	ASK 99999
	IF YES, @jukebox4sale2
	1: Ok, come back when ya do!
END

@jukebox4sale2
	IF -G75000, @jukeboxnot4sale
	1: Alright! Let me get your jukebox...
	POSE 4
	WAIT 3
	1: Here you go!
	POSE 2
	TAKE G75000
	ACTOR 6, "Jukebox", jukebox, 2,32,70
	GIVE T410
	GIVE T411
	SEL 1
	POSE 1
	1: Hope ya like it!
	1: It'll be in your camp whenever you camp.
	1: Thanks!
END

@jukeboxnot4sale
	1: Looks like you ain't got enough bling-bling.
	1: Fo shizzle on yo, dog! Get outa hea'!
END

;--------------------------------------------
; PROLOGUE CD
;--------------------------------------------

@prologue
	ACTOR 5, "Prologue", disc, 1,10,10
	GOTO @afterprologue
END

@eventactorclick5
	MENU "Prologue:=@end","Contents of Record=@previewPrologue","Buy for 50,000 Gold=@buyPrologue"
END

@previewPrologue
	WAIT 0.05
	MENU "Contents of Record (1/2):=@end","At the Port=@end","Port Healer=@end","The Masters=@end","The Wiseman's Tale=@end","At the Boat Shop=@end","The City of Manze=@end","More...=@previewPrologue2","Buy for 50,000 Gold=@buyPrologue"
END

@previewPrologue2
	WAIT 0.05
	MENU "Contents of Record (2/2):=@end","Manze Castle=@end","Ouside of the Castle=@end","King Axl=@end","Long Live the Prince=@end","The Eternal Void=@end","Back=@previewPrologue","Buy for 50,000 Gold=@buyPrologue"
END

@buyPrologue
	IF -G49999, @notenough
	GIVE T413
	TAKE G50000
	MOVE 5,-100,-100,1
	N: Disc "Prologue" can now be accessed in camp.
	1: Here's your disc! Enjoy!
END

;--------------------------------------------
; GAME MUSIC CD
;--------------------------------------------

@Game
	ACTOR 6, "Game Music", disc, 1,10,20
	GOTO @afterGame
END

@eventactorclick6
	MENU "Game Music:=@end","Contents of Record=@previewGame","Buy for 20,000 Gold=@buyGame"
END

@previewGame
	WAIT 0.05
	MENU "Contents of Record (1/2):=@end","Jet Grind Radio - Electric Tooth Brush=@end","JGR - Miller Break Balls=@end","JGR - Funky Radio=@end","JGR - Mischivious Boy=@end","JGR - Sneakman=@end","Morrowind - Theme (Preview!)=@previewGameMT","More...=@previewGame2","Buy for 30,000 Gold=@buyGame"
END

@previewGame2
	WAIT 0.05
	MENU "Contents of Record (2/2):=@end","Darude - Sandstorm=@end","Sonic the Hedgehog 3 - Ice Cap Zone (Preview!)=@previewGameICZ","Back=@previewGame","Buy for 30,000 Gold=@buyGame"
END

@buyGame
	IF -G29999, @notenough
	1: Alright, here's the record!
	GIVE T414
	TAKE G30000
	MOVE 6,-100,-100,1
	N: Disc "Game Music" can now be accessed in camp.
	1: Hope you like it!
END

@previewGameMT
	N: Now listening to "Morrowind - Theme"
	N: Preview will end once timer reaches 0.
	MUSIC morrowind
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

@previewGameICZ
	N: Now listening to "Sonic the Hedgehog 3 - Ice Cap Zone"
	N: Preview will end once timer reaches 0.
	MUSIC icecap
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

;--------------------------------------------
; ANIME HITS CD
;--------------------------------------------

@anime
	ACTOR 7, "Anime Hits", disc, 1,20,20
	GOTO @afteranime
END

@eventactorclick7
	MENU "Anime Hits:=@end","Contents of Record=@previewAnime","Buy for 45,000 Gold=@buyAnime"
END

@previewAnime
	WAIT 0.05
	MENU "Contents of Record (1/3):=@end","Ninja Chef Ayaka - Theme (Preview!)=@previewAnimeNCA","Ayasha No Ceres - Opening Theme=@end","Neon Genesis Evangalion - Cruel Angel Thesis=@end","NGE - Fly Me To the Moon=@end","Dragon Ball Z - Gohan's Theme=@end","Ranma 1/2 - Theme=@end","More...=@previewAnime2","Buy for 45,000 Gold=@buyAnime"
END

@previewAnime2
	WAIT 0.05
	MENU "Contents of Record (2/3):=@end","Ah! My Goddess! - Opening Theme=@end","Revolutionary Girl Utena - Rinbu Revolution=@end","Card Captor Sakura - Catch You Catch Me (Preview!)=@previewAnimeCYCM","Tenchu - Yamerarenai!=@end","More...=@previewAnime3","Back=@previewAnime","Buy for 45,000 Gold=@buyAnime"
END

@previewAnime3
	WAIT 0.05
	MENU "Contents of Record (3/3):=@end","Slayers - Breeze=@end","Slayers - Give a Reason (Preview!)=@previewAnimeGAR","Slayers - Get Along=@end","Cowboy Bebop - Tank=@end","Love Hina - Sakura Saku=@end","Back=@previewAnime2","Buy for 45,000 Gold=@buyAnime"
END

@previewAnimeNCA
	N: Now listening to "Ninja Chef Ayaka - Theme"
	N: Preview will end once timer reaches 0.
	MUSIC anime1.mid
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

@previewAnimeCYCM
	N: Now listening to "Card Captor Sakura - Catch You Catch Me"
	N: Preview will end once timer reaches 0.
	MUSIC anime8.mid
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

@previewAnimeGAR
	N: Now listening to "Slayers - Give A Reason"
	N: Preview will end once timer reaches 0.
	MUSIC anime12.mid
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

@buyAnime
	IF -G45000, @notenough
	1: Here ya go!
	GIVE T420
	TAKE G45000
	MOVE 7,-100,-100,1
	1: Hope you like it!
END

;--------------------------------------------
; GENERAL MUSIC CD
;--------------------------------------------

@gm
	ACTOR 14, "General Music", disc, 1,30,20
	GOTO @aftergm
END

@eventactorclick14
	MENU "General Music:=@end","Contents of Record=@previewGM","Buy for 25,000 Gold=@buyGM"
END

@previewGM
	MENU "Contents of Record:=@end","Fight 1, 2, 3, 4, and 5=@end","Win Battle (Preview!)=@previewGMWB","Lose Battle=@end","Buy for 25,000 Gold=@buyGM"
END

@buyGM
	IF -G25000, @notenough
	1: Here ya go!
	GIVE T423
	TAKE G25000
	MOVE 14,-100,-100,1
	1: Hope you like it!
END

@previewGMWB
	N: Now listening to "Master of Reality - Win Battle"
	N: Preview will end once timer reaches 0.
	MUSIC win.mid
	COUNTDOWN 30
	WAIT 30
	MUSIC #silence
	N: Thanks for listening.
	N: Please right click the CD if you want to buy it.
	WAIT 1
	GOTO @music
END

;--------------------------------------------
; CHAPTER I CD
;--------------------------------------------

@ch1
	ACTOR 8, "Chapter I", disc, 1,20,10
	GOTO @afterch1
END

@eventactorclick8
	MENU "Chapter I:=@end","Contents of Record=@previewCh1","Buy for 25,000 Gold=@buyCh1"
END

@previewCh1
	WAIT 0.05
	MENU "Contents of Record:=@end","Wiseman's Tale=@end","Ronnie's Shop=@end","Hal's Mini-Games=@end","Manze Castle Maze - Entrance=@end","Manze Castle Maze - Inside=@end","Buy for 25,000 Gold=@buyCh1"
END

@buyCh1
	IF -G24999, @notenough
	1: Here ya go!
	GIVE T416
	TAKE G25000
	MOVE 8,-100,-100,1
	1: Enjoy!
END

;--------------------------------------------
; CHAPTER II CD
;--------------------------------------------

@ch2
	ACTOR 9, "Chapter II", disc, 1,30,10
	GOTO @afterch2
END

@eventactorclick9
	MENU "Chapter II:=@end","Contents of Record=@previewCh2","Buy for 20,000 Gold=@buyCh2"
END

@previewCh2
	WAIT 0.05
	MENU "Contents of Record:=@end","Within the Castle=@end","Normal Battle=@end","Duel of the Servants=@end","After Defeat=@end","Buy for 20,000 Gold=@buyCh2"
END

@buyCh2
	IF -G19999, @notenough
	1: Here ya go!
	GIVE T417
	TAKE G20000
	MOVE 9,-100,-100,1
	1: Dig those sweet vibes!
END

;--------------------------------------------
; CHAPTER III CD
;--------------------------------------------

@ch3
	ACTOR 10, "Chapter III", disc, 1,40,10
	GOTO @afterch3
END

@eventactorclick10
	MENU "Chapter III:=@end","Contents of Record=@previewCh3","Buy for 30,000 Gold=@buyCh3"
END

@previewCh3
	WAIT 0.05
	MENU "Contents of Record:=@end","Erson's Gates=@end","Erson=@end","The Wandshop=@end","Delta's Lair=@end","Delta=@end","The Mysterious Man=@end","Buy for 30,000 Gold=@buyCh3"
END

@buyCh3
	IF -G29999, @notenough
	1: Here ya go!
	GIVE T418
	TAKE 30000
	MOVE 10,-100,-100,1
	1: Dig those sweet vibes!
END

;--------------------------------------------
; CHAPTER IV CD
;--------------------------------------------

@ch4
	ACTOR 11, "Chapter IV", disc, 1,50,10
	GOTO @afterch4
END

@eventactorclick11
	MENU "Chapter IV:=@end","Contents of Record=@previewCh4","Buy for 45,000 Gold=@buyCh4"
END

@previewCh4
	WAIT 0.05
	MENU "Contents of Record:=@end","The Town of Sitae=@end","The Mayor=@end","Under Sitae=@end","The Wompas Cat=@end","Wiseman 1 and 2=@end","Euclid 1 and 2=@end","FFX Quiz=@end","Buy for 45,000 Gold=@buyCh4"
END

@buyCh4
	IF -G44999, @notenough
	1: Here ya go!
	GIVE T419
	TAKE G45000
	MOVE 11,-100,-100,1
	1: Dig it!
END

;--------------------------------------------
; CHAPTERS V-VII CD
;--------------------------------------------

@ch5
	ACTOR 12, "Chapters V-VII", disc, 1,60,10
	GOTO @afterch5
END

@eventactorclick12
	MENU "Chapters V-VII:=@end","Contents of Record=@previewCh5","Buy for 30,000 Gold=@buyCh5
END

@previewCh5
	WAIT 0.05
	MENU "Contents of Record:=@end","The Gabonasian Mountains=@end","A Hunk of Chicken=@end","*brbrbrbr* I'm Mr. Danner=@end","*brbrbrbr* Attack!=@end","Farmer's House=@end","Rose's Theme=@end","Buy for 30,000 Gold=@buyCh5"
END

@buyCh5
	IF -G29999, @notenough
	1: Alright, here ya go!
	GIVE T421
	TAKE G30000
	MOVE 12,-100,-100,1
	1: Congrats!
END

;--------------------------------------------
; CHAPTERS VIII-IX CD
;--------------------------------------------

@ch8
	ACTOR 13, "Chapters VIII-IX", disc, 1,70,10
	GOTO @afterch8
END

@eventactorclick13
	MENU "Chapters VIII-IX:=@end","Contents of Record=@previewCh8","Buy for 35,000 Gold=@buyCh8"
END

@previewCh8
	WAIT 0.05
	MENU "Contents of Record:=@end","On Vendetta=@end","The Underlings' Chamber=@end","Attack of the Spirits=@end","While Praying=@end","Benieth Euphoria=@end","Elson=@end","While Sleeping=@end","Buy for 35,000 Gold=@buyCh8"
END

@buyCh8
	IF -G34999, @notenough
	1: Alright, here ya go!
	GIVE T422
	TAKE G35000
	MOVE 13,-100,-100,1
	1: Congrats!
END
	

@eventactorclick1
	1: Yea? Would you like to look at some other discs?
	1: Well tough! This is all I've got right now!
END

@mob
	1: Hey hey dudes! What's up?
	H: Not much Jukebox Man!
	1: Kickin' rad! Come back later when you're not chillin' with those bums over there, ok?
	H: Sure thing dude!
END

@notenough
	WAIT 0.05
	MENU "You don't have enough money!=@end","---------------------=@end","OK=@end"
END

@end
END



