
+CREDITS
Jedi Chronicles 1: The Call of Destiny

Story by Kelvin Tong (Based on the Star Wars series created by George Lucas)
Monster Skins by Jaycee, Cactrot and Gametweeka (Mod by Kelvin Tong)
Art by Gametweeka (I extracted them from WOS world Star Wars)
Scenes by Kelvin Tong (Download from Google)
Maps by Spike (I extracted them from WOS world Judgement)
Music by Kelvin Tong (Downloaded from MidiDB)
Edited by Nigel Tan 

Programming by Synthetic Reality
Contact us on the web at:
http://www.synthetic-reality.com
-CREDITS



+STORY
:S 200
:C 255,255,0
|Jedi Chronicles 1: The Call of Destiny
:S 75
:C 255,255,255
|~~~
|Designed by Kelvin Corporation
|~~~
:S 100
:C 204,153,0
7003 BBY: In the early days of the Jedi, a small sect of Knights began practicing extended uses of the Force. 
By relying more and more upon the Force, these Knights learned an amazing new truth. Force of sufficient intensity could bend life itself. 
With their new powers, the Knights experimented upon other lifeforms to create new species and predators as extensions of their will. 
It was postulated that their power could even be used to end death and revive dead worlds. 
Other Jedi looked upon these new powers with suspicion; surely such power would only lead to abuse. 
This is the beginning of the Hundred-Year Darkness.
-STORY


+TERRAINS
;	arg0	arg1				arg2	arg3
;
	0,		"No Hindrance",		0,	0
	1,		"Lava",			10,	0
	2,		"Electricity",		10,	0
	3,		"",			0,	0
	4,		"Deep Water",		0,	0
	5,		"Clouds",		0,	0
	6,		"",			0,	0
	7,		"",			0,	0
	8,		"Healing",		-10,	0
	9,		"Impassable",		0,	0
-TERRAINS




+EQUIP
;	arg0	arg1
;	ID		Name

  	0,		"Headgear"
 	1,		"Clothing"
 	10,		"Shoes"
 	11,		"Buckler"
 	12,		"Bracelet"
 	13,		"Talisman"

-EQUIP




+THEMES
;	arg0	arg1		arg2			arg3 - N
;	ID		name		loopSound		seconds=sound
;
;	note: reserve first 20 for the hard-coded themes (also note that 0 means 'silence')
;
	20,		cavedrip,	campfire1,		10=drip1,10=bird1,10=splash1
;
-THEMES

+MAPS

;
; The actual map definitions are in this file, which is created by the New World Wizard:
;
#include maps.txt

-MAPS

+TOKENS
         1,"You managed to recite the Jedi Code and received a lightsaber."
         2,"You agreed to kill the kinrath."
         3,"Mrs.Sandral begged you to rid the kinrath from her garage."
         4,"You have slain the kinrath."
         5,"You refused to waste your precious time."
         6,"Mrs Sandral gave you some credits."
         7,"You heard a Jedi had fallen to the Dark Side."
         8,"You have converted the Jedi back to the Light Side."
         9,"You have slaughtered the Dark Jedi."
        10,"You have completed your training at the Telosian Jedi Academy."
        11,"You have been assaulted by Zeus the Mortal."
	12,"Master Adar-Sheni Baas allowed you to leave Dantooine."
	13,"The Republic Admiral sent you to retrieve lost parts of a droid."
	14,"You have found Part #1 of the droid."
        15,"You have found Part #2 of the droid."
        16,"You have found Part #3 of the droid."
        17,"You have found Part #4 of the droid."
        18,"You have found Part #5 of the droid."
        19,"You accepted the Admiral's reward."
        20,"You demanded a better reward."
        21,"You were corrupted by the teachings of the Sith."
        22,"You resented the teachings of the Sith."
        23,"You murdered Master Adar-Sheni."
        24,"You dispatched Darth Nippon."
        25,"Darth Nippon rewarded you."
        26,"Master Adar-Sheni rewarded you."
        27,"Selin Mek ended your miserable life."
        28,"Dessicus wanted you to assassin Senni Vek."
        29,"Selin Mek perished under your lightsaber."
        30,"You faked Selin Mek's death."
        31,"You collected your bounty."
	32,"Dessicus revealed that he exploited you."
        33,"You forgave him mercifully."
        34,"You murder him with contempt."
        35,"The Jedi Council on Coruscant ordered you to hunt down Ajunta Pall."
        36,"You obliterated Ajunta Pall once and for all."
	37,"You declared herself the Dark Lord of the Sith."
        38,"You have restored peace in the Galaxy... for now."
        39,"The Dark Jedi were banished after the Battle of Corbos."
        40,"You bested Ajunta Pall in a duel but he escaped!"
        41,"You bested Ajunta Pall in a duel but he escaped again!"
        42,"You discovered the treasures in an ancient Rakatan ruin."
	43,"The Mandalore instructed you to fix his droid.. or else!"
	44,"You agreed to help the Mandalore."
	45,"You have sucessfully mend the Mandalore's droid."
	46,"You failed to mend the Mandalore's droid and it self-exploded."
	47,"You declined the Mandalore's 'kind' offer."
	48,"The Mandalore blew your head off with a blaster rifle."
	49,"You decollated the Mandalore with your lightsaber."
	50,"The Mandalore rewarded you with credits."
	51,"The PK Master will reward you if you PK other players 99 times." 
	52,"You have been given the title PK Master!"
	53,"The Champian Hunter will reward you if you slay 99 Leviethans."
	54,"You have been given the title Champian Hunter!"
	55,"A Sith Trooper told you about a haunted house on Alderaan."
        56,"You entered the haunted house but found nothing."
	57."You ended the Sith Trooper's life."
	58,"You spared the Sith Trooper's life."
	59,"The ghost pleaded you to avenge him."
	60,"You pointed out the Jedi do not seek revenge."
	61,"You agreed to seek a bloody revenge for the ghost."
	62,"The ghost thanked you with his life...not that he has one."
	63,"You have murdered the murderer, Nigel the terrorist."
	64,"Nigel the terrorist added you to this victim list."
	65,"You have used the Rakatan Time Machine."
			
-TOKENS

+ELEMENTS
;	arg0	arg1				
;
	0,		"Light Side"		
	1,		"DoNotClick"			
	2,		"Universal"			
	3,		"DoNotClick"			
	4,		"Dark Side"		
	5,		"DoNotClick"		
	6,		"Feat"		
	7,		"DoNotClick"	

-ELEMENTS

+HANDS
;  
; arg0		arg1		arg2		arg3
;  ID		Name		Range		SoundFX
;
	0,	"Jedi Lightsabers",	30,			"lightsaber.WAV"
	1,	"Sith Lightsabers",	30,			"lightsaber1.WAV"
	2,	"Blaster Rifles",     	100,		        "blaster.WAV"
	3,	"Blasters",     	70,			"blaster.WAV"
	4,	"DoNotClick",		20,			"fist.wav"
	5,	"DoNotClick",		20,			"dart.wav"
	6,	"DoNotClick",		20,			"chant6.wav"
	7,	"DoNotClick",		20,			"crow1.wav"
-HANDS


+ITEMS

; The actual item definitions, and documentation, are in this file:
#include items.txt

-ITEMS


+TROPHIES
; The actual trophy definitions, and documentation, are in this file:
#include trophies.txt
-TROPHIES


+SPELLS

; actual spell definitions, and documentation, are in this file:
#include spells.txt

-SPELLS


+MONSTERS

; actual monster definitions, and documentation, are in this file:
#include monsters.txt

-MONSTERS


+GROUPS

; actual groups, and documentation, are in this file
#include groups.txt

-GROUPS


+LEVELS

; actual character classes, levels, and documentation are in this file
#include levels.txt

-LEVELS

;--------------
+SCENES
SCENE 0		courtyard, WELL, "Well of Souls", 2, 7

; Then we start a sound 'theme' (1=rippling stream)
	THEME	1
	ACTOR	1,	"Master Khan", lightjedi02, 32, 0, 60
	SEL		1
	MOVE	1,	50, 60
	WAIT	1.0
        ' Welcome, Padawan.
        MOVE	1,	30, 70
	' Master Adar-Sheni is waiting for you. 
	MOVE	1,	40, 75
	' I suggest you not to keep him waiting.
	' Press the NEW button to create a new soul, and select its skin and abilities.
	MOVE	1,	25, 70
	' Press the RESTORE button to select an old soul, and resume its struggle.
	MOVE	1,	35, 65
	' Press the INCARNATE button to enter the physical world again.
	MOVE	1,	30, 70
	' Press the MAP button to see what other souls roam the world.
	MOVE	1,	40, 77
	' Press the HAUNT button to spy invisibly over another incarnated soul.
	MOVE	1,	20, 70
	' May the Force be with you!
        WAIT 10
        SOUND start.wav
        END
END

; Tada, a scene!  Please note that some player actions are blocked until the scene finishes.  For example, you can't
; cast a spell, use a weapon, or toss an item until the scene finishes.

;--------------
; SCENE 1 must be primary CAMP scene
;
SCENE 1
	
	WAIT 3.0
	IF DEAD, 
        GIVE L1
        
	COMPARE #<num.isPKAttack>, 1
	IF= @pk
	COMPARE #<num.isPKAttack>, 2
	IF= @pk	
        COMPARE #<num.mapNum>, 5
	IF=	@inCastle
	END

@pk
	FLAGS	32768
	LOCK 1
	N: PK Attack! 
	N: Locked Camp!
	N: No Healing, Stunning, or Tickets!
	END

@eventPkAttackDone

	LOCK 0
	FLAGS 0
	END

@inCastle
	; we get a little lock icon while in macguyver castle camps.
	SET sceneLock, 0
	ACTOR	9, "Lock", danNoFloat, 6, 95, 10
END

@eventActorClick9
	COMPARE #<sceneLock>, 0
	IF= @lockScene
	LOCK 0
	SET sceneLock, 0
	SEL 9
	POSE	6
    	WAIT 3.0
	END
@lockScene
	LOCK 1
	SET sceneLock, 1
	SEL 9
	POSE	5 
    	WAIT 3.0
	END
END

;--------------
; SCENE 2 must be primary FIGHT scene (for automatic fights)
;
SCENE 2
	THEME
	MUSIC  fight.mid
        
        FIGHT

END

;--------------
; SCENE 3 (this is the evergreen starting scene on the main map, where you can return to be healed)
;
SCENE 3		council
	THEME	0
	ACTOR	1,	"Master Adar-Sheni", jediknight,  4, 25, 90
	POSE	32, 32, 32
	SEL		1
	MOVE	1,	15, 80

	IF T8, @leave
        IF T9, @leave
        IF T1, @continue
        1: Padawan %1, you are late for your training!
	1: We shall begin at once.
	1: Let's start by reciting the Jedi Code.
        1: There is no emotion...
        H: There is peace.
        1: There is no ignorance...
        H: There is knowledge.
        1: There is no passion...
        H: There is serenity.
        1: There is no death...
        H: There is the Force!
        1: Well done, young Padawan!
	1: The time has come for me to present you your very own lightsaber.
	H: Yes!
	GIVE I300
        1: May the Force be with you!
        Give T1 
	END

@continue
        IF DEAD, @dead
        GIVE	H5000
	GIVE	M5000
        END

@dead
        GIVE    L1
        GIVE	H5000
	GIVE	M5000
        END

@leave
      IF T21, @fight
      IF T22, @peace
      1: You have done well, Padawan %1.
      1: The time has come for you to explore the Galaxy yourself.
      1: Beware the temptation of the Dark Side.
      1: May the Force be with you!
      GIVE      T12
      GIVE      L1
      GIVE	H5000
      GIVE	M5000
      END

@fight      
      1: I can sense the Dark Side within you.
      1: What have you done, %1?
      H: The penalty of failure is death!
      H: Time to die, old fool!
      1: Wait! Turn back to the Light Side before it is too late.
      H: Quit stalling, let's fight!
      MOVE	1,	-20, 70
      FIGHT2 243
      IF WIN, @power
      1: The Dark Side is never stronger than the Light.
      H: Shut up, old fool!
      H: I shall seek bloody revenge!
      GOTO EXIT
      END

@power
      IF T23, @none
      GIVE T23
      H: I have won!
      H: Peace is a lie,
      H: There is only passion.
      H: Through passion I gain strength,
      H: Through strength I gain power,
      H: Through power I gain victory,
      H: Through victory my chains are broken.
      H: The Force shall free me!  
      END

@none
      N: The Dantooine Jedi Enclave appeared to be deserted...
      END

@peace
      IF T24, @hasT24
      1: %1, you have not been corrupted by power.
      1: You are truly a servant of the Light Side.
      1: Darth Trayus will be a threat to the Jedi Order.
      1: You must dispatch her at once!
      1: May the Force be with you.
      GIVE      L1
      GIVE	H5000
      GIVE	M5000
      END

@hasT24
      IF T26, @hasT26
      1: You have killed Darth Nippon.
      1: Her name was Ellas. 
      1: She was my mentor before she fell to the Dark Side.
      1: This healing Force Power might come handy in your quests.
      GIVE S224
      GIVE T26
      END

@hasT26
      1: May the Force be with you!
      GIVE      L1
      GIVE	H5000
      GIVE	M5000 
END



;--------------
; SCENE 4 Rakatan Cave
;
SCENE 4		caves
      IF T42, @hasT42
      N: This appeared to be an ancient ruin
      N: built by the Rakatans during the Infinite Empire.
      N: It required a password to enter the inner chamber.
      ASK 99999999999999999
      IF Qbuilders @password
      END

@password
      GIVE T42
      GIVE G1000000
      GOTO EXIT
      END

@hasT42
      N: All treasures have been excavated.
      END	
END

;---------
; general armor shop

SCENE 5 weapons
	ACTOR	1,	"Czerka Protocol Officer", czerka, 4, 25, 90
	SEL		1
	OFFER2	0,99,11,0,99,10,0,99,21
	' Finest armour in the Galaxy!
END

;---------
; general weapons shop

SCENE 6 weapons
	ACTOR	1,	"Czerka Protocol Officer", czerka, 4, 25, 90
	SEL		1
	OFFER2	0,99,12,0,99,14,0,99,15
	' Finest weapons in the Galaxy!
END

;---------
; general baubles shop

SCENE 7 jewelery
	ACTOR	1,	"Czerka Protocol Officer", czerka, 4, 25, 90
	SEL		1
	OFFER2	0,99,22,0,99,23
	' Finest jeweleries in the Galaxy!
END


;---------
; item/potion shop
;
SCENE 8 shops
	ACTOR	1,	"Czerka Protocol Officer", czerka, 4, 25, 90
	SEL		1
	OFFER2	0,99,0,0,99,105 
	' Note our new items for sale.
	END

;---------
; shoes shop
;
SCENE 9 shops
	ACTOR	1,	"Czerka Protocol Officer", czerka, 4, 25, 90
	SEL		1
	OFFER2	0,99,20
	' Finest footwear in the Galaxy.
	END

;---------
SCENE 10 estate, SCENE, "Sandral Estate"
	IF T6, @hasT6
	IF T4, @hasT4
	
	IF T2, @hasT2
	IF T5, @hasT5
	ACTOR	1,	"Mrs. Sandral",	sandral, 4, 25, 80
	GIVE	T3
	1: Can you please get rid of that kinrath in my garage?
	WAIT 2
	MENU "Of course, Mrs. Sandral. Consider it done!=@yes","Can't be bothered, I have much better things to do!=@no"
	END

@yes
	GIVE T2
        1: Thank you so much!
	END

@no
        GIVE    T5
        1: What!? You %3!
        1: You are not welcome here!
        WAIT 1
        GOTO EXIT
        END

@hasT2
        1: Hurry up, please!
	END

@hasT5
        1: Go away, %3!
        1: You are EVIL!
        WAIT 1
        GOTO EXIT 
        END

@hasT4
	ACTOR	2,	"Mrs. Sandral",	sandral, 4, 25, 80
	2: Thanks for killing the kinrath!
        2: You are so kind!
        GIVE  G5000
        GIVE  T6
        END

@hasT6
        ACTOR	3,	"Mrs. Sandral",	sandral, 4, 25, 80
	3:Thank you for killing the kinrath for me!
        END
	
END

;---------
SCENE 11 garage, SCENE, "Garage"
	IF	T4, @empty
        FIGHT2  9
        IF WIN, @defeated
	H: No! I died!
	END

@defeated
        GIVE T4
        H: Yes! I won!
        H: Let's go and tell Mrs. Sandral!
        END

@empty
        N:The garage appeared to be empty!
        END 

END


;---------
SCENE 12 hills, SCENE, "Ancient Grove"
	ACTOR	1,	"Fallen Jedi",		darkjedi14,	4,	25,	80
	IF T7, @hasT7
        1: Go away!
        1: One.
        1: Two.
        H: I will be going now!
        1: Smart!
        WAIT 1
        GOTO EXIT
        END 
        
@hasT7	
        IF T8, @hasT8
        IF T9, @hasT9
        1: Who are you, intruder?
        1: Are you here to kill me?
	ASK 30
        IF YES, @disgrace
        GIVE T8
        H: Turn back to the Light Side.
        H: The Light is stronger the Dark.
        1: Master Adar-Sheni will not forgive me.
        H: Of course he will.
        1: Really?
        H: Absolutely!
        H: There is no emotion.
        1: There is peace.
        H: There is no ignorance.
        1: Yes, I remember now.
        1: I will return to the Jedi Order!
        END

@disgrace
        H: I am here to kill you!
        1: Hahaha! The Dark Side strengthens me!
        1: Bring it on!
        MOVE	1,  -20, 70, 1
        FIGHT2 51
        IF WIN, @yeah
        1: Hahaha!
        1: The penalty of failure is death!
        END

@yeah
        GIVE T9
        1: In the end, as the darkness takes me, I am nothing!
        H: You are a fool to challenge me, Jedi!
        END        
         
@hasT9
        MOVE	1,	-20, 70, 1
        N: The grove appeared to be empty.
        END

@hasT8
        1: Thank you!
        1: Master has sent me to train here!
        END 
END


;---------
SCENE 13 hotel, SCENE, "Dantooine Apartments"
	ACTOR	1,	"Janitor",	janitor,	4,	25,	80
	POSE	32,32,32
	SEL		1

	IF T7, @done
        GIVE T7
        1: There is a dark jedi in the glade.
        1: Now if you excuse me, I will resume my cleaning.
        1: The apartment doesn't clean itself you know.
	END

@done
        1: Can you stop bothering me?
        END
END


;---------
SCENE 14 caves,SCENE,"Zeus the Mortal's Den"
        IF T11, @assaulted
        N: You have been professionally acted on by Zeus the Mortal!
        SOUND satisfaction.wav
        TAKE H10000
        GIVE T11
        H: Ahhhhhhhhhhhhhhhh!
        H: Noooooooooooooooo!
        H: You are a %3, Zeus the Mortal!
        END

@assaulted
        N: You are foolish to come back.
        N: Luckily Zeus the Mortal doesn't seem to be home.
        N: Suddenly, you are attacked from behind.
        N: You have been professionally acted on by Zeus the Mortal!
        SOUND satisfaction.wav
        TAKE H10000
        H: Ahhhhhhhhhhhhhhhh!
        H: Noooooooooooooooo!
        H: You are a %3, Zeus the Mortal!
        END
END
;---------
SCENE 15 hall, SCENE,"Slave Shop"
	ACTOR	1,	"Slaver",	mandalorian,	4,	40,	90
	IF T21, @allowed
        1: You are a %C!
	1: What are you doing here?
	1: We do not serve you hypocrites!
        END

@allowed
        H: The Sith Master told me you sell slaves here?
        1: Yes, of course!
        OFFER 1000,1001,1002,1003
        1: We have the best slaves in the Galaxy.
        END 
;---------
SCENE 16 embassy,SCENE,"Republic Embassy"
	ACTOR	1,	"Admiral",	darkjedi10,	4,	40,	90
	IF T14+T15+T16+T17+T18, @everythingdone
	IF T13, @hasT13
        1: Jedi Master! You are here!
        GIVE T13
        H: Actually, I am only a %C.
        1: Oh! Well, we have a problem.
        H: What is it, Admiral?
        1: Five parts of our prototype utility droid have been stolen.
        H: By the Sith?
        1: Did you figure that out all by yourself?
        1: Or did your daddy gave you a clue?
        H: Hey! Don't be insulting!
        1: Oops, sorry!
        H: So how can I help?
        1: The stolen parts are hidden and guarded by Dark Jedis.
        1: If you can retrieve all the stolen parts, I will be extemely grateful.
        H: I will look in this matter.
        1: Thank you, Jedi Master!
        H: *sigh*
        END

@hasT13
        1: What are you doing here, Jedi Master?
        1: Shouldn't you be looking for the lost parts of our droid?
        H: I will look in this matter when it suits me! Understand?
        1: Yes, Jedi Master! But please be hurry!
        END

@everythingdone
        IF T19, @hasT19
        IF T20, @hasT20
        1: You are back, Jedi Master!
        1: Did you find all the lost parts of our droid?
        H: Of course I did!
        N: The Republic Admiral took the parts from you.
        1: Yes, thank you so much!
        1: Here, I will reward you with 5000 credits.
        1: It is enough, isn't it?
        ASK 30
        IF -YES, @greedy
        GIVE T19
        H: Yeah, that's more than enough!
        1: No, of course not. Silly Question. 
        1: Here, I will give you 10000 credits!
        GIVE G10000
        H: Nah, that's not necessary.
        1: Yes it is.
        1: I have made up my mind!
        END

@greedy
        H: I want a better reward for all my hard work.
        1: You should only help because you want to.
        1: Not seeking a reward.
        1: Surely, a Jedi like you will know this.
        H: Of course, I am only kidding.
        H: 5000 credits is fine.
        GIVE G5000
        1: Thank you for helping, Jedi %1.
        1: I have other business to attend to.
        MOVE	1,	-20, 70
        END 
        
@hasT19
       1: Jedi Master, you have come at an ill time.
       1: I am very busy right now.
       1: Please come back later!
       END

@hasT20
       1: Are you coming to demand more money, Jedi Master?
       1: I am quite poor right now.
       1: Please come back when I have some money.
       END
;---------
SCENE 17 council,SCENE,"Jedi High Council"
       ACTOR	1,	"Jedi Grand Master", lightjedi05, 4, 25, 80
       ACTOR	2,	"Jedi Master",      lightjedi04, 4, 40, 90
       IF T35, @hasT35
       GIVE T35
       1: %1, Ajunta Pall and his army of Dark Jedi need to be stopped.
       2: Exactly, I think their hidden base is on Corbos.
       1: You must train at the Telosian Jedi Academy at once.
       2: And aid our Jedi on Corbos once you finish your training.
       H: Do I have to accept this quest?
       1: Yes, you %3! 
       2: But beware of the Dark Side lure of Corbos.
       H: Yes, Master.
       1: May the Force be with you.
       2: Go now, %1!
       GIVE     L1
       GIVE	H5000
       GIVE	M5000
       GOTO EXIT
       END

@hasT35
       IF T36, @hasT36
       IF T37, @hasT37
       1: What are you doing here, %1?
       2: Exactly! You should be looking for Ajunta Pall.
       H: The penalty of failure is death!
       N: The Masters eyed you suspiciously.
       H: No, I mean I will do it right now.
       1: May the Force be with you.
       2: Go now, %1!
       GIVE     L1
       GIVE	H5000
       GIVE	M5000
       GOTO EXIT
       END

@hasT36
       IF T38, @hasT38
       GIVE T38
       H: Ajunta Pall and his gang is vanquished, Jedi Masters.
       1: Well done, %1.
       2: Indeed, quite splendid!
       1: And, you aren't corrupted by the Dark Side.
       2: Now that the Sith have been banished, we will have peace in the Galaxy once again.
       1: Yes, but I can sense that they will be back.
       H: Can I leave now?
       1: No, I more thing, %1.
       2: For your service to the Jedi Order, Grand Master will take you as his apprentice.
       1: And when I retire, you will be the next Grand Master.
       H: *gasp* Are you serious?
       2: Of course he is! You %3.
       H: Thank you, Master! I am honoured!
       1: May the Force be with you.
       GIVE     L1
       GIVE	H5000
       GIVE	M5000
       END

@hasT37
       1: You have fallen to the Dark Side!
       2: You are not welcome here anymore, Dark Lord!
       1: Check out the sequel for more adventure.
       2: The URL is www.freewebs.com/jedichronicles/
       GOTO EXIT
       END
       
@hasT38
       1: Your quest has come to an end.
       2: Check out the sequel for more adventure.
       1: The URL is www.freewebs.com/jedichronicles/
       2: May the Force be with you!
       1: Hey! That's my line!
       2: Oops, sorry.
       GIVE     L1
       GIVE	H5000
       GIVE	M5000
       END
END    
       
;---------
SCENE 18 telos,SCENE,"Telosian Jedi Academy"
       ACTOR	1,	"Master Atris", lightjedi01, 4, 25, 80
       IF T10, @hasT10
       1: I am Master Atris.
       1: I will train you in the arts of combat.
       1: You will fight against our Jedi.
       1: Your weapons will be modified so that it can't kill.
       FIGHT2 69
       IF DEAD, @lost
       FIGHT2 169
       IF DEAD, @lost
       FIGHT2 171
       IF DEAD, @lost
       FIGHT2 173
       IF DEAD, @lost
       FIGHT2 175
       IF DEAD, @lost
       FIGHT2 177
       IF DEAD, @lost
       FIGHT2 69, 69, 69, 169 
       IF DEAD, @lost
       FIGHT2 171, 171, 173
       IF DEAD, @lost
       FIGHT2 69, 173, 173, 175
       IF DEAD, @lost
       FIGHT2 175, 177, 177, 177
       IF DEAD, @lost
       1: You have pass your tests.
       1: Please aid our army on Corbos.
	  1: There is nothing more I can teach you.
	  1: Except this mighty Force Power.
       GIVE S79
       GIVE T10 
       END

@lost
      N: You have been knocked out.
      GIVE      L1
      GIVE	H5000
      GIVE	M5000
      1: No bad, just need a bit more training.
      1: Come back again when you are ready.
      WAIT 1
      GOTO EXIT
      END

@hasT10
      1: Young Padawan, there is nothing more I can teach you.
	 1: Go help the Jedi on Corbos. 
      GIVE      L1
      GIVE	H5000
      GIVE	M5000
      END
END
;---------
      
SCENE 19 arena, SCENE, "Underground Catacomb"
	ACTOR	1,     "Darth Nippon", darkjedi12, 4, -25, 80
        IF T21, @hasT21
        IF T22, @hasT22
        N: You felt the Force was strong in these tunnels.
        N: Suddenly, you became dizzy and fell asleep.
        N: Slowly, you drifted into an uneasy dream.
        MOVE 1, 25, 80, 1
        1: Welcome to the opening ceremony of Trayus Academy!
        1: I am Darth Nippon, Dark Lady of the Sith!
        1: This is the philosophy in my Academy!
        1: Fear leads to anger. 
 	1: Anger leads to hate. 
 	1: Hatred leads to power. 
 	1: Power leads to victory. 
 	1: Let your anger flow through you. 
 	1: Your hate will make you strong. 
 	1: True power is only achieved through testing the limits of one's anger passing through unscathed.  
 	1: Rage channeled through anger is unstoppable. 
 	1: The dark side of Force offers unimaginable power. 
 	1: The dark side is stronger than the light. 
 	1: The weak deserve their fate.
        1: The penalty of failure is death!
        WAIT 5
        1: Hey! You %3, I am talking to you!
        H: Huh? I thought this is a dream.
        1: This is no dream, you %3! 
        1: This is a vision... produced by the Force!
        1: It is your destiny to become a Sith, the Force is guiding you.
        1: Do you %3 believe in the teachings of the Sith?
        ASK 30
        IF -YES, @battle
        GIVE T21
        H: Yes, I wish to become a Sith... after all this is destiny!
        1: Ha-ha! Excellent, you %3!
        1: There is a slave shop in the city that you might want to visit!
        SET num.hostClass, 4
        1: Go kill that old fool, Adar-Sheni to prove your loyalty!
        H: But I thought the Sith does not value loyalty.
        1: Just KILL him, you %3!
        H: With pleasure, Madam!
        END 
        
@battle
        GIVE T22
        1: You are a fool, %1 to refuse me! 
        1: You could have so much if become a Sith!
        1: I am the darkness in which all life dies, you %3!
        MOVE 1,-25, 80, 1
        FIGHT2 49
        IF WIN, @excellent
        MOVE 1, 25, 80, 1
        1: The penalty of failure is death!
        1: You %3, I am invincible! Ha-ha!
        END
       
@excellent
        IF T24, @hasT24
        MOVE 1, 25, 80, 1
        MOVE 1, 25, -80
        1: In the end, as the darkness takes me, I am nothing!
        GIVE T24
        END

@hasT21
        IF T23, @hasT23
        MOVE 1, 25, 80, 1
        1: You %3, Adar-Sheni is not dead!
        1: What are you doing here?
        END

@hasT22
        MOVE 1, -25, 80, 1
        FIGHT2 49
        IF WIN, @excellent
        MOVE 1, 25, 80, 1
        1: The penalty of failure is death!
        1: You %3, I am invincible! Ha-ha!
        END

@hasT23
        IF T25, @hasT25
        1: Ha-ha! Adar-Sheni has been annihilated!
        1: You have done well, %1.
        1: Take this deadly Force Power!
        GIVE S10
        GIVE T25
        END

@hasT24
        MOVE 1, -25, 80, 1
        H: I think I kind of remember this place.
        H: In a very weird dream.
        H: These catacombs are spooky!
        END

@hasT25
        MOVE 1, -25, 80, 1  
        N: This place appeared to be deserted.
        GIVE L1
        GIVE H5000
        GIVE M5000
        H: The Dark Side of Force is strong in these catacombs!
        H: Hey! It is so strong, it actually replenish my health.     
        END     
END

;---------
SCENE 20 beach, SCENE, "Onderon's Beach"
        IF T13, @hasT13
	WAIT 3
	END

@hasT13
	ACTOR	1,     "Dark Jedi", darkjedi16, 4, 25, 80
        IF T14, @hasT14
        1: Turn back now, mortal!
	SOUND "turnback.wav"
        H: Give me the Republic droid parts.
        1: Foolish decision, you %3! 
        1: The parts are guarded by the brotherhood.
        1: And I only possess one of these.
        1: You cannot possibly find all of them.
        MOVE 1, -25, 80, 1
        FIGHT2 151
        IF WIN, @hasWon
        1: Ha-ha!
        1: I couldn't believe the Admiral send such a %3 like you!
        END

@hasWon
        1: No! I have failed the brotherhood!
        H: The Light Side have triumph!
        MOVE 1, -25, 80, 1
        N: You found Part #1 of the droid!
        GIVE T14
        END

@hasT14
        MOVE 1, -25, 80, 1
        H: Um... The breeze is very soothing.
        END

;---------
SCENE 21 farm, SCENE, "Alderaan's Ranch"
        IF T13, @hasT13
	WAIT 3
	END

@hasT13
	ACTOR	1,     "Dark Jedi", darkjedi17, 1, 25, 80
        IF T15, @hasT15
        H: Hand it over!
        1: I don't know what you are talking about!
        H: You are a member of the Brotherhood of Darkness.
        H: And you guard one of the Republic droid parts.
        MOVE 1, -25, 80, 1
        FIGHT2 153
        IF WIN, @victory
        1: Fool! Do you think you can possibly defeat the brotherhood.
        1: Ha-ah!
        END

@victory
        MOVE 1, -25, 80, 1
        1: The Force fights with me!
        N: You found Part #2 of the droid!
        GIVE T15
        END

@hasT15
        MOVE 1, -25, 80, 1
	H: Have I been here before?
        END
END

;---------
SCENE 22 huts, SCENE, "Malachor Shack"
        IF T13, @hasT13
	WAIT 3
	END

@hasT13
	ACTOR	1,     "Dark Jedi", darkjedi20, 1, 25, 80
        IF T16, @hasT16
        H: Give me the third Republic droid part!
        1: So, you are the meddling Jedi. Ha-ha!
        1: If you give up now, I will grant you a quick death!
	SOUND "giveup.wav"
        H: Never! 
        MOVE 1, -25, 80, 1
        FIGHT2 159
        IF WIN, @winning
        1: You are one sad loser, you %3!
        1: Now get out of my sight!
        WAIT 1
        GOTO EXIT
        END

@winning
        MOVE 1, -25, 80, 1
        H: Yes! The Dark Side is never stronger than the Light!
        N: You found Part #3 of the droid!
        GIVE T16
        END

@hasT16
        MOVE 1, -25, 80, 1
	H: I must say, this shack need some renovation.
        END    

;---------
SCENE 23 wall, SCENE, "Brotherhood of Darkness Headquarters"
        IF T13, @hasT13
	WAIT 3
	END

@hasT13
	ACTOR	1,     "Dark Jedi", darkjedi29, 1, 25, 80
        IF T18, @hasT18
        H: Fallen Jedi, I seek the Republic droid part!
        1: Those fool had failed the brotherhood! Shame on them!
        H: You fate shall be the same!
        1: Ha-ha! You were very brave when you are killing unarmed farmers!
	SOUND "brave.wav"
        1: The penalty of failure is death, you %3! The weak desearve their fate!
        1: I never lost any fight in my entire life!
        1: This isn't going to be much difference!
        H: Let's prove it in the real world then.
        1: This shouldn't take more than two minutes...        
        MOVE 1, -25, 80, 1
        FIGHT2 209
        IF WIN, @finally
        H: I was so close!
        1: Your luck have run thin when versing a master like me!
        1: Come back, when you aren't such a %3!
        END

@finally
        H: Yes, I finally did it!
        MOVE 1, 25, 80, 1
        1: No! I have lost to an unworthy soul!
        1: I have failed the Brotherhood!
        N: You found Part #5 of the droid! 
        H: Let's bring these parts back to Admiral!
        GIVE T18
        END

@hasT18
        MOVE 1, -25, 80, 1
	H: I once had a memorial fight here.
        END

;---------
SCENE 24 shop, SCENE, "Onderon Cantina"
        ACTOR	1,     "Dessicus", dessicus, 1, 25, 80
        IF T28, @hasT28
        1: Hey! You are one of those pacifistic, tree-hugging Jedi.
        H: There is no emotion, there is peace.
        1: See what I mean!
        H: Grrr... Don't push your luck!
        1: Fine! Let's get to business. 
        H: I have no business with you!
        1: Oh yes, you have!
        1: There is a Dark Jedi called Selin Mek.
        H: Dark Jedi!?
        1: Exactly! He kept on attacking my servants.
        1: If you get rid of him, your reward shall be great!
        GIVE T28
        H: It is my duty to protect people from the threats of the Dark.
        1: Thank you, Jedi Master.
        H: Err... I am not quite a Master yet.
        H: I shall come back when this matter is settled.
        END

@hasT28
        IF T27, @hasT27
        IF T29, @hasT29
        IF T30, @hasT30
        1: Jedi Master, you are back! 
        H: Yeah, it is pretty hot outside. Bloody 38 degrees Celcius!
        H: So I get indoor where the air-conditioning is on!
        1: You %3!
        N: The air-conditioning is turned off.
        H: What the heck! 
        END

@hasT27
        1: You look you have been bashed up!
        H: Yeah...
        1: An old fool manage to defeat a Jedi?
        H: I underestimated him and fell for his trap.
        1: You are useless, man!
        GOTO EXIT
        END
@hasT29
        IF T31, @hasT31
        1: Jedi Master, is Selin Mek dead?
        H: Ha-ha! That %3 has no chance against me!
        H: I killed him just too easily!
        1: Thank goodness!
        H: Well, where is my great reward?
        1: Reward? Ah yes... Nothing better than credits eh?
        GIVE G5000
        GIVE T31
        H: 5000 credits? Oh well, better than nothing!
        1: I almost forgot! I have an appointment with the dentist.
        1: Got to go! Bye!
        MOVE 1, -25, 80
        END

@hasT30
        IF T31, @hasT31
        H: Selin Mek is gone!
        1: He is dead? Excellent!
        1: Now his property is mine! 
        1: I mean he will not bother my servants any more. 
        1: Yeah, that's it.
        H: I see that my job here is done!
        1: Thank you for your service Jedi %1.
        1: You shall have a reward for your hard work.
        GIVE G5000
        GIVE T31
        H: Thank you for your generosity, Dessicus.
        1: Ha-ah! That was nothing compare to what I will get from Selin Mek's death!
        1: I almost forgot! I have an appointment with the dentist.
        1: Got to go! Bye!
        MOVE 1, -25, 80
        END

@hasT31
        IF T32, @hasT32
        GIVE T32
        1: Yes! Yes! Yes! I am now the owner of Selin Mek's grand mansion.
        H: What are you doing?
        1: You are back, Jedi Master?       
        H: You used me to get rid of Selin Mek, didn't you?
        H: So that you can get his mansion!
        1: I am sorry, %1!
        1: Are you going to kill me?
        ASK 30
        IF -YES, @rejoice
        H: Nobody exploits me!
        H: You will pay for this with your own life!
        1: Nooooooooo!
        MOVE 1, -25, 80
        FIGHT2 67
        IF WIN, @revenge
        MOVE 1, 25, 80
        1: I won! Yes!
        1: I can't believe how crap a Jedi actually is!
        1: Even I am stronger than you!
        END

@revenge
        IF T34, @hasT34
        GIVE T34
        MOVE 1, 25, 80, 1
        H: Fool! Nobody will ever use me again!
        1: You didn't even give me a chance to repent!
        H: Too late! The penalty of failure is death!
        END

@rejoice
        IF T33, @hasT33
        GIVE T33
        MOVE 1, 25, 80, 1
        H: I shall spare your life!
        H: But I think you should give yourself up to the police.
        1: Thank you for sparing my life.
        1: I shall surrender myself at once!
        MOVE 1, -25, 80
        END

@hasT32
        MOVE 1, -25, 80
        FIGHT2 53 
        IF WIN, @revenge
        MOVE 1, 25, 80
        1: I won! Yes!
        1: I can't believe how crap a Jedi actually is!
        1: Even I am stronger than you!
        END

@hasT33
        MOVE 1, -25, 80, 1
        H: Justice have been done!
        END

@hasT34
        MOVE 1, -25, 80, 1
        H: I have avenge myself!
        END

;---------
SCENE 25 hotel, SCENE, "Mek's Grand Mansion"
        ACTOR	1,     "Selin Mek", selin, 4, 25, 80
        IF T28, @hasT28
        1: You are not welcome here! 
        1: I am trying to concentrate here!
        1: Seriously!
        END

@hasT28
        IF T29, @hasT29
        IF T30, @hasT30
        H: Why did you kill Dessicus' servants, fallen Jedi?
        1: What? Who said?
        H: Dessicus herself!
        1: Ha! Firstly, I am not a Jedi. Secondly, I couldn't fight!
        1: I was kicked out of the Republic army because I am crap!
        H: So why would Dessicus said so?
	1: She was my daughter and she was angry that I didn't give her my mansion.
        1: If I am dead, she could inherit my mansion.
        1: I have an idea...
        1: Could you fake my death and then help me escape?
	ASK 30
        IF -YES, @bloodthirsty
        GIVE T30
        1: Thank you! I am grateful for your help!
        H: No worries, this is the least I can do!
        END

@bloodthirsty
        MOVE 1, -25, 80, 1
        FIGHT2 53
        IF LOSE, @humiliate
        H: Ha! A REAL death is much more interesting!
        END

@humiliate
        GIVE T27
        1: You have lost, Jedi %1.
        END

@hasT29
        N: Dessicus now inherited the mansion.
        END 

@hasT30
        1: Thank you!
        H: No worries, this is the least I can do!
        END
END 

;---------
SCENE 26 plain, SCENE, "Battle of Corbos"
	ACTOR	1,     "Ajunta Pall", darkjedi32, 4, -25, 80
        IF T39, @hasT39
        FIGHT2 3, 5, 7, 51, 51, 51, 51, 51, 51, 55, 57, 59, 63, 65, 65, -81, -81, -81
        IF DEAD, @mortal
        FIGHT2 1, 9, 25, 25, 25, 51, 55, 57, 59, 63, 65, 201, 203, 205, 207, -69, -169, -171
        IF DEAD, @mortal
        FIGHT2 25, 27, 27, 27, 51, 55, 151, 151, 153, 201, 201, 201, 201, 203, 205, -81, -81, -81 
        IF DEAD, @mortal
        FIGHT2 151, 153, 155, 157, 159, 161, 163, 165, 167, 201, 203, 205, 211, -173, -177, -179  
        IF DEAD, @mortal
        FIGHT2 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 47, 49, 213, 241, 243, -81, -81, -81  
        IF DEAD, @mortal
        MOVE 1, 110, 80
        GIVE T39
        1: I am not finished yet!
        GOTO LINK 4, 0 
        END

@mortal
        H: Arrrhhh!
        GOTO EXIT
        END

@hasT39
	GOTO LINK 4, 0
        END

;---------
SCENE 27 catacomb, SCENE, "Corbos Catacombs"
	ACTOR	1,     "Ajunta Pall", darkjedi32, 4, 25, 80
        IF T40, @hasT40
        1: Ha-ha! You are the only Jedi that managed to find me! 
	H: This meeting is inevitable, Ajunta Pall!
        1: Fool! This shall be the last mistake you shall make in your life!
        H: Let's duel!
        MOVE 1, -25, 80, 1
        FIGHT2 253
        IF LOSE, @nexttime 
        MOVE 1, 110, 80
        1: You haven't seen the last of me!
        GIVE T40
        GOTO LINK 5, 0
        END     
     
@nexttime
        MOVE 1, 25, 80, 1
        1: You were a fool to challenge me!
        END

@hasT40
	GOTO LINK 5, 0
        END 

;---------
SCENE 28 catacomb, SCENE, "Corbos Catacombs"
	ACTOR	1,     "Ajunta Pall", darkjedi32, 4, 25, 80
	IF T41, @hasT41
        1: Haha! You are a fool to challenge me!
        H: Laugh while you still can, Ajunta Pall!
	1: Are you threatening me? Ha!
        H: If I can beat you once, I can beat you again!
	MOVE 1, -25, 80, 1
        FIGHT2 255
	IF LOSE, @howcouldu
	MOVE 1, 110, 80
	1: I shall have my revenge, you hear?
        GIVE T41
	GOTO LINK 4, 1
        END

@howcouldu
        MOVE 1, 25, 80, 1
        1: Ha-ha the Dark Side strengthens me!
        END

@hasT41
	GOTO LINK 4, 2
	END

;---------
SCENE 29 secretbase, SCENE, "Ajunta Pall's Secret Base"
	ACTOR	1,     "Ajunta Pall", darkjedi32, 4, 25, 80
	IF T37, @hasT37
	IF T38, @hasT38
	IF C4, @darkjedi
        1: I have underestimated you.
	1: I was certain the defence of Corbos would destroy you.
	1: Don't waste your talent.
	1: Do you want to join me?
	ASK 30
	IF YES, @resetclass
	H: Down you go!
	MOVE 1, -25, 80, 1
 	FIGHT2 257
	IF WIN, @longlast
 	MOVE 1, 25, 80, 1
	1: Thinking about it, I have overestimated you.
	1: This is but a taste of the dark side to whet your apetite!
	1: Ha-ha! The penalty of failure is death!
	END

@longlast
	MOVE 1, 25, 80, 1
	POSE 3
	GIVE T36
	1: Still . . . still spouting, the wisdom the Jedi, I see. 
	1: Maybe there is more truth in their code than I ever believed.
	1: I wanted to be Master of the Sith and ruler of the galaxy. 
	1: But that destiny was not mine, Revan. 
	1: It might have been yours, perhaps . . . but never mine. 
	H: There shall be peace in the galaxy once again!
	GIVE T38
	BKGND 	"ending"
	END 	

@resetclass
	1: You have chosen wise!
	SET num.hostClass, 4
	1: Now you are a Dark Jedi!
	1: Go now and kill some Jedi.
	END

@darkjedi
	1: You are a Dark Jedi!
	1: Together we can rule the galaxy mercilessly!
 	H: Nice try, old man.
	H: You are not worthy as the Dark Lord of the Sith!
	H: I shall be much more appropiate!
	1: Haha! We shall see!
	MOVE 1, -25, 80, 1
	FIGHT2 257
	IF WIN, @gimmepower
	MOVE 1, 25, 80, 1
	1: Well, that explain a lot!  
	1: It is call skills, something you lack!
	1: You will need to hone you combat skills if you want to usurp my rule.
	END

@gimmepower
	MOVE 1, 25, 80, 1
	POSE 3
	GIVE T36
	1: Yes... I cannot deny it any longer. 
	1: You are the one who deserves... who deserves to be the Dark Lord!
	1: That destiny was yours, %1, not mine. 
	1: You are Darth %1, Lord... lord of the Sith. And I... I am nothing.
	H: No truely words have been said! 
	H: I am the Sith Master and all must bow down to me!
	GIVE T37
	END

@hasT37
	H: This shall be the first of many bases I will build across the galaxy.
	END

@hasT38
	H: Peace have been restored, but who knows how long it will last?
	END

;---------
SCENE 30 petstore, SCENE, "Exotic Pet Shop"
	ACTOR	1,     "Czerka Protocol Officer", czerka, 4, 25, 80
 	IF T21, @notallowed
 	1: Welcome to my pet shop!
	1: I have four species to offer!
	1: They can fight for you as well!
	OFFER 1004, 1005, 1006, 1007
	1: No refund so choose carefully!
	1: And please don't abandon these cute animals!
	END 

@notallowed
	1: You went to a slave shop!
	1: Oh, you %3! How could you!
 	1: Get out of my sight!
	WAIT 1
	GOTO EXIT
	END

;---------
SCENE 31 snowy, SCENE, "Mt.Sigma's Summit"
        IF T13, @hasT13
	WAIT 3
	END

@hasT13
	ACTOR	1,     "Dark Jedi", darkjedi22, 1, 25, 80
        IF T17, @hasT17
        H: Surrender now, or prepare to fight, fight, fight!
        1: You will feel less like fighting when I pull off your head! 
	SOUND "fighting.wav"
        MOVE 1, -25, 80, 1
        FIGHT2 163
        IF WIN, @almost
        1: Foolish %3! Ha-ha!
        1: You shouldn't fight somebody as experience as I am.
        1: Let me give you a piece of advice: Don't mess with a Dark Jedi.
        END

@almost
        MOVE 1, -25, 80, 1
        N: You found Part #4 of the droid! 
        GIVE T17
        END

@hasT17
        MOVE 1, -25, 80, 1
	H: A breath-taking view.
        END 

;---------
SCENE 32 weapons, SCENE, "Sith Lightsaber Shops"
	ACTOR	1,     "Dark Jedi", darkjedi08, 4, 25, 80
	IF T21, @welcomein
	1: Tsk, what are you doing here, twerp?
	1: Sith only!
	WAIT 1
	GOTO EXIT
	END

@welcomein
	1: Welcome in, Dark Jedi!
	1: Finest Sith lightsabers in the Galaxy!
	OFFER2 0,99,13
	END

;---------
SCENE 33 barracks, SCENE, "Mandalorian Barracks"	 
        ACTOR	1,     "Mandalore", mandalorian, 4, 25, 80
	ACTOR	2,     "Droid"	  , droid      , 4,-15, 70
	ACTOR   3,     "Grave"    , grave      , 4,-25, 80
	IF T50, @hasT50
	IF T49, @hasT49
	IF T48, @hasT48
	IF T46, @hasT46
	IF T45, @hasT45
	IF T44, @hasT44
	1: Fool! I am Mandalore the Immoral!
	1: You %3, fix my droid, or you will take it from my blaster rifle!
	1: Yes or no, make your decision quick!
	1: He who hesitate is lost!
  	GIVE T43
	ASK 30
	IF YES, @fixdroid
	GIVE T47
	1: Fool! No body refuse me, you %3!
	MOVE 1, 25, 80, 1 
	FIGHT2 71
	IF WIN, @hurray
	GIVE T48
	1: You %3, you have just feel the wrath of my blaster rifle.
	1: Get out of my sight, weakling!
	WAIT 1
	GOTO EXIT
	END

@fixdroid
	GIVE T44
	MOVE 2, 15, 70 
	2: Inquiry: Are you going to fix me?
	H: Yes.
	2: Explanation: You must solve an equation in 60 seconds or I will self-destruct.
	2: Explanation: Enter the correct answer on the chatbox.
	2: Statement: Right click on me to start.
	END

@eventactorclick2
	GOTO SCENE 34
	END

@hurray
	GIVE T49
	H: You are a fool challenge me, Mandalore the Immoral!
	1: Im...Impossible!
	1: This is too embarrassing.
	MOVE 1, -25, 80
 	END

@hasT50
	1: You %3, haven't I reward you already?
	1: Get lost!
 	END

@hasT49
	MOVE 1, -25, 80, 1
	MOVE 3, 25, 80, 1
	H: Rest in peace, o Mandalore the Immoral!
	END

@hasT48
	1: Ha! Weakling!
	END

@hasT46
	1: Sigh... I should have known a puny Jedi like you can't fix a droid!
	1: The penalty of failure is death, Jedi %1. 
	1: But the failure is yours, not mine!
	1: Oh well, it's your head!
	END

@hasT45
	GIVE T50
	1: I guess Jedi are not completely, you %3!
	1: And I shall reward you!
	GIVE G20000
	H: Thank you for your generousity, o Mandalore!
	1: Now that you are used, you are disposable!
	WAIT 3
 	GOTO EXIT
	END

@hasT44
	2: Inquiry: Are you going to fix me?
	H: Yes.
	2: Explanation: You must solve an equation in 15 seconds or I will self-destruct.
	2: Explanation: Enter the correct answer on the chatbox.
	2: Statement: Right click on me to start.
	END
END 

;---------
SCENE 34 equation, CUT
	ACTOR	1,     "Droid"	  , droid, 	 4, -25, 80
	ACTOR	2,     "Mushroom Cloud"      , explosion,   4, -50, 80
	COUNTDOWN 15
	ASK 10
	IF Q4, @correct
	IF XP, @selfdestruct
	END
	
@correct
	GIVE T45
	GOTO SCENE 33
	END

@selfdestruct
	GIVE T46
	BKGND "barracks"
	WAIT 1
	MOVE 1, 25, 80, 1
 	WAIT 1
	MOVE 2, 25, 80, 1
	SOUND explosions.WAV
	MOVE 1, -25, 80, 1
	WAIT 1
	H: AAAAAAAhhhhhhhhhhhhhhhh!!!!!!!!!
	TAKE H5000
	TAKE M5000
 	WAIT 1
	GOTO EXIT
	END
END

;---------
SCENE 35 multiroom, SCENE, "PKer Fans Club"
	ACTOR	1,     "PK Master", darkjedi30, 4, 25, 80
	IF P0, @playerkiller
	1: Get lost, you little peace-lover!
	1: This is PKer Fans Club!
	1: Go home, you %3!
	WAIT 1
	GOTO EXIT
	END

@playerkiller
	IF T52, @hasT52
	IF P99, @killed99
	IF T51, @hasT51
	1: Welcome to the PKer Fans Club, %1!
	1: I am the PK Master and I am looking for a successor.
	1: If you Pk other players 99 times, I will declare you the PK Master.
	GIVE T51
	1: Go now, %1.
	END

@hasT52
	1: Hail! PK Master, enjoy your stay.
	END

@hasT51
	1: Welcome, %1!
	1: You still haven't Pk 99 players!
	1: Are you too weak?
	1: Or are you getting soft?
	END

@killed99
	1: Welcome, %1!
	1: You have Pk 99 players!
	1: I hereby declare you the PK Master!
	1: And this special Feat, heirloom of the PK Fans Club.
	GIVE S20
	END
END

;---------
SCENE 36 hunters, SCENE, "Hunter's Lodge"
	ACTOR	1,     "Champian Hunter", darkjedi27, 4, 25, 50
	IF T54, @hasT54
	IF KM25.99, @leviethan
	IF T53, @hasT53
	1: Hey, welcome to the hunter's lodge!
	1: This is where we hunter's hang out.
	1: You look smart, which is nice for a change.
	1: Those goons that call themselves hunters are nothing but idiots!
	1: Umm... I just have an idea.
	1: Ok, %1. If you can slay 99 Leviethans that dwell in Hoth,
	1: I shall declare you are my sucessor!
	GIVE T53
	END

@hasT53
	1: What! You still haven't slay 99 Leviethans!
	1: Have I overestimated you?
	END

@hasT54
	1: The Champian Hunter is here! Welcome!
	END

@leviethan
	GIVE T54
	1: You have slayed 99 Leviethans!
	1: I knew you are born with that skill!
	1: It is in your very eyes!
	1: I declare you the Champian Hunter!
	1: And this Feat shall make you even stronger!
	GIVE S21
 	END
END 

;---------
SCENE 37 haunted, SCENE, "Haunted House"
	IF DEAD, @seeghost
	GIVE T56
	H: I should have guessed, that Sith is lying.
	H: There is no ghost in here.
	END

@seeghost
	ACTOR	1,     "Ghost", ghost, 4, 25, 80
	IF T64, @hasT64
	IF T63, @hasT63
	IF T62, @hasT62
	IF T61, @hasT61
	IF T60, @hasT60
	IF T59, @hasT59
	1: Ha, you are dead like me!
	H: So? I can resurrect again, and there's nothing you can do about it.
	1: *sigh* I now who my murderer was yet I couldn't do anything about it!
	1: I shall seek bloody revenge on him.
	H: Who is it?
	1: I could not say that name without cursing, it...is... Nigel.
	1: He is an evil terrorist that had massacred thousands of people.
	1: He is now locked in the Coruscant Jail, yet he deserved to be hung, drawn and quartered.
	GIVE T59
	MENU "Hatred will only bring more evils into our world=@forgive","I shall assassinate Nigel for you=@kill"
	END

@hasT59
	MENU "Hatred will only bring more evils into our world=@forgive","I shall assassinate Nigel for you=@kill"
	END

@hasT60
	1: I thank you with my life, Jedi %1.
	1: I shall be grateful to you as long as I live.
	GIVE T62
	1: This special feat of mine should help you.
	GIVE S22
	END

@hasT61
	H: Don't worry! I shalk avenge your murder... in blood.
	1: Thank you, Jedi %1!
	END

@hasT62
	1:Thank you, Jedi %1.
	END	

@forgive
	GIVE T60
	H: I am the servant of Light and only take arms against the Dark Side and the injustice that follows it!
	1: So being murdered by Nigel the evil terrorist is justice?
	H: No, but he is already locked up in the Coruscant Jail.
	H: As I said, hatred will only bring more evils into our world.
	GOTO @hasT60
 	END

@kill
	GIVE T61
	H: I believe in bringing justice into your own hands.
	H: Don't worry! I shall avenge your murder... in blood.
	1: Thank you, Jedi %1!
	END:

@hasT63
	H: Nigel the murderer is murdered.
	GIVE T60
	1: Ha! He can have a taste of his deeds.
	GOTO @hasT60
	END

@hasT64 
	1: Foolish Jedi! You have fallen under a mere Sith Trooper!
	1: Now, I will have to think of a plan of revenge on my own!
 	END

;---------
SCENE 38 observatory, SCENE, "Sith Observatory"
	ACTOR	1,     "Sith Trooper", sith, 4, 25, 80
	IF T58, @hasT58
	IF T57, @hasT57
	IF T56, @hasT56
	IF T55, @hasT55
	1: Hmm... This is weird.
	1: According to my observations, Alderaan is haunted.
	GIVE T55
	H: Really? I'll go and check it out.
	H: You better not be lying!
	1: No, I'm sure of it.
	END

@hasT58
	1: Good afternnon, Jedi %1.
	1: Don't tell my master, but I don't really want to be Sith.
	H: Join the Republic then.
	1: Ok.
	END

@hasT57
	MOVE 1, -25, 80, 1
	H: The Sith has perished!
	END

@hasT56
	H: You liar! There is no ghost on Alderaan
	1: You're sure?
	H: Of course, you %3.
	1: Well, I might kind of made a mistake.
	MENU "Your mistake shall not go unpunished, fool!=@diefool","Oh well, I will further investigate it.=@investigate"
	END

@investigate
	1: Yeah, do that.
	GIVE T58
	1: You might have to be a ghost yourself to see a ghost, if you know what I mean.
	END

@diefool
	1: What? Wait...no...
	H: Die fool!
	FIGHT2 57
 	IF WIN, @thatwaseasy
	1: Crap!!!
	1: *Sigh*, if you wait, I was about to tell you that you might have to be a ghost to see a ghost.
	H: ?? 
	1: *Sigh*
	END

@thatwaseasy
	1: Why did you do that for?
	H: You made a mistake and you paid for it!
	1: *Sigh*, if you wait, I was about to tell you that you might have to be a ghost to see a ghost.
	H: Oh well, it's your head!
	END

@hasT55
	1: Oh, hi there!
	1: Have you check out the ghost yet?
	H: Not yet.
	END
END

;---------
SCENE 39 jailcell, SCENE, "Jail"
	ACTOR	1,     "Nigel", murderer, 4, 25, 80
	IF T63, @hasT63
	IF T64, @hasT64
	1: How did you get in here? Oh well, it's your head.
	H: I am here to avenge err... the Mr. Ghost that you killed.
	1: Haha! I've killed a lot of people, criminals, competitors, businessmen, police, women, childrenK 
	1: I can't say I'm proud of it, but I have.
	H: It is time you pay for all the lives that you have wasted.
	FIGHT2 83
	IF LOSE, @victim
	MOVE 1, -25, 80, 1
	GIVE T63
	1: Mr. Ghost have been avenged!
	END

@victim
	1: It's call skills, something you lack, fool!
	H: No, this can't be right!
	GIVE T64
 	END

@hasT63
	MOVE 1, -25, 80, 1
	N: The prison cell is empty.
	END

@hasT64
	1: Fool! Do you come back for more?
	TAKE H100
	1: Ha! Come back again and I shall incinerate you!
	END
END

;---------
SCENE 40 machine, SCENE, "Rakatan Time Machine"
	IF T65, @hasT65
	N: This is an ancient artifact of the Rakatans.
	N: It will transport you back to the very start of the game.
	N: Your level shall remain the same.
	N: This time machine will be activated in 20 seconds.
	WAIT 20
	TAKE T1 
	TAKE T2
	TAKE T3 
	TAKE T4
	TAKE T5
	TAKE T6
	TAKE T7 	
	TAKE T8
	TAKE T9
	TAKE T10
	TAKE T11
	TAKE T12 
	TAKE T13 
	TAKE T14 
	TAKE T15 
	TAKE T16 
	TAKE T17 
	TAKE T18
	TAKE T19 
	TAKE T20 
	TAKE T21 
	TAKE T22 
	TAKE T23 
	TAKE T24 
	TAKE T25 
	TAKE T26 
	TAKE T27 
	TAKE T28 
	TAKE T29 
	TAKE T30 
	TAKE T31 
	TAKE T32 
	TAKE T33 
	TAKE T34 
	TAKE T35 
	TAKE T36 
	TAKE T37 
	TAKE T38 
	TAKE T39 
	TAKE T40 
	TAKE T41 
	TAKE T42
	TAKE T43
	TAKE T44
	TAKE T45
	TAKE T46
	TAKE T47 
	TAKE T48
	TAKE T49
	TAKE T50
	TAKE T51
	TAKE T52	
	TAKE T53	
	TAKE T54
	TAKE T55
	TAKE T56
	TAKE T57
	TAKE T58
	TAKE T59
	TAKE T60
	TAKE T61
	TAKE T62
	TAKE T63
	TAKE T64	
	N: Choose your class.
	MENU "Jedi Guardian=@guardian","Jedi Sentinel=@sentinel","Jedi Consular=@consular"
	END

@guardian
	SET num.hostClass, 1
	GOTO @done
	END

@sentinel
	SET num.hostClass, 2
	GOTO @done
	END

@consular
	SET num.hostClass, 3
	GOTO @done
	END

@done
	GIVE T65
	GOTO LINK 6, 1, 1
	END

@hasT65
	N: The time machine is broken due to overuse.
	END
END

;---------
SCENE 41 port, SCENE, "Dantooine Spaceport"
	H: It is time for me to leave Dantooine. 
	WAIT 3
	GOTO LINK 0, 0
	END

;---------
SCENE 42 port, SCENE, "Malanchor V Spaceport"
	H: It is time for me to leave Malanchor V. 
	WAIT 3
	GOTO LINK 0, 4
	END

;---------
SCENE 43 port, SCENE, "Telos IV Spaceport"
	H: It is time for me to leave Telos IV. 
	WAIT 3
	GOTO LINK 0, 8
	END

;---------
SCENE 44 port, SCENE, "Byss Spaceport"
	H: It is time for me to leave Byss. 
	WAIT 3
	GOTO LINK 0, 2
	END

;---------
SCENE 45 port, SCENE, "Corbos Spaceport"
	H: It is time for me to leave Corbos. 
	WAIT 3
	GOTO LINK 0, 7
	END

;---------
SCENE 46 port, SCENE, "Coruscant Spaceport"
	H: It is time for me to leave Coruscant. 
	WAIT 3
	GOTO LINK 0, 3
	END

;---------
SCENE 47 port, SCENE, "Alderaan Spaceport"
	H: It is time for me to leave Alderaan. 
	WAIT 3
	GOTO LINK 0, 1
	END

;---------
SCENE 48 port, SCENE, "Onderon Spaceport"
	H: It is time for me to leave Onderon. 
	WAIT 3
	GOTO LINK 0, 6
	END

;---------
SCENE 49 port, SCENE, "Hoth Spaceport"
	H: It is time for me to leave Hoth.
	WAIT 3
	GOTO LINK 0, 5
	END

;---------
SCENE 50 port, SCENE, "Dantooine Spaceport"
	H: Dantooine is a pleasant world of grasslands, rivers and lakes.
	GOTO LINK 7, 1
	END

;---------
SCENE 51 port, SCENE, "Malanchor V Spaceport"
	H: Malachor V corrupts all that walks on its surface, drowns them in the power of the dark side.
	GOTO LINK 10, 1
	END

;---------
SCENE 52 port, SCENE, "Telos IV Spaceport"
	H: Telos IV served as a military base for the Republic and the Jedi.
	GOTO LINK 19, 0
	END

;---------
SCENE 53 port, SCENE, "Byss Spaceport"
	H: If there's a dark center of the universe, this is it...
	GOTO LINK 3, 0
	END

;---------
SCENE 54 port, SCENE, "Coruscant Spaceport"
	H: CoruscantK the entire planet is one big city.
	GOTO LINK 20, 1
	END

;---------
SCENE 55 port, SCENE, "Alderaan Spaceport"
	H: Alderaan is renowned Galaxy-wide for its unspoiled beauty,
	GOTO LINK 2, 0
	END

;---------
SCENE 56 port, SCENE, "Onderon Spaceport"
	H: This planet has a temperate climate, and was once home to a primitive race of humanoids.
	GOTO LINK 12, 0
	END

;---------
SCENE 57 port, SCENE, "Hoth Spaceport"
	1: There isn't enough life on this ice cube to fill a space cruiser.
	GOTO LINK 13, 0
	END
;---------

; Here is the last line of the SCENES section of the quest file.
-SCENES

; Now we are at the extreme end of the file
;
; Note: You should add a comment to the end of the file, since otherwise an old bug might rise
; up and smite you!
