; small scenes for Elliair and other places.
;
; made by Silver

SCENE 800, 	oceancastle, SCENE, "Outside the Rebel Castle",2,0

	MUSIC 
	FLAGS 1024

	IF T430, @totallyover
	IF T431, @totallyover

	ACTOR 1,"Rebel Guard 1", a46, 1, 35,85
	ACTOR 2,"Rebel Guard 2", a50, 4, 10,90
	ACTOR 3,"Rebel Guard 3", a70, 4, 20, 95


	IF T418, @emptyscene
	IF T295, @rotwar

	IF T268, @rebelgate
	IF T263, @done1	
	IF T262, @traitor

	1: Halt!
	2: Who goes there?
	H: I'm %1 and I wish to speak with Warlord Keithuso.
	3: How do we know if we can trust you?
	IF T259, @gotkickedoutemp
	3: We'll have to send you on a mission, a test.
	1: What did you have in mind this time...
	2: Yeah remember how cruel your last test was?
	1: I still have nightmares of what happened with the poor guy.
	3: No no, it won't be *THAT* cruel this time, this quest will be simple.
	H: '*Yikes!*
	WAIT 3.0
@empfixjob
	3: All you'll have to do is kill General Shin.
	3: If you do it stealthily, then the Emperor will never find out.
	3: What do you have to fear?
	H: An execution or the death of 1,000 needles or extreme tortures and that's just the beginning!
	2: Yes, but that's only *if* the emperor finds out.
	1: You don't have to do the job, but for all we know you could be a spy sent by the emperor to kill Keithuso.
@ask1
	3: Do you want the job or not?
	ASK 30.0
	IF YES, @job1
	IF NO, @no1
	GOTO @ask1
@no1
	IF T259, @empfixjob2
	HOST_GIVE T262
	HOST_GIVE T289
	HOST_GIVE T273
	2: I think we know enough now.
	3: Don't return here traitor, next time we won't let you go... alive.
	WAIT 3.0
	GOTO EXIT
@traitor
	1: Die you traitor!
	HOST_TAKE H10000
	HOST_TAKE M10000
	END
 @gotkickedoutemp
	H: Because I got kicked out of the Imperial Palace and I have no other place to go.
	1: Hmmm...
	2: We'll grant you access, but we're wondering if you're intrested in this job we have.
	H: What do I have to do?
	GOTO @empfixjob
@empfixjob
	3: Fine...
	2: We'll just open the castle gates so you can enter.
	HOST_GIVE T268
	WAIT 3.0
	PARTY T172
	GOTO SCENE 801
@job1
	HOST_GIVE T263
	3: Good, I knew you'd see it our way.
	1: There are several ways you could kill the general.
	2: The best way I know of is a combination with spells from the Ninja element.
	2: However if you mess up the combination the general will attack you, so be warned.
	H: What kind of combination should I use?
	2: Well that's up to you, you could try to make him dizzy first so he won't notice what you're doing.
	2: Then you get one extra chance of messing up a spell.
	2: If you mess up you, then should make him dizzy again before you make another attempt.
	2: Also you might want to take care he doesn't make a noise before you hit him with the lethal spell.
	1: Yeah you don't wanna risk him shouting for guards...
	1: If you do have to fight guards you better take care to kill them all, else the emperor will know about you.
	3: You could also kill him head on, but you can be pretty sure he'll call for guards in that case.
	2: You could also make a combination with spells and a head on attack, resistance might be less heavy that way.
	3: If you fail to kill the general you're in trouble.
	2: Well not in trouble, but you probably want to avoid encounters with Shinzobi.
	1: You might want to call for back up from your friends on line, just in case something goes wrong.
	2: Good luck %1, remember you're doing this for the good cause.
	END
@done1
	1: Hey, you returned!
	2: Did you kill him?
	IF T264, @done1kill
	IF T265, @done1lost
	H: I haven't started yet.
	3: Well then get a move on!
	3: All you have to do is kill General Shin.
	END
@done1kill
	H: He's as dead as a fat mouse between five hungry cats.
	3: Marvelous!
	3: You have earned our trust, General Shin has been a pain in the ass for months.
	3: You took care that we're one step closer to victory now!
	3: We'll open the gates so you can enter the castle.
	WAIT 5.0
	PARTY T172
	HOST_GIVE T268
	GOTO SCENE 801
	END
@done1lost
	H: I-, I failed.
	3: YOU WHAT!?
	3: Well at least you tried. 
	3: Since you made it impossible to side with the Empire, I guess we should trust you.
	HOST_GIVE T268
	2: Too bad you failed, though.
	2: It would have been useful if General Shin was no longer a problem.
	3: We'll open the gates so you can enter the castle.
	WAIT 5.0
	PARTY T172
	GOTO SCENE 801
	END

@rebelgate

	IF T296, @job3
	IF T134, @job2b
	IF T292, @job2	
	IF T277, @notwelcome
	IF T287, @jobagood
	IF T276, @jobabad
	IF T273, @jobanews
	IF T272, @kidnap
	IF T271, @nextmission

	2: I can't let you through right now.
	END
@job2b
	WAIT 2.0
	H: I found Kamatari!
	1: Good, we'll let you through right away.
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@job2
	3: Are you having trouble finding Kamatari?
	H: Yeah.
	3: We'll let you through, maybe Keithuso has answers for you.
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@notwelcome
	1: You're no longer welcome here.
	2: I suggest you leave. 
	3: Go play with your dirty Empire mates.
	WAIT 4.0
	GOTO EXIT 
@kidnap
	2: I hope you returned with some good news for Keithuso.
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@nextmission
	2: On your way to the next mission, eh?
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@jobanews
	WAIT 2.0
	H: I have news for Keithuso about Deynata, I know where they keep her!
	3: We'll open the gate right away!
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801	
@jobabad
	WAIT 2.0
	H: I have bad news about Deynata.
	1: You better not upset Keithuso. 
	1: Nasty things tend to happen to those who do.
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@jobagood
	WAIT 2.0
	1: We have already received the good news.
	WAIT 4.0
	PARTY T172
	GOTO SCENE 801
@job3
	IF T412, @job3a
	1: Enter the castle quickly, you never know when more Imperial soldiers are coming!
	WAIT 2.0
	PARTY T172
	GOTO SCENE 801
@job3a
	WAIT 2.0
	3: It's getting quiet...
	H: Sure is, all fights on the maps are over.
	H: I'm here to report the results to Keithuso.
	3: Great!
	3: You may enter.
	WAIT 3.0
	PARTY 172
	GOTO SCENE 801
@rotwar
	IF T412, @rotwarfight
	1: Get out of here you traitor!
	WAIT 3.0
	GOTO EXIT
@rotwarfight
	FLAGS 0
	ACTOR 4, "Kamatari",a22,4,73,96
	ACTOR 5, "Imperial Guard",boss006,4,92,96
	ACTOR 6, "Imperial Guard",a12,4,80,74

	FACE 4,4
	FACE 6,4

	1: Get out of here you traitor!
	H: I don't think so.
	H: You see, we wiped out all rebel scum from the maps already and you're the last remaining resistance.
	H: All resistance must be eliminated in name of the Emperor!
	1: Fine, die!
	MOVE 1,-50,50,1
	MOVE 2,-50,50,1
	MOVE 3,-50,50,1
	MOVE 4,-50,50,1
	MOVE 5,-50,50,1
	MOVE 6,-50,50,1
	FIGHT2 667,668,669,652,652,-657,-658,-663
	IF WIN, @endrotwar
	MOVE 3,-5,90,1
	MOVE 3,20,90
	WAIT 5.0
	3: We will never surrender to the Emperor!
	H: We'll be back.
	END	
@emptyscene
	IF -T420, @empscene 
	MOVE 1,-50,50,1
	MOVE 2,-50,50,1
	MOVE 3,-50,50,1
	END
@endrotwar
	HOST_GIVE T418
	GIVE L1
	GIVE H#<num.hostMaxHP>
	GIVE M#<num.hostMaxMP>
	H: Let's pay Keithuso a little visit, shall we?
@empscene
	WAIT 3.0
	PARTY T172
	GOTO SCENE 801
@totallyover
	N: This place is abandoned...
	END

; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; REBEL CASTLE
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


SCENE 801,	morphious, SCENE,"Inside the Rebel Castle",0,0

	FLAGS 1024 

	ACTOR 1, "Warlord Keithuso",keithuso, 4, 45,83
	ACTOR 2, "Rebel Guard", a11,	4, 40, 99
	ACTOR 3, "Rebel Guard", a11,	4, 15, 99
	ACTOR 4, "Rebel Guard", a4,	4, 25, 85
	ACTOR 5, "Rebel Messenger",a46,4,110,85
	ACTOR 6, "Deynata", pet010,	4,65,98

	SEL 2
	POSE 4,3
	SEL 4
	POSE 1,4
	SEL 3
	POSE 3,4
	SEL 6
	POSE 3,4

	IF T295, @rotwar
	IF T422, @job4
	IF T298, @job3
	IF T296, @job2b
	IF T292, @job2
	IF T291, @cont2
	IF T287, @jobagood
	IF T276, @jobabad
	IF T272, @joba
	IF T271, @cont2

	MOVE 6, -65,98,1
	1: *mumbling voice* Where the heck did my daughter ran off to this time?
	1: I see we have a visitor.
	1: The guards mentioned something about you.
	1: Hmm... %1, right?
	H: Yes, sir.
	IF -T118, @skipGunslinger
	1: I see that you are a %C?
	1: My great great ancestor used to be a %C as well.
	1: It is an honor to meet you.
	H: Thank you, sir.
	
@skipGunslinger	
	IF -T264,@attempt
	1: I heard that you killed General Shin for us.
	1: Good work you did there! 
	1: Heck I always reward special jobs with special rewards.
	1: I'll teach you my %S116 technique.
	WAIT 5.0
	SOUND "thunder1.wav"
	1: There you go.
	HOST_GIVE T269
	HOST_GIVE S116
	N: You have learned the spell %S116.
	GOTO @cont1
@attempt
	MOVE 6, -65,98,1
	1: I heard you tried to kill General Shin for us.
	1: Too bad you failed, but I always reward doing the trouble for it.
	1: Looks like you could use a decent belt so here is a %I955, made by rebel hands!
	HOST_GIVE T270
	HOST_GIVE I955
@cont1
	WAIT 3.0
	MOVE 6, -65,98,1
	MOVE 5,90,85
	WAIT 6.0
	5: Sir, I have bad news!
	1: What? the Empire is launching another assault?
	5: No sir, it's far worse.
	WAIT 5.0
	1: Well, come on! Tell me what's so important!
	5: It's... your daughter, sir.
	5: Deynata has been kidnapped.
	1: ...
	WAIT 4.0
	1: WHAT DID YOU SAY!?
	1: KIDNAPPED!?
	1: %1, did you take her?
	H: NO WAY!
@ask1
	1: Hmmpf.. well could you go look for her?
	ASK 30.0
	IF YES, @accept1
	IF NO, @reject1
	GOTO @ask1
@accept1
	MOVE 6, -65,98,1
	HOST_GIVE T289
	1: Good, messenger, did they ask for ransom?
	5: Yes sir, about 75,000 GP in total.
	1: WHAT THE??
	1: I don't have that much money on me.
	1: The best I have with me is 50,000 GP.
	1: %1, do what ever you need to get my daughter back.
	1: If you need the 50,000 GP then come back later and I'll give it to you.
	1: Just be sure to have enough space in your pockets.
	1: Messenger did they tell where we could get her?
	5: Yes sir, they mentioned we could meet a few of their men at the Green Destiny.
	H: Excuse me, sir, but where is that?
	1: Hmmm, good question... it's somewhere south isn't it?
	HOST_GIVE T272	
	5: Yes, Green Destiny is south east of here, you can't miss it.
	1: Aight now get going, I want my daughter back!
	5: Excuse me, sir, I have other messages to deliver.
	1: You're excused.
	MOVE 5,120,95
	WAIT 3.0
	H: I'll be on my way, sir.
	WAIT 5.0
	GOTO EXIT
@reject1
	MOVE 6, -65,98,1
	HOST_GIVE T271
	HOST_GIVE T289
	1: Argh, if you want to do something right you gotta do it yourself!
	1: Messenger, take all the man you need and hunt those bastards down!
	5: Yes, sir!
	MOVE 5,125,95
	GOTO @cont2
	END
@joba
	MOVE 6, -65,98,1
	IF -T273,@jobasub
	IF T274,@jobamon
	IF T290, @jobanomon 
	WAIT 2.0
	H: Sir, I have news for you about your daughter.
	H: I know where they're hiding her, sir.
	WAIT 5.0
	1: Well, go on!
	H: They're keeping her in Arakaki, the desert city.
	1: Argh, that's about the only place we don't control yet.
	1: Those stubborn slavers and mercenaries don't want to join us and are too strong to be overthrown.
	1: I can't risk a war right now there, we need every rebel we have already against the Empire.
	1: I'm sorry but you'll be on your own there.
	N: Do you need the extra 50,000 GP?
	ASK 300.0
	IF NO, @noneedmon
	H: I also could use some money to buy Deynata free.
	1: A promise is a promise..
	1: Here is 50,000 GP money, maybe you can manage to get a discount or something...
	HOST_GIVE T274
	HOST_GIVE G50000
	1: Now get a move on, I want to see my daughter back!
	H: Yes, sir!
	WAIT 3.0
	GOTO EXIT
@noneedmon
	1: Ow yeah, I almost forgot, but don't you need that extra 50,000 GP?
	H: I'll be fine without sir, but thanks for the offer.
	1: You're a true rebel!
	HOST_GIVE T290
	1: Now get a move on, I want to see my daughter back!
	H: Yes, sir!
	WAIT 3.0
	GOTO EXIT 
@jobanomon
	1: Why haven't you found my daughter yet?
	1: Get a move on, I want to see my daughter back!
	WAIT 3.0
	GOTO EXIT
@jobasub
	MOVE 6, -65,98,1
	1: You haven't even searched for that meeting place yet.
	1: The Green Destiny is south south east of here, now get a move on.
	1: If you need money then come back after meeting those punks.
	WAIT 3.0
	GOTO EXIT
@jobamon
	MOVE 6, -65,98,1
	WAIT 2.0
	H: Sir, I could use some more money.
	1: Well then you have to rob some Imperial Guard cause I don't got it on me right now.
	1: Be inventive or borrow some from some a friend on line.
	H: I'll try that sir.	
	1: Now get a move on, I want to see my daughter back!
	WAIT 3.0
	GOTO EXIT
@jobabad
	MOVE 6, -65,98,1
	WAIT 2.0
	HOST_GIVE T277
	H: I have news about your daughter, sir...
	1: She is finally returning home?
	H: Not exactly...
	1: ....
	1: Somebody fill me in about what happened before I'm starting to get pissed.
	H: I'm sorry sir, but your daughter got killed...
	1: WHAT!?
	1: HOW COULD THAT HAPPEN!?
	1: You must have pissed them off somehow, what the heck did you do!?
	H: ...
	H: You don't want to know...
	1: ...
	1: I'm thinking about a good punishment for you right now...
	1: You'd better leave before I come up with something, because when I do it'll be to late for you...
	WAIT 6.0
	GOTO EXIT
@jobagood
	6: I already entered the castle before you did %1 and informed father about your actions.
	1: Many thanks %1.
	IF -T274, @extramondone
	1: Accept this %I957 as a token of my appreciation.
	HOST_GIVE I957
	GOTO @cont2
@extramondone
	1: Please accept this %I957 and 100,000 GP as a token of my appreciation.
	HOST_GIVE I957
	HOST_GIVE G100000
@cont2
	IF T291, @job2
	1: I have another job for you, somebody needs to track down Kamatari for us.
	1: If he fights on our side then we can be sure of victory.
	IF T261, @shintold
	H: Do you have any idea where I could find Kamatari?
	1: Well you could try to find the passage to Kamatari's cave, it's supposed to be in the Synth.
	1: The Synth is a real maze though, you probably want to take some extra supplies with you if you're running low.
	HOST_GIVE T291
	HOST_GIVE T292
	HOST_GIVE T293
	END
@shintold
	H: The Emperor requested me to do the same for the Empire.
	1: So Shinzobi is after Kamatari's support too huh...
	HOST_GIVE T292
	HOST_GIVE T293
	1: Well  you already know where to find him so get going!
	WAIT 5.0
	GOTO EXIT
@job2
	IF T134,@job2b
	WAIT 2.0
	H: Sir, where can find Kamatari again?
	1: You can find Kamatari in Kamatari's cave, the only way to get there is by going through the Synth.
	1: The Synth is south east of the Green Destiny.
	END
@job2b
	WAIT 2.0
	H: Sir, I found Kamatari and got his support.
	1: Good, very good.
	HOST_GIVE T296
	IF -V50, @alternativejob2
	1: Guard are all our men ready?	
	3: Yes sir, everybody is ready to move out on your command!
	1: Well then...
	1: LET'S MOVE OUT!
	WAIT 5.0
	H: Ehm... 
	H: Sir...?
	1: Yes, %1?
	H: What are our mission objectives?
	1: Mm, oh yeah you need those, don't you?
	1: Well the mission is pretty simple, just kill everything on sight that doesn't wear a rebel uniform.
	1: I need you to clear out the world map, Green Destiny, Neither Lands, Maku's Tunner, Sacred Plaines, Tajuin Rock, No Remorse, and finally Lock and Load. 
	1: After all the Imperial troops have been defeated we'll go for the Imperial Castle.
	1: Once we took out the Empire all our troubles will be over.
	SET tempit, #<num.hostLevel>
	DIV tempit, "2"
	1: Here take these #<tempit> %I37s, you probably have more use of them then I do.
	HOST_GIVE I37.#<tempit>
	HOST_GIVE T298
	HOST_GIVE T299
	SET nudfyn1, "0"
	SET nudfyn2, "0"
	SET nudfyn3, "0"
	SET nudfyn4, "0"
	SET nudfyn5, "0"
	SET nudfyn6, "0"
	SET nudfyn7, "0"
	SET nudfyn8, "0"
	SET nudfynw, "0"
	SET nudfynl, "0"
	WAIT 3.0
	N: You received #<tempit> %I37s.
	1: Now get going %1, we need to beat those Imperial bastards as soon as we can!
	H: Yes, sir!
	IF V55, @skipBonusItems
	SET temp, 55
	SUB temp, #<num.hostLevel>
	COMPARE #<temp>, "5"
	IF> @skipBonusItems	
	1: Oh, before I forget, you earned #<temp> %I8 for joining us early in the war!
	N: You received #<temp> %I8s.
	HOST_GIVE I8.#<temp>
	
@skipBonusItems	
	WAIT 3.0
	GOTO EXIT
@alternativejob2
	1: Return to me once you get to level 50, then I will explain you your mission objectives and all important details.	
	1: We need that Empire scum killed as soon as possible, I offer a bonus of one %I8 for every level below 55 that you start the war.
	1: Good luck, %1.
	END
@job3	
	IF T412, @job3end
	1: Back so soon?
	H: Yes, I'm having a small problem with the mission, what were my exact orders again?
	1: I need you to clear out the world map, Green Destiny, Neither Lands, Maku's Tunner, Sacred Plaines, Tajuin Rock, No Remorse, and finally Lock and Load. 
	1: After we have defeated all the Imperial troops, we'll go for the Imperial Castle.
	1: Once we took out the Empire all our troubles will be over.
	1: Pay more attention next time, %1.
	H: Will do, sir.
	WAIT 3.0
	GOTO EXIT
@banfi
	HOST_GIVE T172
	PARTY T172
	GOTO LINK 99,0,1
@job3end
	WAIT 2.0
	H: Sir, all enemies have been defeated!
	1: GREAT!
	1: I knew you could pull it off.
	1: Sure I had my doubts first, but you turned out to be a fine rebel warrior!
	COMPARE #<nudfynw>,"199"
	IF> @banfi
	SET tempg, #<nudfynw>
	MUL tempg, 1000
	ADD tempg, "%R20000"
	1: Let's see...
	1: You won #<nudfynw> battles, that means you'll get #<tempg> GP.
	HOST_GIVE G#<tempg>
	HOST_GIVE T422
	COMPARE #<nudfynw>, "175"
	IF< @job4
	SET item, "2049"
	ADD item, "%R6"
	1: For the great job you did for us I also want to give you this %I#<item>.
	HOST_GIVE I#<item>
@job4
	1: It's time for our final assault on the Imperial Palace.
	1: You have to kill Emperor Shinzobi.
	1: I already took care that Kamatari and 2 %M651s will assist you.
	1: You should avoid getting them killed since they might proof to be very useful.
	1: Good luck %1, may the eternal spirit of all lost rebel souls support you in your mission!
	H: Yes, sir!
	WAIT 3.0
	GOTO EXIT
@removedyn
	MOVE 6,-50,50,1
	GOTO @rotwar2
@rotwar
	IF T276, @removedyn
@rotwar2
	IF T419, @rotwarwon
	FLAGS 0
	ACTOR 2, "Rebel Lord", a21,	4, 40, 99
	ACTOR 3, "Rebel Lord", a21,	4, 15, 99
	ACTOR 4, "Rebel Lord", a21,	4, 25, 85
	ACTOR 7 "Kamatari",a22,4,90,105
	ACTOR 8 "Imperial Guard",boss006,4,82,90
	ACTOR 9 "Imperial Guard",a12,4,96,88
	FACE 7,4
	FACE 9,4
	
	WAIT 2.0
	H: It's time for you to die, Keithuso!
	H: The Emperor ordered your assasination.
	1: Fool, we'll see how far you get.
	MOVE 1,-50,80,1
	MOVE 2,-50,80,1
	MOVE 3,-50,80,1
	MOVE 4,-50,80,1
	MOVE 5,-50,80,1
	MOVE 6,-50,80,1
	MOVE 7,-50,80,1
	MOVE 8,-50,80,1
	MOVE 9,-50,80,1
	MUSIC "mother.mid"
	IF T276, @fightnodyn
	FIGHT2 670,671,650,650,650,650,-663,-657,-658
	IF WIN, @rotwarwon
@rotwarlost
	MOVE 1,-50,90,1
	MOVE 1,20,90
	WAIT 5.0	
	1: As long as I breath the rebels will never be beaten!	
	H: We'll be back.
	WAIT 3.0
	GOTO EXIT

@fightnodyn
	FIGHT2 670,650,650,650,650,-663,-657,-658
	IF WIN, @rotwarwon
	GOTO @rotwarlost
@rotwarwon
	MOVE 1,-50,80,1
	MOVE 2,-50,80,1
	MOVE 3,-50,80,1
	MOVE 4,-50,80,1
	MOVE 5,-50,80,1
	MOVE 6,-50,80,1
	MOVE 7,-50,80,1
	MOVE 8,-50,80,1
	MOVE 9,-50,80,1
	IF T420, @endrot
	HOST_GIVE T419
	GIVE L1
	GIVE H#<num.hostMaxHP>
	GIVE M#<num.hostMaxMP>
	PARTY T172
#include lpscript3.txt	
	GOTO LINK 27,2,1
@endrot
	N: There is nothing here anymore...
	END

END
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; TELEPORT SCENES
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


SCENE 802,	aaadirty,SCENE,"Elliair City Gate",0,0

SET slavaon, #<rating>	
#include banscripts.txt

	ACTOR 1, "Adasaku", monster028, 1, 20,90

	IF C41,  @exit
	IF #99,  @exit
	IF T172, @exit
	IF M0,   @exit
	IF M2,   @exit
	IF M4,   @exit
	PARTY -T172
	PARTY -M0
	PARTY -M2
	PARTY -M4
	PARTY -C41
	PARTY -#99

	IF T289, @fixit
	IF -T180,@notall

@fixit
	1: I shall let you pass.
	WAIT 5.0
	PARTY T180
	PARTY T289
#include lpscript3.txt	
	GOTO LINK 24,9,0
@exit
	GOTO EXIT
@notall
	1: I'm sorry %1, but I can't let you pass.
	1: There is another exit south east in Elliair which you can pass.
	1: You might have to visit Fastom first if you can't pass there yet.
	END

@ban

SCENE 803,	aaawater, SCENE,"Slaver's Hideout",5,2

	THEME 2

	ACTOR 1, "Slaver", a23, 4, 15,85
	ACTOR 2, "Mercenary", a24, 4, 30,95

	IF -T272,@end
	IF T273, @end
	
	1: You finally found our Hide Out, huh?
	2: Sure 'ook ya some 'ime.
	H: And you two are?
	1: I'm Hydrogai and my mate here is Komoti.
	WAIT 5.0
	ACTOR 1, "Hydrogai", a23, 4, 15,85
	ACTOR 2, "Komoti", a24, 4, 30,95
	2: So you are?
	H: I'm %1.
	1: Hmmmz... kinda weird name, %1, don't you think so Komoti?
	2: Yeah.. I've never heard i' before dha's for sure.
	H: Let's cut the bullshit guys, tell me where I can find Keithuso's daugther.
	1: That shouldn't be to hard, we're keeping her in Arakaki.
	H: AraWHATi? 
	2: Arakaki dhe deser' ci'y, i's nor'h wes' of Nei'her Lands.
	H: Why are you making this all so complicated?
	H: You could have told the messenger to go there in the first place.
	2: For securi'y of course, we're not s'upid ya know.
	H: What's up with the wacky accent?
	2: ...
	1: A few of his teeth got knocked out by a couple rebels two nights ago in Lefty's.
	H: Ouch.
	2: Nex' 'ime I'm gonna kill 'hose bas'erds!
	2: Wors' dhing is I los' my golden 'oo'h.
	H: So, what are your demands?
	1: Just money, if you pay us 75,000 GP then you'll get the daugther of Keithuso in return.
	1: Come alone or we'll kill Deynata and you probably don't want that to happen, do you?
	HOST_GIVE T273
	HOST_GIVE T180
	HOST_GIVE T657
	H: I don't think you'd risk that.
	2: Don' dhink dhe rebels are almigh'y, dhere are more fac'ions dhen jus' dhe Empire and dhe rebels.
	2: Dhe rebels and dhe Empire jus' happen 'o be dhe 'wo bigges'.
	1: Time for us to go.
	MOVE 2,-20,95
	MOVE 1,-20,95
	WAIT 4.0
	H: Hey wait!
	WAIT 4.0
	H: Ah well, I might as well get moving.
	WAIT 4.0
	GOTO EXIT
@end
	MOVE 2,-20,95,1
	MOVE 1,-20,95,1
	END
SCENE 1167
IF -T542, @megaend
GOTO SCENE 1168
@megaend
GOTO EXIT
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; END ROT WAR
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SCENE 814	aaadirty,CUT,"",0,0

	FLAGS 16384
	LOCK 1
	EJECT T172
	SET slavaon, #<rating>	
#include banscripts.txt
	MUSIC "black_sabbath.mid"
	
	IF T118, @gunslingerAlternative

	ACTOR	1,	"RoT's Protector",monster002, 4, 30, 90
	ACTOR 2,	"#<str.name>",mirror,1,110,90

	FACE 2,4
	MOVE 2,65,95

	GIVE T172
	HOST_TAKE T172

	N: To prevent lag, select Stats or Map.
	N: Do not click away the dialogues to prevent issues.
	WAIT 3.0
	1: ...
	1: It's quite something, isn't it?
	SEL 2
	POSE 4
	2: What is?
	1: By showing what happened in Revolution of Terrors past I hoped to prevent it from happening again.
	1: Yet you fell for every scheme, precisly as planned by Devil and Daemonium.
	1: Do you really think it would have mattered whether you choose to kill Shinzobi or Keithuso?
	2: Eh... I guess not?
	1: As long as many soldiers got killed during the war it was all fine with Devil and Daemonium.
	1: They got everybody pumped up and eventually war was inevitable.
	1: Let's see who's side you are on.
	1: It's time to be judged.
	WAIT 2.0
	IF T428, @ultimateevil
	IF T425, @ultimategood
	IF T426, @good
	IF T427, @evil

@gunslingerAlternative
	SET rating, "0"
	COMPARE #<rating>, "0"
	IF> @S11
	
; verdeling:
; KWAAD: 
; moord op man -15
; moord op vrouw -20
; martelen -10
; afpersen -10
; bedreigen -5
; mishandelen -6
; poging tot mishandelen -3
; slavenhandelen -10  
; death pet -5
; stealth moord -15
; help weigeren -10 
; moordopdrachten accepteren -5
; ontsnapte slaven vermoorden -25
; moordpogingen -10
; genezing weigeren -5
; mensen laten wachten -2
; mensen lang laten wachten -3
; opdrachten niet uitvoeren zoals gevraagd -5
; hebzucht -5
;
; 222 (/227 eigenlijk) is maximaal kwaad.
;
; GOED:
; life pet 5
; mensen laten ontsnappen (en dus laten leven) 10
; mensen sparen 20
; moordopdrachten weigeren 15
; medelijden 10
; mensen verdedigen/ redden van de dood 15
; mensen verdedigen/ redden van de dood in ruil voor geld 10
; genade tonen 10
; vreedzame oplossingen vinden om problemen mee op te lossen 15
; mensen helpen 10 (/5 ligt aan de situatie)
; vertrouwen winnen 5
; mensen genezen 10
;
; 220 is maximaal goed. (niet herchecked)
;	
	IF -T131, @check1
	ADD rating, -2
@check1
	IF -T132, @check2
	ADD rating, -3
@check2
	IF -T135 ,@check3
	ADD rating, 15
@check3
	IF -T136 ,@check4
	ADD rating, -3
@check4
	IF -T138 ,@check5
	ADD rating, -3
@check5
	IF -T139 ,@check6
	ADD rating, -6 
@check6
	IF -T140 ,@check7
	ADD rating, -10 
@check7
	IF -T141 ,@check8
	ADD rating, 10
@check8
	IF -T143 ,@check9
	ADD rating, 15
@check9
	IF -T144 ,@check10
	ADD rating, 15 
@check10
	IF -T145 ,@check11
	ADD rating, 15 
@check11
	IF -T147 ,@check12
	ADD rating, -10
@check12
	IF -T148 ,@check13
	ADD rating, 5
@check13
	IF -T149 ,@check14
	ADD rating, 10
@check14
	IF -T196 ,@check15
	ADD rating, 5 
@check15
	IF -T197 ,@check16
	ADD rating, -5
@check16
	IF -T182 ,@check17
	ADD rating, -5
@check17
	IF -T183 ,@check18
	ADD rating, 15
@check18
	IF -T184 ,@check19
	ADD rating, -5
@check19
	IF -T185 ,@check20
	ADD rating, 15
@check20
	IF -T186 ,@check21
	ADD rating, -15
@check21
	IF -T187 ,@check22
	ADD rating, -15 
@check22
	IF -T188 ,@check23
	ADD rating, -15
@check23
	IF -T193 ,@check24
	ADD rating, 25
@check24
	IF -T221 ,@check25
	ADD rating, -25
@check25
	IF -T224 ,@check26
	ADD rating, 20 
@check26
	IF -T225 ,@check27
	ADD rating, 10
@check27
	IF -T226 ,@check28
	ADD rating, -15
@check28
	IF -T227 ,@check29
	ADD rating, -20
@check29
	IF -T230 ,@check30
	ADD rating, 5
@check30
	IF -T231 ,@check31
	ADD rating, -10
@check31
	IF -T245 ,@check32
	ADD rating, 10
@check32
	IF -T246 ,@check33
	ADD rating, -10
@check33
	IF -T247 ,@check34
	ADD rating, -15
@check34
	IF -T259 ,@check35
	ADD rating, -15 
@check35
	IF -T262 ,@check36
	ADD rating, 15
@check36
	IF -T263 ,@check37
	ADD rating, -5
@check37
	IF -T265 ,@check38
	ADD rating, -10
@check38
	IF -T264-T267 ,@check39
	ADD rating, -15
@check39
	IF -T264+T267 ,@check40
	ADD rating, -15
@check40
	IF -T268 ,@check41
	ADD rating, 5
@check41
	IF -T271 ,@check42
	ADD rating, -10
@check42
	IF -T272 ,@check43
	ADD rating, 5
@check43
	IF -T274 ,@check44
	ADD rating, 15
@check44
	IF T274 ,@check45
	ADD rating, 10 
@check45
	IF -T275 ,@check46
	ADD rating, -5 
@check46
	IF -T276 ,@check47
	ADD rating, -20
@check47
	IF -T277 ,@check48
	ADD rating, -5
@check48
	IF -T278 ,@check49
	ADD rating, 5
@check49
	IF -T279 ,@check50
	ADD rating, 5
@check50
	IF -T281 ,@check51
	ADD rating, 10
@check51
	IF -T282 ,@check52
	ADD rating, -5
@check52
	IF -T286 ,@check53
	ADD rating, 5
@check53
	IF -T287 ,@check54
	ADD rating, 15
@check54
	IF -T288 ,@check55
	ADD rating, 15
@check55
	IF -T300 ,@check56
	ADD rating, -10
@check56
	IF -T309 ,@check57
	ADD rating, -20
@check57
	IF -T310 ,@check58
	ADD rating, -15
@check58
	IF -T311 ,@check59
	ADD rating, 15 
@check59
	IF -T312 ,@check60
	ADD rating, 15
@check60
	IF -T331 ,@check61
	ADD rating, 10
@check61
	IF -T332 ,@check62
	ADD rating, -15
@check62
	IF -T405 ,@check63
	ADD rating, 10
@check63
	IF -T406 ,@check64
	ADD rating, -15
@check64
;	IF -T ,@check6
;	ADD rating, 
;@check6

	IF -GS, @skipextrarating
	MUL rating, "110"
	DIV rating, "100"

@skipextrarating
	
	IF T118, @gunslingerScene
	
	IF -C1, @class2
	ADD rating, "20"
	COMPARE #<rating>, "0"
	IF< @class1a
	COMPARE #<rating>, "215"
	IF> @class1b
	HOST_GIVE T426
	GOTO @judgement
@class1a
	SET num.hostClass, "16"
	HOST_GIVE T427
	GOTO @judgement
@class1b
	HOST_GIVE T425
	GOTO @judgement

@class2	
	IF -C2, @class3
	ADD rating, "20"
	COMPARE #<rating>, "0"
	IF< @class2a
	COMPARE #<rating>, "215"
	IF> @class2b
	HOST_GIVE T426
	GOTO @judgement
@class2a
	SET num.hostClass, "17"
	HOST_GIVE T427
	GOTO @judgement
@class2b
	HOST_GIVE T425
	GOTO @judgement

@class3
	IF -C3, @class5
	COMPARE #<rating>, "215"
	IF> @class3a
	COMPARE #<rating>, "-205"
	IF< @class3b
	COMPARE #<rating>, "0"
	IF> @class3c
	SET num.hostClass, "25"
	HOST_GIVE T427
	GOTO @judgement
@class3a
	SET num.hostClass, "42"
	HOST_GIVE T425
	GOTO @judgement
@class3b
	SET num.hostClass, "25"
	HOST_GIVE T428
	GOTO @judgement
@class3c
	SET num.hostClass, "42"
	HOST_GIVE T426
	GOTO @judgement

@class5
	IF -C5, @class6
	COMPARE #<rating>, "215"
	IF> @class5a
	COMPARE #<rating>, "-205"
	IF< @class5b
	COMPARE #<rating>, "0"
	IF> @class5c
	SET num.hostClass, "45"
	HOST_GIVE T427
	GOTO @judgement
@class5a
	SET num.hostClass, "46"
	HOST_GIVE T425
	GOTO @judgement
@class5b
	SET num.hostClass, "45"
	HOST_GIVE T428
	GOTO @judgement
@class5c
	SET num.hostClass, "46"
	HOST_GIVE T426
	GOTO @judgement	

@class6
	IF -C6, @class8
	ADD rating, "-10"
	COMPARE #<rating>, "215"
	IF> @class6a
	COMPARE #<rating>, "-205"
	IF< @class6b
	COMPARE #<rating>, "0"
	IF> @class6c
	SET num.hostClass, "48"
	HOST_GIVE T427
	GOTO @judgement
@class6a
	SET num.hostClass, "47"
	HOST_GIVE T425
	GOTO @judgement
@class6b
	SET num.hostClass, "48"
	HOST_GIVE T428
	GOTO @judgement
@class6c
	SET num.hostClass, "47"
	HOST_GIVE T426
	GOTO @judgement	

@class8
	IF -C8, @class9
	ADD rating, "-5"
	COMPARE #<rating>, "215"
	IF> @class8a
	COMPARE #<rating>, "-205"
	IF< @class8b
	COMPARE #<rating>, "0"
	IF> @class8c
	SET num.hostClass, "50"
	HOST_GIVE T427
	GOTO @judgement
@class8a
	SET num.hostClass, "49"
	HOST_GIVE T425
	GOTO @judgement
@class8b
	SET num.hostClass, "50"
	HOST_GIVE T428
	GOTO @judgement
@class8c
	SET num.hostClass, "49"
	HOST_GIVE T426
	GOTO @judgement	

@class9
	IF C61, @ratitnow
	IF -C9, @class10
@ratintnow
	COMPARE #<rating>, "0"
	IF> @class9a
	HOST_GIVE T427
	GOTO @judgement
@class9a
	HOST_GIVE T426
	GOTO @judgement

@class10
	IF -C10, @class11
	COMPARE #<rating>, "215"
	IF> @class10a
	COMPARE #<rating>, "-205"
	IF< @class10b
	COMPARE #<rating>, "0"
	IF> @class10c
	SET num.hostClass, "52"
	HOST_GIVE T427
	GOTO @judgement
@class10a
	SET num.hostClass, "51"
	HOST_GIVE T425
	GOTO @judgement
@class10b
	SET num.hostClass, "52"
	HOST_GIVE T428
	GOTO @judgement
@class10c
	SET num.hostClass, "51"
	HOST_GIVE T426
	GOTO @judgement

@class11
	IF -C11, @class16
	ADD rating, "5"
	COMPARE #<rating>, "215"
	IF> @class11a
	COMPARE #<rating>, "-205"
	IF< @class11b
	COMPARE #<rating>, "0"
	IF> @class11c
	SET num.hostClass, "54"
	HOST_GIVE T427
	GOTO @judgement
@class11a
	SET num.hostClass, "53"
	HOST_GIVE T425
	GOTO @judgement
@class11b
	SET num.hostClass, "54"
	HOST_GIVE T428
	GOTO @judgement
@class11c
	SET num.hostClass, "53"
	HOST_GIVE T426
	GOTO @judgement

@class16
	IF -C16, @class17
	ADD rating, "-20"
	COMPARE #<rating>, "0"
	IF> @class16a
	COMPARE #<rating>, "-205"
	IF< @class16b
	HOST_GIVE T427
	GOTO @judgement
@class16a
	SET num.hostClass, "1"
	HOST_GIVE T426
	GOTO @judgement
@class16b
	HOST_GIVE T428
	GOTO @judgement

@class17
	IF -C17, @class18
	ADD rating, "-20"
	COMPARE #<rating>, "0"
	IF> @class17a
	COMPARE #<rating>, "-205"
	IF< @class17b
	HOST_GIVE T427
	GOTO @judgement
@class17a
	SET num.hostClass, "2"
	HOST_GIVE T426
	GOTO @judgement
@class17b
	HOST_GIVE T428
	GOTO @judgement

@class18
	IF -C18, @class20
	COMPARE #<rating>, "215"
	IF> @class18a
	COMPARE #<rating>, "-205"
	IF< @class18b
	COMPARE #<rating>, "0"
	IF> @class18c
	SET num.hostClass, "23"
	HOST_GIVE T427
	GOTO @judgement
@class18a
	SET num.hostClass, "44"
	HOST_GIVE T425
	GOTO @judgement
@class18b
	SET num.hostClass, "23"
	HOST_GIVE T428
	GOTO @judgement
@class18c
	SET num.hostClass, "44"
	HOST_GIVE T426
	GOTO @judgement

@class20
	IF -C20, @class22
	ADD rating, "-20"
	COMPARE #<rating>, "215"
	IF> @class20a
	COMPARE #<rating>, "-205"
	IF< @class20b
	COMPARE #<rating>, "0"
	IF> @class20c
	SET num.hostClass, "56"
	HOST_GIVE T427
	GOTO @judgement
@class20a
	SET num.hostClass, "55"
	HOST_GIVE T425
	GOTO @judgement
@class20b
	SET num.hostClass, "56"
	HOST_GIVE T428
	GOTO @judgement
@class20c
	SET num.hostClass, "55"
	HOST_GIVE T426
	GOTO @judgement

@class22
	IF -C22, @class12
	COMPARE #<rating>, "215"
	IF> @class22a
	COMPARE #<rating>, "-205"
	IF< @class22b
	COMPARE #<rating>, "0"
	IF> @class22c
	SET num.hostClass, "24"
	HOST_GIVE T427
	GOTO @judgement
@class22a
	SET num.hostClass, "43"
	HOST_GIVE T425
	GOTO @judgement
@class22b
	SET num.hostClass, "24"
	HOST_GIVE T428
	GOTO @judgement
@class22c
	SET num.hostClass, "43"
	HOST_GIVE T426
	GOTO @judgement

@class12
	IF -C12, @class13
	HOST_GIVE T427	
	GOTO @judgement
@class13
	IF -C13, @class14
	HOST_GIVE T426
	GOTO @judgement
@class14
	IF -C14, @class15
	HOST_GIVE T427
	GOTO @judgement
@class15
	IF -C15, @class26
	HOST_GIVE T426
	GOTO @judgement
@class26
	IF -C26, @class36
	GOTO @S11
@class36
	IF -C36, @class4
	COMPARE #<rating>, "215"
	IF> @class36a
	COMPARE #<rating>, "-205"
	IF< @class36b
	COMPARE #<rating>, "0"
	IF< @class36c
	HOST_GIVE T426
	SET num.hostClass, "37"
	GOTO @judgement
@class36a
	HOST_GIVE T425
	SET num.hostClass, "37"
	GOTO @judgement
@class36b
	HOST_GIVE T428
	SET num.hostClass, "38"
	GOTO @judgement
@class36c
	HOST_GIVE T427
	SET num.hostClass, "38"
	GOTO @judgement
@class4
	IF -C4, @class7
	COMPARE #<rating>, "0"
	IF< @class4a
	HOST_GIVE T426
	GOTO @judgement
@class4a	
	HOST_GIVE T427
	GOTO @judgement

@class7
	IF -C7, @class19
	COMPARE #<rating>, "0"
	IF< @class7a
	HOST_GIVE T426
	GOTO @judgement
@class7a	
	HOST_GIVE T427
	GOTO @judgement

@class19
	IF -C19, @class27
	HOST_GIVE T426
	GOTO @judgement

@class27
	IF -C27, @class28
	HOST_GIVE T426
	GOTO @judgement

@class28
	IF -C28, @class29
	HOST_GIVE T428
	GOTO @judgement

@class29
	IF -C29, @class30
	COMPARE #<rating>, "0"
	IF< @class29a
	HOST_GIVE T426
	GOTO @judgement
@class29a	
	HOST_GIVE T427
	GOTO @judgement

@class30
	IF -C30, @class57
	HOST_GIVE T428
	GOTO @judgement

@class57
	IF -C57, @class58
	COMPARE #<rating>, "0"
	IF< @class57a
	HOST_GIVE T426
	GOTO @judgement
@class57a	
	HOST_GIVE T427
	GOTO @judgement

@class58
	IF -C58, @class59
	COMPARE #<rating>, "0"
	IF< @class58a
	HOST_GIVE T426
	GOTO @judgement
@class58a	
	HOST_GIVE T427
	GOTO @judgement

@class59
	IF -C59, @class60
	COMPARE #<rating>, "0"
	IF< @class59a
	HOST_GIVE T426
	GOTO @judgement
@class59a	
	HOST_GIVE T427
	GOTO @judgement

@class60
	IF -C60, @class61
	COMPARE #<rating>, "0"
	IF< @class60a
	HOST_GIVE T426
	GOTO @judgement
@class60a	
	HOST_GIVE T427
	GOTO @judgement

@class61
	IF -C61, @class27
	COMPARE #<rating>, "0"
	IF< @class61a
	HOST_GIVE T426
	GOTO @judgement
@class61a	
	HOST_GIVE T427
	GOTO @judgement

@class31
	IF -C31, @judgement
	GOTO @S11
	
@gunslingerScene
	GOTO SCENE 5095

@judgement
	WAIT 1.0
	GIVE L#<num.hostMaxHP>
	GIVE M#<num.hostMaxMP>
	WAIT 2.0
	1: I have made up my judgement.
	WAIT 1.0
	IF C27, @good
	IF C28, @evil
	IF C30, @evil
	IF T428-T127, @evil
	IF T428+T127, @ultimateevil
	IF T425-T127, @good
	IF T425+T127, @ultimategood
	IF T426, @good
	IF T427, @evil
	1: Something must have gone wrong, hence you see this line. 
	1: Contact Silver asap at dumpmeel44@hotmail.com or on Discord at shadowsafer.
	END
@ultimateevil
	IF C28, @evil
	1: I see that you are truly evil, Kagoshima has suffered a lot because you.
	1: For these acts you will be punished!
	1: I sentence you to a life without soul for eternity!
	N: You feel a bite in your neck!
	GOTO @morphvamp
; skipped
	1: As you can see on your Statistics screen you are a %C right now.
	1: However if you wish I can transform you into a %C31.
@ultievil2
	1: The %C31 class has 75%% hand and 65%% magic ratio.
	1: The class has all hand and all element levels at level 9.
	1: It also has all strong summon spells and a slight advantage in PKing.
	1: However, the class only has 2300 HP at level 100.
	1: Fights against monsters might be more difficult.
	1: Think wisely before answering my next question, once you choose the choice can't be undone.
@ultievil
	1: Do you wish to morph into the %C31 class?
	MENU "Yes=@morphvamp","No=@dontvamp","Repeat advantages vs. disadvantages=@ultievil2"
	GOTO @ultievil
@dontvamp
	1: As you wish.
	GOTO @ultievil3
@morphvamp
	HOST_TAKE T520
	SET num.hostClass, "31"
	GIVE H#<num.hostMaxHP>
	GIVE M#<num.hostMaxMP>
@ultievil3
	1: Since you fight for evil and darkness you will have to assist Devil in his masterplan to overthrow Atsumori.
	1: You will learn more about this later.
	1: It is time to send you to Destroyed Lands.
	1: Your future awaits you there.
	1: From now on you should kill everything that is holy and embrace all that is dark.
	1: It is your sacred mission.
	WAIT 4.0
	HOST_GIVE T429
	GOTO LINK 18,0,1
@ultimategood
	IF C27, @good
	1: I see that you are a true champion, a saviour for Kagoshima.
	1: Your services will be greatly needed in another part of Kagoshima.
	1: You will be the champion of a village that needs somebody to stand up for them.
	GOTO @morphslayer

; skipped
	1: As you can see on your Statistics screen ou are a %C right now.
	1: However if you wish I can transform you into a %C26.
@ultigood2
	1: The %C26 class has 60%% hand and 70%% magic ratio.
	1: The class has all hand and all element levels at level 9.
	1: It also has all strong summon spells and a slight advantage in PKing.
	1: However the class will only have 2500 HP at level 100.
	1: Fights against monsters might be more difficult.
	1: Think wisely before answering my next question, once you choose the choice can't be undone.
@ultigood
	1: Do you wish to morph into the %C26 class?
	MENU "Yes=@morphhunt","No=@donthunt","Repeat advantages vs. disadvantages=@ultigood2"
	GOTO @ultigood
@donthunt
	1: As you wish.
	GOTO @ultigood3
@morphslayer
	HOST_TAKE T520
	SET num.hostClass, "26"
	GIVE H#<num.hostMaxHP>
	GIVE M#<num.hostMaxMP>
@ultigood3
	1: Since you fight for good and holiness you will have to assist Atsumori in his plan to overthrow Devil.
	1: You will learn more about this later.
	1: It is time to send you to Destroyed Lands.
	1: Your future awaits you there.
	1: From now on you should kill everything that is dark and embrace all that is holy.
	1: It is your sacred mission.
	WAIT 4.0
	HOST_GIVE T429
	GOTO LINK 18,0,1
@evil
	1: I see that you committed many crimes in Revolution of Terror...
	1: You will be a valuable #<g.wwarior> for Devil.
	GOTO @ultievil3
@good
	1: I see that you helped out many people in Revolution of Terror...
	1: You will be  valuable #<g.wwarior> for Atsumori.
	GOTO @ultigood3

; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; DESTROYED LANDS
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

SCENE 815 bkroon,SCENE,"",0,0

	THEME 0

	IF -T430, @cont
	IF -T431, @cont
	END
@cont
	ACTOR 1, "Deokito",boss017,1,15,90

	1: Mm, so you are the one RoT's Protector informed me about.
	1: You have sure left your footprint in history, you know.
;	1: I have already seen the future over 500 years, 
;	1: in fact I'm the next generation who has to deal with a similar RoT war.
;	1: Only next time it's Terminators and Cyborgs.
;	1: Perhaps you might even get to see RoT 2, the future of RoT.
	IF T425, @realgood
	IF T426, @good
	IF T427, @evil
	IF T428, @realevil
	END
@realgood
	1: In about 500 years from now the people remember you as a shield of hope, blessing the damned, and protecting the innocent.
	1: Schools, libraries, children, streets, they're all named after you, %1.
@good2
	1: However, before that happens, you'll have to beat Devil and Daemonium first. 
	1: Once Devil is defeated, he can be locked away for hundreds of years and peace will be in Kagoshima once again.
	1: You should level up to level 99 now and look for Atsumori.
	1: He might be able to help you.
	IF T118, @skipGearCommentGood2
	1: Atsumori will even have special equipment for you.
	
@skipGearCommentGood2
	1: You should also try to find Dead Plains. 
	1: It is rumored that the monsters who live there give stat enhancing abilities.
	1: These monsters are very strong though and the map is hard to find.
	HOST_GIVE T431
	1: Good luck %1, I think you will need it.
	WAIT 3.0
	GOTO EXIT
@good
	1: In about 500 years from now the people remember you as a savior, a true champion who guarded the world from being taken over by evil.	
	GOTO @good2
@realevil
	1: In about 500 years from now, the remaining survivors remember you as if you were the Grim Reaper #<g.himself>.
	1: People shiver in fear when they hear your name and the horribly deeds you have committed.
	1: Some will try to forget the dark period that started here and try to build a new life, but most will wake up with nightmares haunting them even during the day, while knowing that Devil is out there.
	1: When it comes to terrorizing people you sure did one hell of a job.
@evil2
	1: However before it gets that far you'll first have to beat Atsumori and Silver, then Atsumori can be locked up in his heaven for hundreds of years and terror will rule Kagoshima.
	1: You should level up to level 99 now and look for Devil.
	1: You should also try to find Dead Plains.
	1: It is rumored that the monsters who live there give stat enhancing abilities.
	1: These monsters are very strong though and the map is hard to find.
	HOST_GIVE T430
	1: Have "fun" with your terror, %1.
	H: Oh, I will, believe me, I will.
	WAIT 3.0
	GOTO EXIT
@evil
	1: In about 500 years from now people remember you as one of the most cruel beings that ever walked the world.
	1: Little children will be afraid to sleep at night, terrified that you will come for them while they are asleep.
	1: The terror you spread is well known and it's still a mystery why you joined Devil's side.
	GOTO @evil2	
END

; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; RESCUE DEYNATA!
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

SCENE 804	aaarunes, SCENE, "Ruined Temple",0,0

	MUSIC "Battery.mid"
	THEME	4

	ACTOR 1,"Kapigo",	a104,4,120,80
	ACTOR 2,"Sakuta",a19,4,120,80
	ACTOR 3,"Rigukai",a21,4,120,80
	ACTOR 4, "Hydrogai", a23, 1, 120,80
	ACTOR 5, "Komoti", a24, 4, 120,80
	ACTOR 6, "Deynata", pet010,4,120,80
	SEL 6
	POSE 3,4

	IF -T272, @end
	IF -T273, @end
	IF T276, @end
	IF T287, @end

	IF T288,@aftermatch
	IF T284,@lostfight1
	IF T285,@winfight1

	COMPARE #<num.peopleInScene>, "1"
	IF> @endto	

	WAIT 2.0
	H: ....
	H: Sure is quiet here...
	WAIT 10.0

	MOVE 1,0,90,1
	MOVE 1,3,81	
	WAIT 1.0
	MOVE 1,-100,78,1
	WAIT 2.0
	MOVE 1,22,80,1
	MOVE 1,40,80
	WAIT 1.0
	MOVE 2,22,80,1
	MOVE 2,20,92
	1: You're the one called %1?
	WAIT 2.0
	MOVE 2,24,92
	MOVE 3,71,69,1
	MOVE 3,71,75
	MOVE 3,61,85
	H: Yes that would be me.
	WAIT 4.0
	3: I scouted the perimeter, everything seems to be okay, #<g.he> got here alone.
	FACE 3,4
	H: What's up with the tight security?
	2: Don't take us for fools, we're either really smart or really stupid with kidnapping Deynata.
	2: As you can see we don't look like fools, we're bloody serious about this.
	IF C6, @special
	IF C20,@special
	IF C8, @special	
	H: What is the ransom for Deynata?
	1: 75,000 GP and she's all yours.
	IF C10, @bargain
	H: That's a little steep don't you think...
	2: Ow my god, this isn't a bargain deal, it's a bloody kidnap!
	H: Well I look at it like this, if I don't pay you don't get your money.
	H: Without your money you kidnapped for nothing in the first place!
	3: Smart thinking, but I think the Emperor would be interested in that case.
	3: Be glad we're so friendly that we informed Keithuso first.
	1: Besides, this 75,000 GP also guarantees that *you* can make it out alive of here.
	1: We don't mind setting an example by killing you.
	H: Alright, you have proven your point.
	IF G75000,@enoughmon
	3: What's up with this...
	3: He doesn't even have enough GP with him to pay us!
	1: Well in that case we'll just take his boots and the gold he does have on him, 
	1: if that is still not enough we'll kill Denyata.
@dealoff
	SET kidnapgp,	#<num.hostGP>
	SET kidnapboots,	%E21
	SET kidnapbelt,	%E23
	HOST_TAKE I#<kidnapboots>
	HOST_TAKE I#<kidnapbelt>
	HOST_TAKE G#<num.hostGP>
	SET item.id,	#<kidnapboots>
	ADD	kidnapgp,	#<item.price>
	SET item.id,	#<kidnapbelt>
	ADD kidnapgp,	#<item.price>
	N: Your %I#<kidnapboots> and %I#<kidnapbelt> are stolen!

	COMPARE #<kidnapgp>, "75000"
	IF< @killher
	IF= @justenough
	IF> @refund
@refund
	1: Since we're not thieves we'll give you a refund on the GP you paid us more then you had to.
	1: The total value you paid us right now was #<kidnapgp> GP
	SUB kidnapgp, "75000"
	1: Meaning you'll get #<kidnapgp> GP back.
	HOST_GIVE G#<kidnapgp>
	GOTO @saveddeynata
@justenough	
	1: You had just enough GP to pay us off with.
	GOTO @saveddeynata	
@killher
	HOST_GIVE T282
	GOTO @endtownow
@bargain
	H: 75,000 GP ransom?
	H: That's is too much, do you really think the Keithuso could afford that?
	1: Of course he could, we're talking about his daughter here!
	H: I don't think so, he got an allied assault to run already, he hardly sees her so why would he miss her?
	H: Let's make a deal, I'll pay 50,000 GP and then you're happy and I'm happy.
	2: Hmmm...
	2: 50,000 GP isn't that bad either, at least better then nothing at all...
	3: Yeah...
	3: 50,000 GP doesn't sound that bad.
	1: Curse those %Cs with their bargaining skills!
	1: Alright, 50,000 GP but not a penny less.
	H: Now we're talking.
	IF -G50000, @nobargain
	HOST_TAKE G50000
	GOTO @saveddeynata
@nobargain
	3: Wait a second....
	3: He doesn't even *have* 50,000 GP with him.
	2: This means the deal is off!
	2: You're gonna pay us 75,000 GP, we'll take your boots and belt off you.
	1: If that still wouldn't be enough then we'll just kill Deynata.
	GOTO @dealoff

@enoughmon
	HOST_GIVE T283
	MENU "Fight them=@fight1","Pay the ransom=@pay1","Talk with them=@talk1"
	END
@fight1
	H: I'll set an example with you 3 instead...
	1: WHAT!?
	MOVE 1,120,80,1
	MOVE 2,120,80,1
	MOVE 3,120,80,1
	FIGHT2 531,532,533
	IF ALIVE, @winfight1
@lostfight1
	HOST_GIVE T284
	MOVE 1,40,80,1
	MOVE 2,24,92,1
	MOVE 3,61,85,1
	1: What the heck were you thinking!?
	2: My shield got damaged, I demand compensation!
	3: My belt is broken!
	SET kidnapboots,	%E21
	SET kidnapbelt,	%E23
	HOST_TAKE I#<kidnapboots>
	HOST_TAKE I#<kidnapbelt>
	N: Your %I#<kidnapboots> and %I#<kidnapbelt> are stolen!
	1: Forget the ransom let's just kill Deynata!
	GOTO @endtow
@winfight1
	HOST_GIVE T285
	MOVE 1,40,80,1
	MOVE 2,24,92,1
	MOVE 3,61,85,1
	H: Aight guys, I just kicked your asses pretty bad, give me Deynata and I won't kill you.
	3: Seems like we don't have much choice...
	GOTO @saveddeynata
@pay1
	H: Here is your 75,000 GP
	HOST_TAKE G75000
	1: Good.
	GOTO @saveddeynata
@talk1
	H: How do I know if Deynata is still okay?
	1: Simply, you don't.
	H: Listen, 75,000 GP isn't exactly peanuts, for that amount of money I'd first wish to see if Deynata is okay.
	2: He does have a point there...
	1: Fine, guys come out!
	MOVE 5, 105,85,1
	MOVE 5, 95,97
	MOVE 4, 110,75,1
	MOVE 6, 105,75,1
	MOVE 6, 69,80
	MOVE 4, 76,75
	6: Help me %1!	
	4: Silence!
	WAIT 5.0
	1: You have seen that she's fine now pay up!
	HOST_GIVE T286
@menu2
	MENU "Pay the ransom=@pay2","Fight them!=@fight2"
	END
@pay2
	H: Alright here is your 75,000 GP.
	HOST_TAKE G75000
	HOST_GIVE T287
	1: Good.
	1: Let's move out!
	MOVE 4, 120,75
	MOVE 5, 120, 99	
	MOVE 3, 120, 85
	MOVE 1, 13,96
	WAIT 2.0
	MOVE 2, 13,96
	WAIT 1.0
	MOVE 1, -20,96
	WAIT 2.0
	MOVE 2, -20,96
	WAIT 3.0
	6: Thank you %1 for saving me!
	6: I'll meet you at the rebel castle.
	MOVE 6,120,95
	END
@fight2
	H: Quick Deynata, grab a weapon!
	1: WHAT THE!?
	MOVE 1, 120,80,1
	MOVE 2, 120,80,1
	MOVE 3, 120,80,1
	MOVE 4, 120,80,1
	MOVE 5, 120,80,1
	MOVE 6, 120,80,1
	FIGHT2, 531,532,533,534,535,-536
	IF ALIVE, @winfight2
	HOST_GIVE T284
	HOST_GIVE T276
	WAIT 6.0
	MOVE 1,40,80,1
	MOVE 2,24,92,1
	MOVE 3,61,85,1
	MOVE 4,76,75,1
	FACE 4,2
	MOVE 5,95,97,1
	FACE 5,2
 	1: I hope you're happy now.
	1: Your "heroic" action got Deynata killed.
	4: That bastard ruined my shield!
	5: My head hurts!
	2: My belt is broken now.
	2: Hmmm.. 
	2: %1 got what we need.
	COMPARE #<num.hostGP>, "75000"
	IF= @stealgp1x
	IF> @stealgp1x
	SET kidnapboots,	%E21
	SET kidnapbelt,	%E23
	SET kidnapgp, 	#<num.hostGP>
	DIV kidnapgp, "2"
	HOST_TAKE I#<kidnapboots>
	HOST_TAKE I#<kidnapbelt>
	HOST_TAKE G#<kidnapgp>
	N: Your %I#<kidnapboots>, %I#<kidnapbelt> and #<kidnapgold> GP got stolen!	
@stealgp1x2
	1: Men let's move out!
	MOVE 4, 120,75
	MOVE 5, 120, 99	
	MOVE 3, 120, 85
	MOVE 1, 13,96
	WAIT 2.0
	MOVE 2, 13,96
	WAIT 1.0
	MOVE 1, -20,96
	WAIT 2.0
	MOVE 2, -20,96
	END
@winfight2
	HOST_GIVE T288
	GOTO SCENE 804
@aftermatch
	HOST_GIVE T287
	MOVE 6, 69,80,1
	FACE 6,2
	H: You're safe now Deynata.
	6: Thank you for going through so much trouble.
	6: I'll see you back at the rebel castle, okay?
	MOVE 6,120,95
	END	
@stealgp1x
	HOST_TAKE G75000
	N: 75,000 GP has been stolen from you!
	GOTO @stealgp1x2
@special
	H: Hey, we're both %Cs aren't we?
	1: Yeah so?
	H: Don't you think I would have the best interest with my brothers?
	2: Probably, but we don't know who you're working for.
	H: Right now I work for nobody.
	H: At the moment the Rebels and the Empire are pretty much equal in strength, men etcetera, right?
	2: Seems like it yes... 
	H: Well try to imagine what would happen if the Rebels would loose from the Empire.
	3: They'd come after us next.
	H: Exactly, at least with the Rebels you can still keep your freedom if they win from the Empire.
	1: So we should join the Rebels?
	H: I'm not saying that, but if the Rebels loose you'd be a lot worse off then if they win.
	2: Yeah... I think %1 is right.
	H: Paying 75,000 GP is quite some money, even for the Rebels.
	H: If they pay 75,000 GP now then they can't buy weapons to fight the Empire with, 
	H: meaning the Empire would have the advantage...
	1: We don't want that to happen...
	1: Alright, bring Deynata here, you get her back for free, keep the ransom.
	HOST_GIVE T281
	GOTO @saveddeynata
@end
	END
@endto
	IF T275, @endtow
	HOST_GIVE T275
	H: Sure is quiet here...
	H: I wonder if they'd show up...
	WAIT 8.0
	MOVE 1,0,90,1
	MOVE 1,3,81	
	WAIT 1.0
	MOVE 1,-100,78,1
	WAIT 2.0
	MOVE 1,22,80,1
	MOVE 1,40,80
	WAIT 1.0
	1: It looks like you didn't came alone as you promised...
	1: You get one more chance to come here alone or the deal is off and we kill Deynata.
	WAIT 6.0
	1: This was your last and only warning...
	WAIT 3.0
	MOVE 1,73,76
	WAIT 6.0
	MOVE 1,73,69
	WAIT 1.5
	MOVE 1,-100,90,1
	END
@endtow
	HOST_GIVE T276
	WAIT 4.0	
	IF T282, @endtownow
	IF T284, @endtownow	
	MOVE 1,73,69,1
	MOVE 1,73,78
	WAIT 4.0
	FACE 1,2
	1: You have choosen your fate...
@endtownow
	HOST_GIVE T276
	WAIT 5.0
	1: MEN! Kill her!
	WAIT 6.0
	6: NOOOO!
	6: SOMEBODY SAVE ME!
	WAIT 3.0
	N: You hear a few horrible unrecgonizable sounds...
	SOUND "summon3.wav"
	WAIT 3.0
	SOUND "pain2.wav"
	SOUND "pain3.wav"
	WAIT 1.0
	SOUND "thunder1.wav"
	SOUND "pain1.wav"	
	WAIT 5.0
	1: She's dead now, I hope you're happy.
	1: Let's move out!
	MOVE 3, 120, 85
	MOVE 1, 13,96
	WAIT 2.0
	MOVE 2, 13,96
	WAIT 1.0
	MOVE 1, -20,96
	WAIT 2.0
	MOVE 2, -20,96
	END
@saveddeynata
	HOST_GIVE T287
	1: Guys come out and bring Deynata with you!
	MOVE 5, 105,85,1
	MOVE 5, 95,97
	MOVE 4, 110,75,1
	MOVE 6, 105,75,1
	MOVE 6, 69,80
	MOVE 4, 76,75
	WAIT 5.0
	H: Are you okay Deynata?
	6: Yeah I'm fine now.
	1: Men let's move out!
	MOVE 4, 120,75
	MOVE 5, 120, 99	
	MOVE 3, 120, 85
	MOVE 1, 13,96
	WAIT 2.0
	MOVE 2, 13,96
	WAIT 1.0
	MOVE 1, -20,96
	WAIT 2.0
	MOVE 2, -20,96
	WAIT 3.0
	6: Thank you %1 for saving me!
	6: I'll meet you at the rebel castle.
	MOVE 6,120,95
	END

@eventActorClick1
	IF T276,@end
	IF T282,@end
	IF T286, @menu2
	IF T283, @enoughmon
	END
@eventActorClick2
	IF T276,@end
	IF T282,@end
	IF T286, @menu2
	IF T283, @enoughmon
	END
@eventActorClick3
	IF T276,@end
	IF T282,@end
	IF T286, @menu2
	IF T283, @enoughmon
	END

; scenes to fix stuff

SCENE 805

SET slavaon, #<rating>	
#include banscripts.txt

	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T198
	GOTO LINK  23,0,0
@exit
	GOTO EXIT

SCENE 806
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T194
	GOTO LINK 11,0,0
@exit
	GOTO EXIT

; SCENE 807 is relocated to QS1220.txt now

SCENE 808
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T254
	GOTO LINK 0,6,0
@exit
	GOTO EXIT

SCENE 809
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T254
	GOTO LINK 3,0,0
@exit
	GOTO EXIT

SCENE 810
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T252
	GOTO LINK 28,0,0
@exit
	GOTO EXIT

SCENE 811
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T289
	GOTO LINK 24,0,0
@exit
	GOTO EXIT

SCENE 812
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T293
	GOTO LINK 1,0,0
@exit
	GOTO EXIT

; SCENE 813 IS TAKEN! QS900.txt for more details.
; SCENE 814 IS TAKEN! End RoT war earlier in file.
; SCENE 815 IS TAKEN! Some file earlier in this file.

SCENE 816
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T429
	GOTO LINK 18,1,0
@exit
	GOTO EXIT

SCENE 817	,SCENE,"????",
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript3.txt

	IF R20,@deadplains
	IF R20,@maku
	IF R20,@elliair
	IF R20,@greendes
	IF R20,@neither
	IF R20,@arak
	IF R20,@tajuin

	PARTY T429
	GOTO LINK 1,0,0
@deadplains
	PARTY T429
	GOTO LINK 19,0,0
@maku
	PARTY T429
	GOTO LINK 26,0,0
@elliair
	IF R50, @elliair2
	PARTY T429
	GOTO LINK 14,1,0
@elliair2
	PARTY T429
	GOTO LINK 14,2,0
@greendes
	PARTY T429
	GOTO LINK 24,0,0
@neither
	PARTY T429
	GOTO LINK 25,0,0
@arak
	PARTY T429
	GOTO LINK 2,0,0
@tajuin
	PARTY T429
	GOTO LINK 3,0,0
@exit
	GOTO EXIT

SCENE 807
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript3.txt

	PARTY T243
	PARTY -I746
	IF I746-T398, @questit
@moveit
	GOTO LINK 25,1,0
@exit
	GOTO EXIT
@questit
#include R0800.txt
	END

SCENE 818
	COMPARE #<num.timeYear>, "2023"
	IF< @exit
#include lpscript.txt

	PARTY T243
	PARTY -I746
	IF I746, @questit
@moveit
	GOTO LINK 25,0,0
@exit
	GOTO EXIT
@questit
#include R0800.txt
END




; Comment: What are you talking about? o.O
