;---------
; Basic Training

SCENE 5 void,  SCENE, "The Eternal Void", 0, 0
	THEME	0
	MUSIC	#nochange
	ACTOR	1,	"Wiseman", wiseman, 1, 25, 90

	1: Welcome to basic training.
	1: This scene is for people new to Well of Souls.
	1: Do you wish to be trained in the art of (1) war or (2) magic?
@ask
	ASK 9999
	IF Q1, @war
	IF Q2, @magic
	1: 1 or 2.
	GOTO @ask
END

@war
	1: You wish to learn the arts of war? Then listen good.
	1: Look at the bottom of the screen.
	1: You'll see your PP and TNL; they're really keen.
	1: PP is your Participation Points. Basically, you get them for hitting stuff.
	1: You can spend it on certain things, which I'll tell you about later, when you know enough.
	1: Now, TNL is To Next Level.
	1: It's how much EXP you need to grow a level.
	1: Whenever you die, you lose PP and EXP.
	1: I don't know about you, but I wouldn't like that to happen to me.
	1: Now, you'll see some buttons. Go to the EQUIP icon.
	1: You'll see TRAIN HAND. This allows you totrain in a certain weapon.
	1: In order to do this you must spend PP, which we talked about previously.
	1: You'll also see a picture, which represents your current weaponry.
	1: To equip new items, you must right click the equipment you see below and opt to equip.
	1: You can also sell some stuff, but I'm not buying--I don't want to be gypped.
	1: Be sure to only equip items that help you and seem to fit.
	1: You can tell by the symbol next to the equipment. An x means you can't use it.
	1: A green plus means you can use it, and stronger it helps you get.
	1: A red plus means it will help you, but you can't use it yet.
	1: Nothing at all means it doesn't help you, but instead makes you weaker.
	1: Now, to fight, you simply open the EQUIP screen, and click on the creatures.
	1: MAKE SURE THE EQUIP SCREEN IS OPEN, otherwise nothing will happen, and you won't get far!
	1: That concludes this tutorial.
	1: Do you wish to be trained in the arts of magic, now?
	ASK 9999
	IF YES, @magic
	1: Very well. Please make sure to stop by advanced training before heading into Euphoria.
END

@magic
	1: You wish to be tought in the art of magic? Listen.
	1: Look now at the bottom of your screen.
	1: You'll see your MP--it's your magic.
	1: It's also known as Mana Points, and to be without them would be tragic.
	1: Try not to overuse your power.
	1: By leveling up, you can gain more by the hour.
	1: Go to the place called the SPELLS menu.
	1: You'll see ELEMENTS. You can spend PP down this venue.
	1: You also have NEW SPELLS, where you spend PP to learn a new spell.
	1: To use spells, open the SPELLS menu, and choose well.
	1: Then click on your target, be it friend or foe.
	1: That completes it for your training.
	1: Do you now wish to be trained in the arts of war?
	ASK 9999
	IF YES, @war
	1: Ok. Please make sure to visit advanced training before going into Euphoria.
END

;---------
; Advanced Training

SCENE 7 void,  SCENE, "The Eternal Void", 0, 0
	THEME	0
	MUSIC	#nochange
	ACTOR	1,	"Wiseman", wiseman, 1, 25, 90
	1: Welcome to advanced training.
	1: This is for those who already know how to play Well of Souls.
	1: Do you wish to take this training now? (YES/NO)
	ASK 9999
	IF YES, @training
	1: Very well. Come back once you have passed Basic Training.
END

@training
	1: Let us proceed with the training.
	1: In this world, you must follow tasks assigned to you by different people.
	1: When these tasks have been completed, report back to the person who gave you the assignment to gain a new one.
	1: There are also many sidequests that you may undertake.
	1: While these quests do not affect the main story, the reward is great.
	1: Be warned, though, these tasks can be dangerous, sometimes harder than the main quest.
	1: Moving on...
	1: In this world, there are magical wands scattered everywhere.
	1: These wands are enchanted with a magical spell, allowing you great power.
	1: To use them:
	1: 1: Find a stick.
	1: 2: Take it to someone who can appraise it (later in the story).
	1: 3: Use it.
	1: In order to use these wands, you must train your hand in wands to at least 5.
	1: My advice is that you spending points early in the game on leveling up this vital skill.
	1: Moving on again...
	1: In the Master of Reality folder, there is a font.
	1: To install this font, copy it and paste it in the fonts folder.
	1: To get to the fonts folder, go to My Computer, then Control Panal, then Fonts.
	1: This will allow you to view the opening even better than before!
	1: Just a leaving note: The banks always provide a free healing service.
	1: You are indeed a good listener.
	1: You have passed the advanced training.
	1: You are now truly ready to undertake your role in the history of Pillow Gauntlet.

END

;---------
; Wise Man's House
;
SCENE 9 wiseman  SCENE, "Wise Man's Home", 0, 0
	THEME	0
	MUSIC	wiseman.mid
	COMPARE #<didlistentostory>,1
	IF= @toldstory
	IF T101, @omegian
	ACTOR	1,	"Wiseman", wiseman,	9,	25,	90
	SEL		1
	IF T11, @learn
	MOVE	1,	15, 80
	' Welcome, young one...
	SOUND wise1.wav
	' to the magical world of Pillow Gauntlet.
	SOUND wise2.wav
	' I see you are under the command of our great king.
	1: Then I shall help you to understand this plight.
	GOTO @hearstory
END

@hearstory
	1: 518 years ago on this very planet, there was a crisis.
	1: The five daemon escaped from Hell, causing fear throughout the world...
	FX 1
	WAIT 5
	GOTO SCENE 113
END

@toldstory
	ACTOR 1, "Wiseman", wiseman, 1,25,90
	1: Well, there you have it.
	IF T11, @bedtime
	1: It's up to you to save this world!
	1: I wish that I could help...
	1: Oh yes! I have a friend in Manze, the city you were just in.
	1: His name's Ronnie, and he's a swordsmith!
	1: I'll pay for your first set of equipment; just go by his house!
	1: He lives in the brown one with the grey roof, you can't miss it!
	1: See you soon!
	GIVE T11
	SET didlistentostory, 0
END

@hearstory2
	H: Could you tell it to me again?
	' Sure.
	GOTO @hearstory
END

@learn
	' So, would you like to hear the story again?
	ASK 20
	IF YES, @hearstory2
	IF NO, @bedtime
END

@bedtime
	1: Thanks for listening!
	SET didlistentostory, 0
END

@alreadysaidyes
	' Well, there you go.
	' Goodbye, %1!
	WAIT 1
	TAKE T2002
	GOTO LINK 7,1,0
END

@omegian
	ACTOR	1,	"Ulrius", wiseman,	9,	25,	90
	IF T113, @ringover
	IF T112, @ring
	IF T106, @shadowfaks
	IF T104, @toldrest
	IF T103, @gotsword
	IF T102, @toldsword
@sword
	1: Welcome, %1. It is good to see that you have come.
	1: You seek my guidence, do you not?	
	H: Yes, Sir Ulrius. Where might the first piece of equipment be?
	1: The first peice you can get is on or near Euphoria.
	1: Look for a trangular ruin.
	1: That should tell you where it is.
	1: %1, Osbornius will be waiting inside for you.
	1: Do your very best, and don't give up!
	1: Make sure to come back when you have the new equipment!
	H: Yes, Ulrius. I shall be back soon!
	GIVE T102
END

@toldsword
	1: Have you gotten the sword yet?
	H: No, but I am trying.
	1: Good. Remeber that it is in Euphoria.
	1: You now have new boots, those might be the key to getting to the ruins.
	GOTO @askaboutstory
END

@gotsword
	H: Ulrius, I have gotten the Omegian Sword from Osbornius!
	H: It looks very powerful...
	1: Hmm? Let me see...
	1: *gasp* It cannot be...
	H: What is it?
	1: The sword is no longer enchanted!
	1: That means it no longer has the power to kill Omega!
	H: This is horrible...
	1: Hmm... fear not.
	1: Once I regain my strength, I will be able to recharge the equipment.
	1: Hmm... why don't you return to your castle now?
	1: I must meditate to find the next ruin...
	1: I shall see you soon, %1!
	GIVE T104
END

@toldrest
	1: You've been working hard.
	1: Why don't you go to your castle and rest a bit?
	GOTO @askaboutstory
END

@shadowfaks
	1: Ahh, so you're going to Shadowfaks.
	1: Well, come back to me when you find something!
	GOTO @askaboutstory
END

@ring
	1: Ahh, so you've managed to colect the Omegian Ring.
	1: This is good news. I'm glad to see you were able to find it.
	1: Hmm, it appears that this ring is also no long enchanted...
	1: Well then, I suppose that I shall have to enchant this later as well.
	1: Why don't you go back to your castle?
	1: Come back tommorrow and I should be able to tell you where to go next.
	1: See you soon, %1!
	GIVE T113
END

@ringover
	1: You look tired, so why don't you go get some rest?
	GOTO @askaboutstory
END

@askaboutstory
	1: By the way, would you like for me to explain the history of this world to you again?
	ASK 9999
	IF Qy, @hearstory
	1: Very well.
	1: I shall see you later, then.
END


;---------
; Boat Liftoff

SCENE 27 mport,  SCENE, "Boat Liftoff", 0, 0
	THEME 	0
	MUSIC portshop.mid
	ACTOR 1, "Salty Pirate", pirate, 9,25,90
	IF T72, @vendetta
	POSE	1,2,3,4
	SEL	1

	TAKE T300
	TAKE T301
	' Arrg.. is ye be wantin' to go somewhere?
	' I can take ye to Euphoria or Shadowfaks, but not te Omega's Lair!
	WAIT 1
	MENU "Euphoria=@goeuphoria","Shadowfaks=@shadowfaks"
	1: No? No'er? See ya, then!
END

@goeuphoria
	' Garg..we be off!
	WAIT 2
	GOTO LINK 14,6,0
END

@eventactorclick1
	' Arrg! Har har!
END

@shadowfaks
	1: To Shadowfaks!
	WAIT 0.5
	GOTO LINK 29,2,0
END

@vendetta
	1: Would ye like to go to Vendetta, Euphoria, or Shadowfaks?
	WAIT 2
	@menu1
	MENU "Euphoria=@goeuphoria","Vendetta=@govendetta","Shadowfaks=@shadowfaks"
	WAIT 1
	GOTO @menu1
END

@govendetta
	1: Arr... 'ere we go!
	WAIT 2
	GOTO LINK 19,0,0
END

;---------
; Lady Jane

SCENE 33 fight,  SCENE, "Eupohirific House", 0, 0
	THEME 	0
	MUSIC ladyjane.mid
	ACTOR 1, "Lady Jane", ladyjane, 1,25,90
	SEL	1
	COMPARE #<num.peopleInScene>, "1"
	IF>,@MOB
	IF T3010-T3011, @givesackful
	COMPARE #<gotcookies>, "1"
	IF=, @stuff4sale
	1: Why hello there! I'm an ol' woman, so you must speak up!
	1: Are you the one going to that crazy island of Punchin' Gullet?
	1: Or...Pumping Golf-cart?
	H: Pillow Gauntlet?
	1: Why, yes, sonny boy! I don't mind if I do!
	H: NO, PILLOW GAUNTLET!
	1: Oh, yes, Pillow Gauntlet. Are you going to it?
	ASK 99999
	IF YES, @yes
	1: Oh, ok. Come back soon!
END

@yes
	H: YES, I AM GOING! I AM GOING TO PILLOW GAUNTLET!
	1: You don't have to shout, sonny, I'm right here.
	1: Please, take these cookies on your journey.
	GIVE I300
	GIVE I300
	1: They're fresh from the oven; a real treat, they are.
	SET gotcookies, "1"
END

@stuff4sale
	1: Oh! You're back! Get whatever you need, honey.
	OFFER 300,301,302
END

@mob
	1: Oh my! One at a time, boys! My cookies aren't THAT good!
END

@givesackful
	1: Why hello there young 'un!
	1: What brings you here today?
	H: I'd like to buy a sack of cookies, if you don't mind!
	1: Sure thing, sonny! One sack of apples coming right up!
	MOVE 1,-5,90
	H: No, no you didn't hear me right. I need cookies. COOKIES!
	1: Calm down, sonny, I'll be right back!
	WAIT 5
	MOVE 1,25,90
	WAIT 3
	1: I-I-I-I'm back! And I've got apples!
	H: Umm, thanks, but I could really use so--
	1: What's that sonny?
	H: COOKIES! I NEED A SACK OF COOKIES!
	1: My my sonny, why the sudden tone?
	1: Well, here's you a sack cookies.
	1: My, my, CHILDren these days...
	GIVE I305
	GIVE T3011
	MOVE 1,-100,90
END

;---------
; Castle

SCENE 34 axl,  SCENE, "King Joe's Throne", 0, 0
	IF T8-T1, @sign
	THEME 	0
	ACTOR 1, "King Joe", kingjoe, 1,30,75
	ACTOR 2, "Euphoristic Guard", guards, 1,35,65
	ACTOR 3, "Euphoristic Guard", guards, 1,20,90
	MUSIC kingjoe.mid
	IF T3022, @occult2
	IF T3021, @occult12
	IF T3020-T3021, @occult1
	IF -T8, @start
	IF T1, @axl
@start
	1: Young sir, I have a mission for you.
	1: I ask that you help brother island Pillow Gauntlet.
	1: Opon your arrival at the port, talk with the port healer to gain access to the island.
	1: Once you get there, meet up with King Axl in Manze Castle.
	1: The king is a grand friend of mine and I do not wish to see him in peril...
	1: Besides, I have yet to repay the debt left by my ancestors...
	H: What are you talking about?
	1: Nothing...you'll find out soon enough.
	GIVE T8
	MOVE 1,-10,70
END

@sign
	ACTOR 10, "Sign", sign, 9,25,80
END

@axl
	IF T612-I404, @wand
	IF T40, @sitae
	IF T32, @delta2
	IF T30, @delta
	IF T24, @alpha2
	IF T20, @alpha
	IF T2, @ronnie
	1: Ahh, so how did your meeting with Axl go?
	H: Fine, right now I'm on a quest to talk to the Wise Man!
	1: The Wise Man, eh? Well, that sounds just grand.
END

@ronnie
	1: Welcome back, %1!
	H: Hey, I got some equipment!
	1: Good! Why don't you go check on King Axl, now?
	1: I'm sure he has something for you to do!
END

@alpha
	1: Hello! Any news?
	H: Axl told me he is having problems with a cave creature named Alpha.
	1: Yes, I too have received word of Alpha's arrival. Approach with caution.
END

@alpha2
	1: Back so soon?
	H: I beat Alpha!
	1: Wonderful! Did Axl say for you to do anything?
	H: He said a man in Manze was waiting for me.
	1: Well then, don't keep him waiting!
END

@delta
	H: A man in Manze told me there was another crystal in Erson!
	1: Ah, a second clue. This story is unfolding rather nicely, wouldn't you say?
	1: Go off! Get the shard!
END

@delta2
	1: What's up?
	H: I beat Delta and recieved his crystal!
	1: Grand! What's next?
	H: I'm heading back to Manze now to tell the man who sent me!
END

@sitae
	1: What's up?
	H: I'm helping the mayor in Sitae fight off evil stuff!
	1: Umm... cool?
	1: Have fun!
END

@wand
	1: Welcome!
	1: Wha-- could that be an...
	1: FFX HAT?!?!
	H: Yes.... it is.
	1: %1, I beg of you, may I have it?
	1: I shall give you my staff in exchange!
	H: Of course, sire! Here you are!
	1: Wonderful.
	TAKE I525
	GIVE I404
	GIVE T614
	GOTO @start
END

@occult1
	IF T3021, @toldoccult
	1: Welcome, %1! Have you been sent by the masters?
	H: Yes; they tell me that you are having troubles.
	1: Well, that's quite true. You see, whenever I go to pray to the gods, I hear these noises...
	1: I know that it is not my own people, and noone can seem to tell me what it is...
	1: I do not know what to do. %1, could you please go and see if the masters know anything about this?
	H: Certainly, King Joe. I shall go now and see if the masters know anything more.
	1: Thank you %1! Please, take these with you.
	H: No problem, King Joe. I shall return soon!
	N: *King Joe gave you two ability tokens!*
	GIVE I213
	GIVE I213
	GIVE T3021
END

@toldoccult
	1: Please return to the masters as soon as possible!
END

@occlut12
	1: Please hurry and see what the masters have to say.
	1: I cannot sleep at night anymore!
END

@occult2
	H: I have been given a statue of a deamon!
	H: The masters found it while I was gone.
	1: A statue? This is most interesting...
	1: Come, let's go and see if this could have anything to do with the shrine.
	WAIT 2
	GOTO SCENE 260
END

@eventactorclick1
	SOUND joe.wav
	1: Wha-wha-wha-wha, what do you want?
END

@eventactorclick2
	2: ...
END

@eventactorclick3
	3: ...
END

@eventactorclick10
	N: At the port.
	N:	 - King Joe
END

;----------------------------------
; Guest room

SCENE 50 wiseman, CUT, "King Joe's Guest Chambers" 0,0
	MUSIC shrine.mid
	ACTOR 1, "Hero", mirror, 1,80,80
	SEL 1
	FACE 1
	ACTOR 2, "", other_large, 6,80,85
	1: Why am I here? I have my own home!
	1: Sure are some comfy beds here, though.....
	1: ....zzzzz.....
	COLOR 1013
	COLOR 2013
	WAIT 0.3
	COLOR 1013
	COLOR 2013
	WAIT 0.3
	COLOR 1013
	COLOR 2013
	WAIT 0.3
	BKGND black.jpg
	MOVE 2,-100,-100,1
	COLOR 1000
	COLOR 2000
	MUSIC	sleep.mid, 1
	ACTOR 1, "Zzz...", other, 25,30,35
	WAIT 7
	GIVE L9999
	GIVE M9999
	MUSIC shrine.mid
	ACTOR 1, "Hero", mirror, 1,80,80
	ACTOR 2, "", other_large, 6,80,85
	SEL 1
	FACE 1
	BKGND wiseman.jpg
	1: Huh? What? Oh, I must have drifted off.
	1: Well, I'm quite refreshed, I think I can leave now.
	MOVE 1,-100,80
	WAIT 3
	GOTO EXIT
END

;---------------------------------------
; Shrine

SCENE 51 joetemple100, SCENE, "Shrine to the Gods"
	ACTOR 1, "", other, 6,62,78
	MUSIC shrine.mid
	IF T3023, @shrine2
	BKGND joetemple.jpg
	H: I should pay my respect to the gods...
END

@shrine2
	BKGND joetemple2.jpg
	ACTOR 2, "", other, 8,32,78
	ACTOR 3, "", invis, 1,20,60
	H: I should pay my respect to the gods...
	N: Right-click the door to go down.
END

@eventactorclick3
	GOTO LINK 28,0,0
END

	


;---------
; Home

SCENE 35 wiseman,  SCENE, "Home", 0, 0
	THEME 	0
	MUSIC #nochange
	ACTOR 4, "Broken TV", tv1, 1,50,57
	IF T711, @T711
	IF T720, @T720
@start
	ACTOR 1, "Bed", other, 2,25,75
	ACTOR 2, "Drawer", other, 3,35,80
	H: I wonder if I need anything..
END

@eventactorclick1
	N: Rest?
	ASK 9999
	IF YES, @rest
	GOTO @start
END

@rest
	GOTO SCENE 152
END

@eventactorclick3
	MENU "Coke=@coke" "Pepsi=@pepsi"
END

@coke
	3: Here you are!
	N: *Got Coke!*
	GIVE I12
	3: Thank you!
END

@pepsi
	3: Here you are!
	WAIT 0.5
	N: *Got Pepsi!*
	GIVE I13
	3: Thank you!
END

@didgetthemoney
	SEL 2
	POSE 4
	WAIT 1
	SEL 2
	POSE 3
END

@eventactorclick4
	IF -T720, @oldtv
	IF T721, @choosechannel
	COMPARE #<didhearrob>, 1
	IF= @shouldgobank
	SEL 4
	POSE 2
	4: Welcome to Mor' News!
	4: Today's headline i---
	4: Breaking news! Bandits have just broken into Master of Reality Bank!
	4: They are now trying to make an escape!
	4: Someone! Quick! Hurry! Run to the bank on Pillow Gauntlet!
	4: You only have three minutes!
	H: Robbers? Whoa, I better hurry!
	SEL 4
	POSE 1
	H: I've got 3 minutes, right? I better hurry!
	COUNTDOWN 180
	SET didhearrob, 1
END

@choosechannel
	SEL 4
	POSE 1
	MENU "Mor' News=@newschannel" "Supa' Sports=@sportschannel"
END

@end
END

@newschannel
	SEL 4
	POSE 2
	4: Welcome to Mor' News!
	4: Today, %1 saved the bank from robbers!
	4: Thank you for your heroism, %1!
	H: Ahh, what an honor!
	SEL 4
	POSE 1
END

@sportschannel
	SEL 4
	POSE 3,4
	H: Wahoo! Look at 'em go!
END

@shouldgobank
H: Hey! I have to hurry to the bank right now!
END

@oldtv
	SEL 4
	POSE 2,3
	4: W..l..me.. M..t..r ..f ...ea....li..ty...
	WAIT 3
	SEL 4
	POSE 1
	H: Grr... it doesn't work!
	H: Let me see here.. maybe I could fix it...
	WAIT 2.5
	H: Ok! Let's see if it works, now...
	IF R5, @workingagain
	4: Hea....ine....
	SEL 4
	POSE 2,3
	H: Crap.. doesn't work...
	SEL 4
	POSE 1
END

@workingagain
	SEL 4
	POSE 4
	4: Welcome to Master of Reality news!
	H: Alright! It's working!
	4: Today's headline is....
	WAIT 1
	SEL 4
	POSE 2,3
	H: No! It doesn't work anymore!
	WAIT 2
	SEL 4
	POSE 1
END


@T711
	ACTOR 3, "Vending Machine", other_large, 5,85,55
	IF T720, @T720
	GOTO @start
END

@T720
	ACTOR 4, "New TV", tv2, 1,50,57
	GOTO @start
END

#include Item Box.txt
END