;
; MISCELLANEOUS SCENES
;---------

;---------
SCENE 206 cave1, SCENE, "Cellar", 0, 0
	ACTOR	1,	"General Maelstrom",		joshRoyalty,2,		10,	90
	ACTOR	2,	"Barry",		joshRoyalty,4,		30,	88
	THEME	2
	MUSIC	""

;	MOVE	2,20,75
;	OFFER	1,2,100,101,120,121,140,141,160,161,181

	1: I say!  What are YOU doing here?
	2: Yes, what are you doing here?
	1: This is just a test scene for Dan!
	2: Yes, get out!
	1: Or fight these...
	2: This is a 'Fight *, 1, 2, -3' command
	FIGHT *, 1, 2, -3


END

;---------
SCENE 207 pumpHouse, SCENE, "Pump House", 0, 0
	ACTOR	1,	"Guard",		josh55,1,		10,	85
	ACTOR	2,	"Lord Fist",	josh19,1,		-30,	90
	THEME	2
	MUSIC	""

;	MOVE	2,20,75
;	OFFER	1,2,100,101,120,121,140,141,160,161,181

	1: Hey buddy!  This here's a restricted area!
	1: You better clear out.
	1: The boss don't like people poking around his mek stuff
	MOVE	2,25,90
	Wait 3.0
	2: I see we have visitors
	2: Leave us, would you, Frank?
	1: Okay boss, whatever you say
	MOVE	1,-30,85
	WAIT 2.0
	2: So, now... are you interested in my mechanical devices?
	2: They're really QUITE modern...
	2: and unexpectedly USEFUL in small ways.

END

;---------
SCENE 208 aztec, SCENE, "Arena", 0, 9
	ACTOR	1,	"Lord Fist",	josh19,1,	90,	80
	THEME	2
	MUSIC	""

;	OFFER	1,2,100,101,120,121,140,141,160,161,187
	OFFER2	0,99,0,15,25

	1: Welcome to the Arena, %2, you %3
	1: Here you can test your worth!
	1: You look puny! Here's an easy one!

	FIGHT	1
	WAIT	3.0
	1: Ha!  Try THIS! (Did I mention this was to the death?)
	FIGHT	1,1,1,1,1,1,1,1
	WAIT	10.0
	1: You make me sick!
	FIGHT	4,5,5,6
	WAIT	10.0
	1: You can run away at any time, coward!
	FIGHT	7,7,7
	1: You call yourself a hero?
	FIGHT	52,52,53,53,53
	1: Well, here's a recharge for free!
	GIVE H1000
	GIVE M1000
	
	
END

;--------
; a series of battles, culminating with Sand Wyrm
SCENE 220 cave1, SCENE, "Abatoir", 0, 0
	MUSIC "ahad_attack"

	FIGHT	169
	IF	DEAD, @dead
	FIGHT 	169,169
	IF	DEAD, @dead
	FIGHT	169,169,169
	IF 	DEAD, @dead
	FIGHT 	241, 169, 169
	IF	DEAD, @dead
	FIGHT	241, 241, 241, 241, 241
	IF	DEAD, @dead
	FIGHT	213
	IF	DEAD, @dead
; Wow, we're tough!
	MUSIC	"ahad_slam"
	WAIT 1.0
	ACTOR 1, "Sandman", josh1, 1, 20, 90
	WAIT 3.0
	1: Stop!
	1: Don't hit me!
	1: You have bested my beasts!
	1: Even my mighty Sand Wyrm now whimpers in its cavern
	1: Why would you not leave me alone?
	

@dead	
	
	END
END

;--------
;--------
; The Guild Hall Room
SCENE 222 wideArena.200.25, SCENE, "Guild Hall", 0, 0
	MUSIC ""

END

;--------
; race track
;

SCENE 230 cave1 SCENE, "Race Track"
	THEME	-1
	MUSIC	""
	ACTOR	1,	"Toad",		joshAnimals,	29,	20,	100
	POSE	29,29,30
	
	GAME	2
	1: The race is about to begin!
	1: Press your GAME button to check it out!
END

;


;
; Blackjack Table
;
SCENE 232 shop SCENE, "House o' Cards"
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Charise", joshTownsFolk, 24, 25, 90
	POSE	24,25,4
	MOVE	1,	15, 80
	GAME	4
	' Perhaps you would care to pass the time playing cards?
	' We could arrange a small wager to make it interesting?
END

;
; Pokegatchi Pen
;
SCENE 233 shop SCENE, "Pokegatchi Pen"
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Rebecca", joshTownsFolk, 24, 25, 90
	POSE	24,25,4
	MOVE	1,	15, 80
	GAME	5
	' Have you checked in on your pets recently?
	' You know, you can check them at any time by typing /pet
END

;
; Asteroids Game
;
SCENE 234 shop SCENE, "Arcade"
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Ramona", joshTownsFolk, 24, 25, 90
	POSE	24,25,4
	MOVE	1,	15, 80
	GAME	6
	' We're not sure where this magical device came from?
	' But press your game button for a peek at it.
END

;
; Stock market
;
SCENE 235 shop SCENE, "Dow Bones"
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Phyllis", joshTownsFolk, 24, 25, 90
	POSE	24,25,4
	MOVE	1,	15, 80
	GAME	7
	' You look burdened down under the weight of your gold pieces.
	' Perhaps you would like to convert some of it into attractive paper equities.
	' Press the GAME button to open the market exchange screen.
END


;
; Tetris
;
SCENE 236 shop SCENE, "Hall of Mystery"
	THEME	0
	MUSIC	waltz2.mid
	ACTOR	1,	"Charlotte", joshTownsFolk, 24, 25, 90
	POSE	24,25,4
	MOVE	1,	15, 80
	GAME	8
	' Help us, oh mighty adventurer. An evil sorcerer has left behind this devilish game.
	' We cannot escape its tyrannical grasp!
END

;--------------
;--------------
; Fisher Girl
;
SCENE 251 pond, HEAL, "Fishin' Hole", 2, 0
	THEME	5
	MUSIC	waltz2.mid
	ACTOR	1,	"Debbie", joshTownsfolk, 26, 10, 90
	POSE	6, 26, 27
	MOVE	1,	15, 95
	IF ALIVE, @skip1
	' I'm, sorry, please return when you're not so... well... dead.
	END
@skip1
	' I am the world's best fisherperson! Would you like me to catch you a fish?
@again2
	POSE	6, 26, 27
	ASK 30.0
	IF YES, @tryFish
	' Well, come on back if you ever need a fish!
	POSE	26,27,28
	END
@tryFish
	POSE	6
	' I will do my best!
	WAIT	1
	POSE	26,27,6
	WAIT	5
	IF	R30,	@caughtOne
	' I'm sorry, would you like me to try again?
	GOTO @again2
@caughtOne
	POSE	28,30,30
	IF	R30	@bigOne
	' Got one! Shall I try for another?
	GIVE	I31
	GOTO	@again2
@bigOne
	' Ooo, it's a BIG one! Want another?
	GIVE	I30
	GOTO 	@again2

END

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

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

;--------------
; goblin rock recharge
;
SCENE 254 bgRoseWater, HEAL, "Fairy Entrepreneur", 2, 0
	THEME	5
	MUSIC	waltz2.mid
	ACTOR	1,	"The Soul Collector", josh16, 1,10,90
	POSE	1,4,2
	MOVE	1,	20, 80
    SET wantedItemClass, %R10
    ADD wantedItemClass, 10
	IF ALIVE, @skip1
	1: I collects stuff.  Stuff what's got bits of soul stucks to it.
	1: Toss me somfin an' I sees what I can do.
	END

@eventActorGive1
	COMPARE #<item.id>, 0
	IF= @gotCash
	COMPARE #<item.class>, #<wantedItemClass>
    IF= @gotHelmet
	1: What am I supposed to do with a freaking #<item.name>?
	END

@gotCash
	1: Naaaah.. I gots all the cash I needs. Try somfin else.
	END

@gotHelmet
	COMPARE #<item.price>, 2000
    IF< @tooCheap

	1: Yeah!  Dis will go good wif my colleckshun. Tanks!
	1: Oh yeah.. gets alive and stuff.
	WAIT    4.0
	SOUND	"thunder1.wav"
	WAIT	1.0
	GIVE	L1
	GIVE	H1000
	GIVE	M1000 
	1: Dat's it buddy.
	END

@tooCheap
    1: Dat's sort of wat I lookins for.
	1: But dis one is too cheap.
	1: You gots a better one?
	END

@skip1
	1: I donts got nuttin fer you.
	1: Come back when yer less... lively
END




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

;--------------
; PK Arena Ticket Booth
;
SCENE 261 bgWaterCave3, GATE, "PK Arena Ticket Booth", 2, 0
	THEME	5
	MUSIC	waltz2.mid
	ACTOR	1,	"Mermaid", joshMiscellaneous, 12, 10, 90
	POSE	12,13,13
	MOVE	1,	15, 85

	1: In the PK Arena, you can be hurt by any player...
	1: ...whether you are a PKer or not.
	1: Other player's pets will attack you as well.
	1: You are going to the PK Arena in 5 seconds
	IF I98, @noGift
	GIVE I98
@noGift
	WAIT 	5
	GOTO 	LINK	6, 0, 0
END

;--------------- tutorial scenes



;--------------
; Equip/Fighting/Hand training
;
SCENE 290 shop, HEAL, "Hand Training", 0, 0
	THEME	0
	MUSIC	#silence
	ACTOR	1,	"Master of the Hand", josh90, 1, 5, 85
	POSE	1,4,2
	MOVE	1,	15, 85
	' I won't mince words with you %2, you %3!
	' I'm here to teach you how to fight! 
	' Let's see what you can do against my little green friend!
@1
	MOVE	1,	45, 75
	FIGHT 1
	IF	ALIVE, @2
	' Bah! You're a weak little %3! 
	' Let me resurrect you and let's try again
	' This time, remember to press the EQUIP button to select your sword first!
	' When your sword cursor is 'smoking' THEN click on the monster!
	' Is that too hard for you to understand, you %3??!!
	' If this is too TOUGH for you, press EXIT or FLEE to run away, you %3!
	GIVE	L1
	GIVE	H5000
	GIVE	M5000
	GOTO	@1
@2	
	MOVE	1,	15, 85
	' HA! *Anyone* can kill one of THOSE, you %3!
	' You may have bought fancy equipment from some shopkeeper.
	' Or maybe you found some after killing a monster.
	' But you have to know how to EQUIP it, or it does you no good!
	' Press the EQUIP button. NOW!
	' That picture up on top, that's YOU!  
	' That shows what YOU'RE EQUIPPED WITH!
	' Down below is a list of all the equipment you're carrying.
	' If you RIGHT-CLICK on the list, you can equip yourself with something else.
	' The equipment with the GREEN PLUS SIGN next to it will make you stronger.
	' The equipment with a RED X is useless to you, unless you train for it.
	' If you have some equipment you can't use, you can SELL it to a shopkeeper.
	' Just RIGHT-Click on the thing you want to sell.
	' Don't try to sell it to ME!
	' Do I look like a SHOPKEEPER?  You %3!
	' Each piece of equipment boosts your ATTACK or DEFENSE points.  Or BOTH!
	' Your TOTAL A/D points are shown up on top.
	' And you look WEAK, you %3!
	' Do you have some GREEN PLUS SIGNS you should be equipping?
	' Only an IDIOT carts around quality equipment and then DOESN'T EQUIP IT!
	' Let's try something more challenging, shall we?
@3
	MOVE	1,	45, 75
	FIGHT 1, 4
	IF	ALIVE, @4
	' Bah! You disgust me, you %3! 
	' But I'll give you another chance anyway!
	' When you KILL a monster, you earn experience points!
	' Enough experience, and you will go up in levels! 
	' But when you die, you LOSE half the experience you've earned towards your next level!
	' If this is too TOUGH for you, press EXIT or FLEE to run away, you %3!
	GIVE	L1
	GIVE	H5000
	GIVE	M5000
	GOTO	@3
@4	
	MOVE	1,	15, 85
	' Not bad, not bad.
	' Maybe there is HOPE for you yet, you %3!
	' As your level goes up, you'll find you get even stronger.
	' But you also need to get some TRAINING for your hand!
	' I say 'hand' because here in Evergreen, everyone starts out as an expert in some hand.
	' Maybe you're a sword-user, a fist-user, or a book-user.
	' I wouldn't KNOW!
	' What do I look like? Someone who CARES?
	' Not likely, you %3!
	' Press the EQUIP button again.
	' Look up on top, see that TRAINING button?
	' That opens your HAND TRAINING screen.
	' You can do this whenever you like.
	' The more trained you are in a hand, the better weapons of that hand's class you can EQUIP!
	' Get it? To equip a level 6 sword, you need to train yourself to  level 6 in the sword HAND!
	' That's simple enough, isn't it, you %3!
	' You get a little training in your HAND each time you use it in battle.
	' But you can also just spend PP on the TRAINING screen to get a quick start.
	' What do you MEAN, "What's PP", you %3!
	' Why, PP is only the most important thing in the world!
	' PP is "Participation Points!"
	' You don't get them for free, either!
	' You have to EARN your PP, you %3!
	' You earn a little PP every time you hit a monster.
	' Watch the PP meter at the bottom left while you hit this big guy
@5
	MOVE	1,	45, 75
	FIGHT 5
	IF	ALIVE, @6
	' Bah! You disgust me, you %3! 
	' But I'll give you ONE more chance!
	' You just lost half your PP when you died, you know!
	' If this is too TOUGH for you, press EXIT or FLEE to run away, you %3!
	GIVE	L1
	GIVE	H5000
	GIVE	M5000
	GOTO	@5
@6	
	MOVE	1,	15, 85
	' OK! I think you're getting the hang of this, you %3!
	' Did you see all the PP you got there?
	' It doesn't matter how much you hurt the monster.
	' It's your PARTICIPATION which counts!
	' It's like your TEAM SPIRIT!
	' I like your spirit, you old %3!
	' A lot of %3s would have run off already, but you got moxie, kid!
	' Now you can use this PP to buy some extra HAND or ELEMENT training.
	' You'll also need it to learn SPELLS if you're into that wimpy magic stuff!
	' Give me a SWORD anyday!
	GIVE T2
	' But if you ARE a sissy, go see my brother about how all that works!
	' You're getting pretty good at fighting though.
	' I think you've got the basics now:
	' 1.) Kill monsters! You get experience and free equipment
	' 2.) Don't die! You lose Experience and Participation points
	' 3.) Equip the green plus sign equipment right away!
	' 4.) Sell equipment you don't need (or give it to a pal)!
	' 5.) Use PP to boost your training in the HANDS you like.
	' We'll make a fighter out of you yet, you old %3!
	' Hey, how bout one more for old times sake?
	GIVE	L1
	GIVE H5000
	GIVE M5000
	MOVE	1,	45, 75
	FIGHT 53
	IF ALIVE, @7
	' wimp! Get out of here!
@7
	MOVE	1,	15, 85
	' Some final words:
	' While your LEVEL makes you stronger in all ways...
	' Your STRENGTH makes your sword more effective...
	' Your STAMINA makes your armor stronger...
	' WISDOM is normally thought of use only to magicians...
	' But with more WISDOM, you will earn greater PP per attack!
	' Make me proud of you, %2, you old %3!
	MOVE	1,	-30, 85
END

;--------------
; spells/elements
;
SCENE 291 bgWaterCave3, HEAL, "Merlins Guild", 2, 0
	THEME	0
	MUSIC	#silence
	ACTOR	1,	"Master of Magic", "Lammys Suija", 1, 10, 90
	POSE	1,4,2
	MOVE	1,15, 85

	' Greetings, %2.
	IF T1, @1
	' I feel my teachings will be more effective if first you meet with my brother, Master of The Hand.
	' Go now. Return to me after learning the ways of the HAND.
	END
@1
	' So you wish to become wiser in the ways of magic...
	' As you no doubt know, the use of magic requires mana.
	' At the bottom left, the MP meter shows how much mana you have.
	' If you have none, then I have nothing to teach you.
	' As your level increases, your mana will likewise grow.
	' Of course, some character classes have more natural talent for magic than others.
	' And perhaps you are too old to begin the training.
	' But we shall see.
	' Before we can call upon the mystic ethers of magic, we will need to learn some spells.
	' Press the SPELLS button along the bottom of the window.
	' This is a list of the spells you know.
	' Each spell belongs to one of the eight elements.
	' The spell selector wheel above lets you filter the spell list.
	' It also shows you which elements are most effective against one another.
	' Elements on opposite sides of the wheel have the greatest animosity.
	' Thus Fire hates Water, and Water hates Fire.
	' Most monsters you encounter in the world are themselves bound to an element.
	' Proper selection of spell will be the most valuable decision you can make.
	' To learn a new spell, press the NEW SPELLS button next to the wheel.
	' Learning spells is a difficult task, requiring much PP.
	' A red X next to a spell, means it is above your training in that element.
	' To learn, for example, a level 4 water spell, first you must train yourself to level 4 in the water element.
	' To train yourself in the elements, press the ELEMENT SKILLS button next to the wheel.
	' Training in an element is simple, but requires even more PP.
	' PP, as you will recall, are "Participation Points"
	' You earn them in battle, each time you attempt an attack.
	' Even the greatest mage must begin life as a lowly swordsman.
	' For until you earn a great deal of PP, you will be unable to learn spells.
	' If you are lacking in PP now, go seek training in the skills of the hand.
	' But if you are ready to open your eyes to another universe, select an element and train!
	' I suggest you learn a basic fire spell as soon as possible.
	' Fire will be most effective against this WATER element monster!
@1
	FIGHT 1
	IF ALIVE, @2
	' As I feared, you show little competence in the fine arts.
	' To cast your spell you must press the SPELLS button, select the spell, and then click on the opponent.
	' Your wand will 'smoke' when you are ready to cast your spell.
	' Spells cost mana points, so keep your MP meter full by using Magic Potions.
	' Press EXIT or FLEE to leave this battle now.
	' But if you would like to try again...
	GIVE	L1
	GIVE H5000
	GIVE M5000
	GOTO @1
@2
	' Excellent, though that creature is of low challenge.
	' Since PP is of such importance to a magic user, you are advised to keep your WISDOM up.
	' The greater your wisdom, the more PP you will earn for each attack.
	' Also, wisdom itself makes your castings more powerful.
	' As does your ever increasing level.
	' You will no doubt wish to learn all eight elements to the highest level.
	' But be forewarned that each step you take on the path of learning in one element..
	' ...causes your skill in the opposing elements to decrease ever so slightly.
	' You might do well to specialize in a few related elements before learning all.
	' Again, do not be too proud to learn the ways of the HAND.
	' It might be of use when you least expect it.

	IF S207, @skipGift
	' But here, for being such a good student, please accept this spell as a gift.
	' It is a %S207 spell and might help you when you need it.
	GIVE S207
@skipGift
	MOVE	1,	-30, 85

	
END

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



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


SCENE 11 interior11
	THEME	0
	MUSIC	shop.mid
	ACTOR	1,	"John", "Lammys Severance", 1, 25, 90
	POSE	1,	3,	3
	SELECT	1
; since I'm so lazy, I'll just make this a healing/rez point as well as a shop.
	IF DEAD, @resurrect_in_shop
	GOTO @sell_items
END

@sell_items
	GIVE H10000
	GIVE M10000
; set the lowest level equipment at 5 levels lower than the player
	SET lowLevel, #<num.hostLevel>
	SUB lowLevel, "5"
; set the highest level equipment at 5 levels higher than the player
	SET highLevel, #<num.hostLevel>
	ADD highLevel, "5"
; set the weapon class
	SET weaponClass, #<num.hostClass>
	ADD weaponClass, "11"
; now sell the stuff
	OFFER2	#<lowLevel>,#<highLevel>,#<weaponClass>,		#<lowLevel>,#<highLevel>,10,		#<lowLevel>,#<highLevel>,11,		#<lowLevel>,#<highLevel>,20,		#<lowLevel>,#<highLevel>,21,		#<lowLevel>,#<highLevel>,22,		#<lowLevel>,#<highLevel>,23
	1: Hello, %2. I am Daniel, son of John, the  wandering merchant.
	1: So, what can I do for ya? Would you like to purchase?
END

@resurrect_in_shop
; now resurrect them and take them to the shop
	1: I don't sell to dead people...so I'll have to resurrect you.
	GIVE L1
	GIVE H10000
	GIVE M10000
	GOTO @sell_items
END

;---------------------------------------------------
; we need a comment at the end, or bad things happen


