Skip to content
Permalink
f7c0321b71
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
6580 lines (5549 sloc) 178 KB
#ifndef SCRIPTS_H
#define SCRIPTS_H
#include "Script.h"
#include <algorithm>
extern scriptclass script;
void scriptclass::load(std::string t)
{
//loads script name t into the array
position = 0;
scriptlength=0;
running = true;
int maxlength = (std::min(int(t.length()),7));
std::string customstring="";
for(int i=0; i<maxlength; i++){
customstring+=t[i];
}
if (customstring == "custom_"){
//this magic function breaks down the custom script and turns into real scripting!
std::string cscriptname="";
for(size_t i=0; i<t.length(); i++){
if(i>=7) cscriptname+=t[i];
}
int scriptstart=-1;
int scriptend=-1;
std::string tstring;
for(size_t i=0; i<customscript.size(); i++){
if(scriptstart==-1){
//Find start of the script
if(script.customscript[i]==cscriptname+":"){
scriptstart=i+1;
}
}else if(scriptend==-1){
//Find the end
tstring=script.customscript[i];
tstring=tstring[tstring.size()-1];
if(tstring==":"){
scriptend=i;
}
}
}
if(scriptstart>-1){
if(scriptend==-1){
scriptend=customscript.size();
}
//Ok, we've got the relavent script segment, we do a pass to assess it, then run it!
int customcutscenemode=0;
for(int i=scriptstart; i<scriptend; i++){
tokenize(script.customscript[i]);
if(words[0] == "say"){
customcutscenemode=1;
}else if(words[0] == "reply"){
customcutscenemode=1;
}
}
if(customcutscenemode==1){
add("cutscene()");
add("untilbars()");
}
int customtextmode=0;
int speakermode=0; //0, terminal, numbers for crew
int squeakmode=0;//default on
//Now run the script
for(int i=scriptstart; i<scriptend; i++){
words[0]="nothing"; //Default!
words[1]="1"; //Default!
tokenize(script.customscript[i]);
std::transform(words[0].begin(), words[0].end(), words[0].begin(), ::tolower);
if(words[0] == "music"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(words[1]=="0"){
tstring="stopmusic()";
}else{
if(words[1]=="11"){ tstring="play(14)";
}else if(words[1]=="10"){ tstring="play(13)";
}else if(words[1]=="9"){ tstring="play(12)";
}else if(words[1]=="8"){ tstring="play(11)";
}else if(words[1]=="7"){ tstring="play(10)";
}else if(words[1]=="6"){ tstring="play(8)";
}else if(words[1]=="5"){ tstring="play(6)";
}else { tstring="play("+words[1]+")"; }
}
add(tstring);
}else if(words[0] == "playremix"){
add("play(15)");
}else if(words[0] == "flash"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add("flash(5)");
add("shake(20)");
add("playef(9,10)");
}else if(words[0] == "sad" || words[0] == "cry"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(words[1]=="player"){
add("changemood(player,1)");
}else if(words[1]=="cyan" || words[1]=="viridian" || words[1]=="1"){
add("changecustommood(customcyan,1)");
}else if(words[1]=="purple" || words[1]=="violet" || words[1]=="pink" || words[1]=="2"){
add("changecustommood(purple,1)");
}else if(words[1]=="yellow" || words[1]=="vitellary" || words[1]=="3"){
add("changecustommood(yellow,1)");
}else if(words[1]=="red" || words[1]=="vermilion" || words[1]=="4"){
add("changecustommood(red,1)");
}else if(words[1]=="green" || words[1]=="verdigris" || words[1]=="5"){
add("changecustommood(green,1)");
}else if(words[1]=="blue" || words[1]=="victoria" || words[1]=="6"){
add("changecustommood(blue,1)");
}else if(words[1]=="all" || words[1]=="everybody" || words[1]=="everyone"){
add("changemood(player,1)");
add("changecustommood(customcyan,1)");
add("changecustommood(purple,1)");
add("changecustommood(yellow,1)");
add("changecustommood(red,1)");
add("changecustommood(green,1)");
add("changecustommood(blue,1)");
}else{
add("changemood(player,1)");
}
if(squeakmode==0) add("squeak(cry)");
}else if(words[0] == "happy"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(words[1]=="player"){
add("changemood(player,0)");
if(squeakmode==0) add("squeak(player)");
}else if(words[1]=="cyan" || words[1]=="viridian" || words[1]=="1"){
add("changecustommood(customcyan,0)");
if(squeakmode==0) add("squeak(player)");
}else if(words[1]=="purple" || words[1]=="violet" || words[1]=="pink" || words[1]=="2"){
add("changecustommood(purple,0)");
if(squeakmode==0) add("squeak(purple)");
}else if(words[1]=="yellow" || words[1]=="vitellary" || words[1]=="3"){
add("changecustommood(yellow,0)");
if(squeakmode==0) add("squeak(yellow)");
}else if(words[1]=="red" || words[1]=="vermilion" || words[1]=="4"){
add("changecustommood(red,0)");
if(squeakmode==0) add("squeak(red)");
}else if(words[1]=="green" || words[1]=="verdigris" || words[1]=="5"){
add("changecustommood(green,0)");
if(squeakmode==0) add("squeak(green)");
}else if(words[1]=="blue" || words[1]=="victoria" || words[1]=="6"){
add("changecustommood(blue,0)");
if(squeakmode==0) add("squeak(blue)");
}else if(words[1]=="all" || words[1]=="everybody" || words[1]=="everyone"){
add("changemood(player,0)");
add("changecustommood(customcyan,0)");
add("changecustommood(purple,0)");
add("changecustommood(yellow,0)");
add("changecustommood(red,0)");
add("changecustommood(green,0)");
add("changecustommood(blue,0)");
}else{
add("changemood(player,0)");
if(squeakmode==0) add("squeak(player)");
}
}else if(words[0] == "squeak"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(words[1]=="player"){
add("squeak(player)");
}else if(words[1]=="cyan" || words[1]=="viridian" || words[1]=="1"){
add("squeak(player)");
}else if(words[1]=="purple" || words[1]=="violet" || words[1]=="pink" || words[1]=="2"){
add("squeak(purple)");
}else if(words[1]=="yellow" || words[1]=="vitellary" || words[1]=="3"){
add("squeak(yellow)");
}else if(words[1]=="red" || words[1]=="vermilion" || words[1]=="4"){
add("squeak(red)");
}else if(words[1]=="green" || words[1]=="verdigris" || words[1]=="5"){
add("squeak(green)");
}else if(words[1]=="blue" || words[1]=="victoria" || words[1]=="6"){
add("squeak(blue)");
}else if(words[1]=="cry" || words[1]=="sad"){
add("squeak(cry)");
}else if(words[1]=="on"){
squeakmode=0;
}else if(words[1]=="off"){
squeakmode=1;
}
}else if(words[0] == "delay"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add(script.customscript[i]);
}else if(words[0] == "flag"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add(script.customscript[i]);
}else if(words[0] == "map"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add("custom"+script.customscript[i]);
}else if(words[0] == "warpdir"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add(script.customscript[i]);
}else if(words[0] == "ifwarp"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add(script.customscript[i]);
}else if(words[0] == "iftrinkets"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add("custom"+script.customscript[i]);
}else if(words[0] == "ifflag"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add("custom"+script.customscript[i]);
}else if(words[0] == "iftrinketsless"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
add("custom"+script.customscript[i]);
}else if(words[0] == "destroy"){
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(words[1]=="gravitylines"){
add("destroy(gravitylines)");
}else if(words[1]=="warptokens"){
add("destroy(warptokens)");
}else if(words[1]=="platforms"){
add("destroy(platforms)");
}
}else if(words[0] == "speaker"){
speakermode=0;
if(words[1]=="gray" || words[1]=="grey" || words[1]=="terminal" || words[1]=="0") speakermode=0;
if(words[1]=="cyan" || words[1]=="viridian" || words[1]=="player" || words[1]=="1") speakermode=1;
if(words[1]=="purple" || words[1]=="violet" || words[1]=="pink" || words[1]=="2") speakermode=2;
if(words[1]=="yellow" || words[1]=="vitellary" || words[1]=="3") speakermode=3;
if(words[1]=="red" || words[1]=="vermilion" || words[1]=="4") speakermode=4;
if(words[1]=="green" || words[1]=="verdigris" || words[1]=="5") speakermode=5;
if(words[1]=="blue" || words[1]=="victoria" || words[1]=="6") speakermode=6;
}else if(words[0] == "say"){
//Speakers!
if(words[2]=="terminal" || words[2]=="gray" || words[2]=="grey" || words[2]=="0") speakermode=0;
if(words[2]=="cyan" || words[2]=="viridian" || words[2]=="player" || words[2]=="1") speakermode=1;
if(words[2]=="purple" || words[2]=="violet" || words[2]=="pink" || words[2]=="2") speakermode=2;
if(words[2]=="yellow" || words[2]=="vitellary" || words[2]=="3") speakermode=3;
if(words[2]=="red" || words[2]=="vermilion" || words[2]=="4") speakermode=4;
if(words[2]=="green" || words[2]=="verdigris" || words[2]=="5") speakermode=5;
if(words[2]=="blue" || words[2]=="victoria" || words[2]=="6") speakermode=6;
switch(speakermode){
case 0:
if(squeakmode==0) add("squeak(terminal)");
add("text(gray,0,114,"+words[1]+")");
break;
case 1: //NOT THE PLAYER
if(squeakmode==0) add("squeak(cyan)");
add("text(cyan,0,0,"+words[1]+")");
break;
case 2:
if(squeakmode==0) add("squeak(purple)");
add("text(purple,0,0,"+words[1]+")");
break;
case 3:
if(squeakmode==0) add("squeak(yellow)");
add("text(yellow,0,0,"+words[1]+")");
break;
case 4:
if(squeakmode==0) add("squeak(red)");
add("text(red,0,0,"+words[1]+")");
break;
case 5:
if(squeakmode==0) add("squeak(green)");
add("text(green,0,0,"+words[1]+")");
break;
case 6:
if(squeakmode==0) add("squeak(blue)");
add("text(blue,0,0,"+words[1]+")");
break;
}
int ti=atoi(words[1].c_str());
if(ti>=0 && ti<=50){
for(int ti2=0; ti2<ti; ti2++){
i++; add(script.customscript[i]);
}
}else{
i++; add(script.customscript[i]);
}
switch(speakermode){
case 0: add("customposition(center)"); break;
case 1: add("customposition(cyan,above)"); break;
case 2: add("customposition(purple,above)"); break;
case 3: add("customposition(yellow,above)"); break;
case 4: add("customposition(red,above)"); break;
case 5: add("customposition(green,above)"); break;
case 6: add("customposition(blue,above)"); break;
}
add("speak_active");
customtextmode=1;
}else if(words[0] == "reply"){
//For this version, terminal only
if(squeakmode==0) add("squeak(player)");
add("text(cyan,0,0,"+words[1]+")");
int ti=atoi(words[1].c_str());
if(ti>=0 && ti<=50){
for(int ti2=0; ti2<ti; ti2++){
i++; add(script.customscript[i]);
}
}else{
i++; add(script.customscript[i]);
}
add("position(player,above)");
add("speak_active");
customtextmode=1;
}
}
if(customtextmode==1){ add("endtext"); customtextmode=0;}
if(customcutscenemode==1){
add("endcutscene()");
add("untilbars()");
}
}
}
else if (t == "intro")
{
add("ifskip(quickstart)");
//add("createcrewman(232,113,cyan,0,faceright)");
add("createcrewman(96,177,green,0,faceright)");
add("createcrewman(122,177,purple,0,faceleft)");
add("fadein()");
add("untilfade()");
add("delay(90)");
add("flash(5)");
add("shake(20)");
add("playef(9,10)");
add("musicfadeout()");
add("changemood(player,1)");
add("delay(15)");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("Uh oh...");
add("position(player,above)");
//add("backgroundtext");
add("speak_active");
add("squeak(purple)");
add("changeai(purple,followposition,175)");
add("text(purple,145,150,1)");
add("Is everything ok?");
//add("position(purple,above)");
//add("backgroundtext");
add("speak_active");
add("squeak(player)");
add("walk(left,2)");
add("text(cyan,0,0,2)");
add("No! We've hit some");
add("kind of interference...");
add("position(player,above)");
//add("backgroundtext");
add("speak_active");
//add("delay(30)");
add("endtext");
add("flash(5)");
add("shake(50)");
add("playef(9,10)");
add("changemood(green,1)");
add("changemood(purple,1)");
add("alarmon");
add("changedir(player,1)");
add("delay(30)");
add("endtext");
add("squeak(player)");
add("text(cyan,0,0,2)");
add("Something's wrong! We're");
add("going to crash!");
add("position(player,above)");
//add("backgroundtext");
add("speak_active");
//add("delay(100)");
add("endtext");
add("flash(5)");
add("shake(50)");
add("playef(9,10)");
add("changeai(green,followposition,-60)");
add("changeai(purple,followposition,-60)");
add("squeak(player)");
add("text(cyan,70,140,1)");
add("Evacuate!");
add("backgroundtext");
add("speak_active");
add("walk(left,35)");
add("endtextfast");
//Ok, next room!
add("flash(5)");
add("shake(50)");
add("playef(9,10)");
add("gotoroom(3,10)");
add("gotoposition(310,177,0)");
add("createcrewman(208,177,green,1,followposition,120)");
add("createcrewman(240,177,purple,1,followposition,120)");
add("createcrewman(10,177,blue,1,followposition,180)");
add("squeak(blue)");
add("text(blue,80,150,1)");
add("Oh no!");
add("backgroundtext");
add("speak_active");
add("walk(left,20)");
add("endtextfast");
//and the next!
add("flash(5)");
add("shake(50)");
add("playef(9,10)");
add("gotoroom(3,11)");
add("gotoposition(140,0,0)");
add("createcrewman(90,105,green,1,followblue)");
add("createcrewman(125,105,purple,1,followgreen)");
add("createcrewman(55,105,blue,1,followposition,-200)");
add("createcrewman(120,177,yellow,1,followposition,-200)");
add("createcrewman(240,177,red,1,faceleft)");
add("delay(5)");
add("changeai(red,followposition,-200)");
add("squeak(red)");
add("text(red,100,150,1)");
add("Everyone off the ship!");
add("backgroundtext");
add("speak_active");
add("walk(left,25)");
add("endtextfast");
//final room:
add("flash(5)");
add("shake(80)");
add("playef(9,10)");
add("gotoroom(2,11)");
add("gotoposition(265,153,0)");
add("createcrewman(130,153,blue,1,faceleft)");
add("createcrewman(155,153,green,1,faceleft)");
add("createcrewman(180,153,purple,1,faceleft)");
add("createcrewman(205,153,yellow,1,faceleft)");
add("createcrewman(230,153,red,1,faceleft)");
add("squeak(yellow)");
add("text(yellow,0,0,1)");
add("This shouldn't be happening!");
add("position(yellow,below)");
add("backgroundtext");
add("speak_active");
add("activateteleporter()");
add("delay(10)");
add("changecolour(blue,teleporter)");
add("delay(10)");
add("changecolour(green,teleporter)");
add("delay(10)");
add("changecolour(purple,teleporter)");
add("delay(10)");
add("changecolour(yellow,teleporter)");
add("delay(10)");
add("changecolour(red,teleporter)");
add("delay(10)");
//and teleport!
add("endtext");
add("alarmoff");
add("flash(5)");
add("shake(20)");
add("playef(10,10)");
add("blackout()");
add("changemood(player,0)");
add("changedir(player,1)");
add("delay(100)");
add("blackon()");
add("shake(20)");
add("playef(10,10)");
//Finally, appear at the start of the game:
add("gotoroom(13,5)");
add("gotoposition(80,96,0)");
add("walk(right,20)");
//add("delay(45)");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("Phew! That was scary!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,2)");
add("At least we all");
add("escaped, right guys?");
add("position(player,above)");
add("speak_active");
add("endtext");
add("delay(45)");
add("walk(left,3)");
add("delay(45)");
add("setcheckpoint()");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("...guys?");
add("position(player,above)");
add("speak_active");
add("endtext");
add("delay(25)");
add("changemood(player,1)");
add("squeak(cry)");
add("delay(25)");
add("play(1)");
add("endcutscene()");
add("untilbars()");
add("hideship()");
add("gamestate(4)");
}
else if (t == "quickstart")
{
//Finally, appear at the start of the game:
add("gotoroom(13,5)");
add("gotoposition(80,96,0)");
add("walk(right,17)");
add("fadein()");
add("setcheckpoint()");
add("play(1)");
add("endcutscene()");
add("untilbars()");
add("hideship()");
}
else if (t == "firststeps")
{
add("cutscene()");
add("untilbars()");
add("squeak(player)");
add("text(cyan,0,0,2)");
add("I wonder why the ship");
add("teleported me here alone?");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("text(cyan,0,0,2)");
add("I hope everyone else");
add("got out ok...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "trenchwarfare")
{
add("cutscene()");
add("untilbars()");
add("iftrinkets(1,newtrenchwarfare)");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("Ohh! I wonder what that is?");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,3)");
add("I probably don't really need it,");
add("but it might be nice to take it");
add("back to the ship to study...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "newtrenchwarfare")
{
add("squeak(player)");
add("text(cyan,0,0,2)");
add("Oh! It's another one of");
add("those shiny things!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,3)");
add("I probably don't really need it,");
add("but it might be nice to take it");
add("back to the ship to study...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "trinketcollector")
{
add("cutscene()");
add("untilbars()");
add("iftrinkets(1,newtrinketcollector)");
add("squeak(player)");
add("text(cyan,0,0,3)");
add("This seems like a good");
add("place to store anything");
add("I find out there...");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,3)");
add("Victoria loves to study the");
add("interesting things we find");
add("on our adventures!");
add("position(player,above)");
add("speak_active");
add("ifcrewlost(5,new2trinketcollector)");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "newtrinketcollector")
{
add("squeak(player)");
add("text(cyan,0,0,3)");
add("This seems like a good");
add("place to store those");
add("shiny things.");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,3)");
add("Victoria loves to study the");
add("interesting things we find");
add("on our adventures!");
add("position(player,above)");
add("speak_active");
add("ifcrewlost(5,new2trinketcollector)");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "new2trinketcollector")
{
add("squeak(cry)");
add("changemood(player,1)");
add("text(cyan,0,0,1)");
add("I hope she's ok...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("changemood(player,0)");
add("endcutscene()");
add("untilbars()");
return;
}
if (t == "communicationstation")
{
add("ifskip(communicationstationskip)");
add("cutscene()");
add("untilbars()");
add("changemood(player,0)");
add("tofloor");
add("play(5)");
add("delay(10)");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("Violet! Is that you?");
add("position(player,above)");
add("speak_active");
add("endtext");
add("squeak(purple)");
add("text(purple,45,18,1)");
add("Captain! You're ok!");
add("speak_active");
add("squeak(cry)");
add("text(purple,20,16,3)");
add("Something has gone");
add("horribly wrong with the");
add("ship's teleporter!");
add("speak_active");
add("squeak(purple)");
add("text(purple,8,14,3)");
add("I think everyone has been");
add("teleported away randomly!");
add("They could be anywhere!");
add("speak_active");
add("squeak(cry)");
add("changemood(player,1)");
add("text(cyan,0,0,1)");
add("Oh no!");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,10,19,2)");
add("I'm on the ship - it's damaged");
add("badly, but it's still intact!");
add("speak_active");
add("squeak(purple)");
add("text(purple,10,15,1)");
add("Where are you, Captain?");
add("speak_active");
add("squeak(player)");
add("changemood(player,0)");
add("text(cyan,0,0,3)");
add("I'm on some sort of");
add("space station... It");
add("seems pretty modern...");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,15,16,2)");
add("There seems to be some sort of");
add("interference in this dimension...");
add("speak_active");
add("hideteleporters()");
add("endtextfast");
add("delay(10)");
//add map mode here and wrap up...
add("gamemode(teleporter)");
add("delay(20)");
add("squeak(purple)");
add("text(purple,25,205,2)");
add("I'm broadcasting the coordinates");
add("of the ship to you now.");
add("speak_active");
add("endtext");
add("squeak(terminal)");
add("showship()");
add("delay(10)");
add("hideship()");
add("delay(10)");
add("showship()");
add("delay(10)");
add("hideship()");
add("delay(10)");
add("showship()");
add("delay(20)");
add("squeak(purple)");
add("text(purple,10,200,1)");
add("I can't teleport you back, but...");
add("speak_active");
add("squeak(purple)");
add("text(purple,25,195,3)");
add("If YOU can find a teleporter");
add("anywhere nearby, you should be");
add("able to teleport back to me!");
add("speak_active");
add("endtext");
add("squeak(terminal)");
add("delay(20)");
add("showteleporters()");
add("delay(10)");
add("hideteleporters()");
add("delay(10)");
add("showteleporters()");
add("delay(10)");
add("hideteleporters()");
add("delay(10)");
add("showteleporters()");
add("delay(20)");
add("squeak(player)");
add("text(cyan,20,190,1)");
add("Ok! I'll try to find one!");
add("speak_active");
add("endtext");
add("delay(20)");
add("gamemode(game)");
add("delay(20)");
add("squeak(purple)");
add("text(purple,40,22,1)");
add("Good luck, Captain!");
add("speak_active");
add("endtext");
add("squeak(purple)");
add("text(purple,10,19,2)");
add("I'll keep trying to find");
add("the rest of the crew...");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
add("play(1)");
}
else if (t == "communicationstationskip")
{
add("changemood(player,0)");
add("delay(10)");
add("endtext");
//add map mode here and wrap up...
add("gamemode(teleporter)");
add("delay(5)");
add("squeak(terminal)");
add("showship()");
add("showteleporters()");
add("delay(10)");
add("hideship()");
add("hideteleporters()");
add("delay(10)");
add("showship()");
add("showteleporters()");
add("delay(10)");
add("hideship()");
add("hideteleporters()");
add("delay(10)");
add("showship()");
add("showteleporters()");
add("delay(20)");
add("gamemode(game)");
}
else if (t == "teleporterback")
{
add("cutscene()");
add("untilbars()");
add("squeak(player)");
add("text(cyan,0,0,1)");
add("A teleporter!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(cyan,0,0,2)");
add("I can get back to the");
add("ship with this!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("teleportscript(levelonecomplete)");
add("endcutscene()");
add("untilbars()");
}
else if (t == "levelonecomplete")
{
add("nocontrol()");
add("createcrewman(230,153,purple,0,faceleft)");
add("cutscene()");
add("untilbars()");
add("delay(30)");
add("rescued(purple)");
add("delay(10)");
add("gamestate(4090)");
}
else if (t == "levelonecomplete_ending")
{
add("squeak(purple)");
add("text(purple,0,0,1)");
add("Captain!");
add("position(purple,above)");
add("speak_active");
add("endtext");
add("nocontrol()");
add("endcutscene()");
add("untilbars()");
add("gamestate(3050)");
}
else if (t == "levelonecompleteskip")
{
add("nocontrol()");
add("gamestate(3050)");
}
else if (t == "bigopenworld")
{
add("play(5)");
add("cutscene()");
add("untilbars()");
add("gotoroom(4,10)");
add("gotoposition(100,177,0)");
add("createcrewman(150,177,purple,0,faceleft)");
//set all the crew as rescued to avoid companion issues!
add("rescued(red)");
add("rescued(green)");
add("rescued(blue)");
add("rescued(yellow)");
add("fadein()");
add("untilfade()");
add("delay(15)");
add("squeak(player)");
add("text(player,0,0,2)");
add("So, Doctor - have you any");
add("idea what caused the crash?");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,3)");
add("There's some sort of bizarre");
add("signal here that's interfering");
add("with our equipment...");
add("position(purple,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,3)");
add("It caused the ship to lose");
add("its quantum position, collapsing");
add("us into this dimension!");
add("position(purple,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(player,1)");
add("text(player,0,0,1)");
add("Oh no!");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,2)");
add("But I think we should be able to fix");
add("the ship and get out of here...");
add("position(purple,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,2)");
add("... as long as we can");
add("find the rest of the crew.");
add("position(purple,above)");
add("speak_active");
add("endtext");
//Cut to Red
add("fadeout()");
add("untilfade()");
add("changeplayercolour(red)");
add("gotoroom(10,4)");
add("gotoposition(200,185,0)");
add("hideplayer()");
add("createcrewman(200,185,red,1,panic)");
add("fadein()");
add("untilfade()");
//add("walk(right,10)");
add("squeak(purple)");
add("text(purple,60,40,2)");
add("We really don't know anything");
add("about this place...");
add("speak_active");
add("endtext");
add("delay(15)");
//Cut to Green
add("fadeout()");
add("untilfade()");
add("showplayer()");
add("changeplayercolour(green)");
add("gotoroom(13,0)");
add("gotoposition(143,20,0)");
add("fadein()");
add("untilfade()");
add("squeak(purple)");
add("text(purple,40,30,2)");
add("Our friends could be anywhere - they");
add("could be lost, or in danger!");
add("speak_active");
add("endtext");
add("delay(15)");
//Cut to Blue
add("fadeout()");
add("untilfade()");
add("changeplayercolour(blue)");
add("gotoroom(3,4)");
add("gotoposition(190,177,0)");
add("fadein()");
add("untilfade()");
add("squeak(player)");
add("text(player,10,60,1)");
add("Can they teleport back here?");
add("speak_active");
add("squeak(purple)");
add("text(purple,50,80,2)");
add("Not unless they find some way");
add("to communicate with us!");
add("speak_active");
add("squeak(purple)");
add("text(purple,30,100,3)");
add("We can't pick up their signal and");
add("they can't teleport here unless");
add("they know where the ship is...");
add("speak_active");
add("endtext");
add("delay(15)");
//Cut to Yellow
add("fadeout()");
add("untilfade()");
add("changeplayercolour(yellow)");
add("gotoroom(15,9)");
//(6*8)-21
add("gotoposition(300,27,0)");
add("hideplayer()");
add("createcrewman(280,25,yellow,1,panic)");
//add("hascontrol()");
//add("walk(left,4)");
add("fadein()");
add("untilfade()");
add("squeak(player)");
add("text(player,25,60,1)");
add("So what do we do?");
add("speak_active");
add("squeak(purple)");
add("text(purple,80,125,4)");
add("We need to find them! Head");
add("out into the dimension and");
add("look for anywhere they might");
add("have ended up...");
add("speak_active");
add("endtext");
add("delay(15)");
//Back to ship
add("fadeout()");
add("untilfade()");
add("showplayer()");
add("missing(red)");
add("missing(green)");
add("missing(blue)");
add("missing(yellow)");
add("changeplayercolour(cyan)");
add("changemood(player,0)");
add("gotoroom(4,10)");
add("gotoposition(90,177,0)");
add("walk(right,2)");
add("createcrewman(150,177,purple,0,faceleft)");
add("fadein()");
add("untilfade()");
add("squeak(player)");
add("text(player,0,0,1)");
add("Ok! Where do we start?");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,2)");
add("Well, I've been trying to find");
add("them with the ship's scanners!");
add("position(purple,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,2)");
add("It's not working, but I did");
add("find something...");
add("position(purple,above)");
add("speak_active");
add("endtext");
add("delay(15)");
add("hidecoordinates(10,4)");
add("hidecoordinates(13,0)");
add("hidecoordinates(3,4)");
add("hidecoordinates(15,9)");
add("showteleporters()");
//Cut to map
//add map mode here and wrap up...
add("gamemode(teleporter)");
add("delay(20)");
add("squeak(terminal)");
add("showtargets()");
add("delay(10)");
add("hidetargets()");
add("delay(10)");
add("showtargets()");
add("delay(10)");
add("hidetargets()");
add("delay(10)");
add("showtargets()");
add("delay(20)");
add("squeak(purple)");
add("text(purple,25,205,2)");
add("These points show up on our scans");
add("as having high energy patterns!");
add("speak_active");
add("endtext");
add("squeak(purple)");
add("text(purple,35,185,4)");
add("There's a good chance they're");
add("teleporters - which means");
add("they're probably built near");
add("something important...");
add("speak_active");
add("squeak(purple)");
add("text(purple,25,205,2)");
add("They could be a very good");
add("place to start looking.");
add("speak_active");
add("endtext");
add("delay(20)");
add("gamemode(game)");
add("delay(20)");
//And finally, back to the ship!
add("squeak(player)");
add("text(player,0,0,2)");
add("Ok! I'll head out and see");
add("what I can find!");
add("position(player,above)");
add("speak_active");
add("squeak(purple)");
add("text(purple,0,0,2)");
add("I'll be right here if");
add("you need any help!");
add("position(purple,above)");
add("speak_active");
add("endtext");
add("rescued(purple)");
add("play(4)");
add("endcutscene()");
add("untilbars()");
add("hascontrol()");
add("createactivityzone(purple)");
}
else if (t == "bigopenworldskip")
{
add("gotoroom(4,10)");
add("gotoposition(100,177,0)");
add("createcrewman(150,177,purple,0,faceleft)");
add("fadein()");
add("untilfade()");
add("hidecoordinates(10,4)");
add("hidecoordinates(13,0)");
add("hidecoordinates(3,4)");
add("hidecoordinates(15,9)");
add("showteleporters()");
//Cut to map
//add map mode here and wrap up...
add("gamemode(teleporter)");
add("delay(20)");
add("squeak(terminal)");
add("showtargets()");
add("delay(10)");
add("hidetargets()");
add("delay(10)");
add("showtargets()");
add("delay(10)");
add("hidetargets()");
add("delay(10)");
add("showtargets()");
add("delay(20)");
add("gamemode(game)");
add("delay(20)");
//And finally, back to the ship!
add("squeak(purple)");
add("text(purple,0,0,2)");
add("I'll be right here if");
add("you need any help!");
add("position(purple,above)");
add("speak_active");
add("endtext");
add("rescued(purple)");
add("play(4)");
add("endcutscene()");
add("untilbars()");
add("hascontrol()");
add("createactivityzone(purple)");
}
else if (t == "rescueblue")
{
add("ifskip(skipblue)");
add("cutscene()");
add("tofloor()");
add("changeai(blue,followplayer)");
add("untilbars()");
add("rescued(blue)");
add("squeak(blue)");
add("text(blue,0,0,2)");
add("Oh no! Captain! Are you");
add("stuck here too?");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("It's ok - I'm here to rescue you!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Let me explain everything...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("fadeout()");
add("untilfade()");
add("delay(30)");
add("fadein()");
add("untilfade()");
add("squeak(cry)");
add("text(blue,0,0,2)");
add("What? I didn't understand");
add("any of that!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Oh... well, don't worry.");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("Follow me! Everything");
add("will be alright!");
add("position(player,above)");
add("speak_active");
add("squeak(blue)");
add("changemood(blue,0)");
add("text(blue,0,0,1)");
add("Sniff... Really?");
add("position(blue,above)");
add("speak_active");
add("squeak(blue)");
add("text(blue,0,0,1)");
add("Ok then!");
add("position(blue,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
add("companion(8)");
add("setcheckpoint()");
}
else if (t == "skipblue")
{
add("changeai(blue,followplayer)");
add("squeak(blue)");
add("changemood(blue,0)");
add("companion(8)");
add("rescued(blue)");
add("setcheckpoint()");
}
else if (t == "rescueyellow")
{
add("ifskip(skipyellow)");
add("cutscene()");
add("changeai(yellow,followplayer)");
add("changetile(yellow,6)");
add("untilbars()");
add("rescued(yellow)");
add("squeak(yellow)");
add("text(yellow,0,0,2)");
add("Ah, Viridian! You got off");
add("the ship alright too? ");
add("position(yellow,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("It's good to see you're");
add("alright, Professor!");
add("position(player,above)");
add("speak_active");
add("squeak(yellow)");
add("text(yellow,0,0,1)");
add("Is the ship ok?");
add("position(yellow,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("It's badly damaged, but Violet's");
add("been working on fixing it.");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("We could really use your help...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("fadeout()");
add("untilfade()");
add("delay(30)");
add("fadein()");
add("untilfade()");
add("squeak(yellow)");
add("text(yellow,0,0,1)");
add("Ah, of course!");
add("position(yellow,above)");
add("speak_active");
add("squeak(yellow)");
add("text(yellow,0,0,4)");
add("The background interference");
add("in this dimension prevented");
add("the ship from finding a");
add("teleporter when we crashed!");
add("position(yellow,above)");
add("speak_active");
add("squeak(yellow)");
add("text(yellow,0,0,2)");
add("We've all been teleported");
add("to different locations!");
add("position(yellow,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Er, that sounds about right!");
add("position(player,above)");
add("speak_active");
add("squeak(yellow)");
add("text(yellow,0,0,2)");
add("Let's get back to");
add("the ship, then!");
add("position(yellow,above)");
add("speak_active");
add("squeak(yellow)");
add("text(yellow,0,0,1)");
add("After you, Captain!");
add("position(yellow,above)");
add("speak_active");
add("endtext");
add("companion(7)");
add("endcutscene()");
add("untilbars()");
}
else if (t == "skipyellow")
{
add("changeai(yellow,followplayer)");
add("changetile(yellow,6)");
add("squeak(yellow)");
add("rescued(yellow)");
add("companion(7)");
}
else if (t == "rescuegreen")
{
add("ifskip(skipgreen)");
add("cutscene()");
add("tofloor()");
add("changemood(green,0)");
add("untilbars()");
add("rescued(green)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Captain! I've been so worried!");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Chief Verdigris! You're ok!");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(green,1)");
add("text(green,0,0,2)");
add("I've been trying to get out, but");
add("I keep going around in circles...");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("I've come from the ship. I'm here");
add("to teleport you back to it.");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,2)");
add("Is everyone else");
add("alright? Is Violet...");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("She's fine - she's back on the ship!");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("changemood(green,0)");
add("text(green,0,0,2)");
add("Oh! Great - Let's");
add("get going, then!");
add("position(green,above)");
add("speak_active");
add("endtext");
add("companion(6)");
add("endcutscene()");
add("untilbars()");
add("changeai(green,followplayer)");
}
else if (t == "skipgreen")
{
add("changeai(green,followplayer)");
add("squeak(green)");
add("rescued(green)");
add("changemood(green,0)");
add("companion(6)");
}
else if (t == "rescuered")
{
add("ifskip(skipred)");
add("cutscene()");
add("tofloor()");
add("changemood(red,0)");
add("untilbars()");
add("rescued(red)");
add("squeak(red)");
add("text(red,0,0,1)");
add("Captain!");
add("position(red,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,3)");
add("Am I ever glad to see you!");
add("I thought I was the only");
add("one to escape the ship...");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Vermilion! I knew you'd be ok!");
add("position(player,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,1)");
add("So, what's the situation?");
add("position(red,above)");
add("speak_active");
add("endtext");
add("fadeout()");
add("untilfade()");
add("delay(30)");
add("fadein()");
add("untilfade()");
add("squeak(red)");
add("text(red,0,0,2)");
add("I see! Well, we'd better");
add("get back then.");
add("position(red,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,2)");
add("There's a teleporter");
add("in the next room.");
add("position(red,above)");
add("speak_active");
add("endtext");
add("companion(9)");
add("endcutscene()");
add("untilbars()");
add("changeai(red,followplayer)");
}
else if (t == "skipred")
{
add("changeai(red,followplayer)");
add("squeak(red)");
add("rescued(red)");
add("changemood(red,0)");
add("companion(9)");
}
else if (t == "startexpolevel_station1")
{
//For the Eurogamer EXPO! Scrap later.
add("fadeout()");
add("musicfadeout()");
add("untilfade()");
add("cutscene()");
add("untilbars()");
add("resetgame");
add("gotoroom(4,10)");
add("gotoposition(232,113,0)");
add("setcheckpoint()");
add("changedir(player,1)");
add("fadein()");
add("play(5)");
add("loadscript(intro)");
}
else if (t == "startexpolevel_lab")
{
//For the Eurogamer EXPO! Scrap later.
add("fadeout()");
add("musicfadeout()");
add("untilfade()");
add("delay(30)");
add("resetgame");
add("gotoroom(2,16)");
add("gotoposition(58,193,0)");
add("setcheckpoint()");
add("changedir(player,1)");
add("fadein()");
add("stopmusic()");
add("play(3)");
}
else if (t == "startexpolevel_warp")
{
//For the Eurogamer EXPO! Scrap later.
add("fadeout()");
add("musicfadeout()");
add("untilfade()");
add("delay(30)");
add("resetgame");
add("gotoroom(14,1)");
add("gotoposition(45,73,0)");
add("setcheckpoint()");
add("changedir(player,1)");
add("fadein()");
add("stopmusic()");
add("play(3)");
}
else if (t == "startexpolevel_tower")
{
//For the Eurogamer EXPO! Scrap later.
add("fadeout()");
add("musicfadeout()");
add("untilfade()");
add("delay(30)");
add("resetgame");
add("gotoroom(8,9)");
add("gotoposition(95,193,0)");
add("setcheckpoint()");
add("changedir(player,1)");
add("fadein()");
add("stopmusic()");
add("play(2)");
}
else if (t == "skipint1")
{
add("finalmode(41,56)");
add("gotoposition(52,89,0)");
add("changedir(player,1)");
add("setcheckpoint()");
add("delay(15)");
add("flash(5)");
add("shake(20)");
add("playef(9,10)");
add("showplayer()");
add("play(8)");
add("hascontrol()");
add("befadein()");
}
else if (t == "intermission_1")
{
add("ifskip(skipint1)");
add("finalmode(41,56)");
add("gotoposition(52,89,0)");
add("changedir(player,1)");
add("setcheckpoint()");
add("cutscene()");
add("delay(15)");
add("flash(5)");
add("shake(20)");
add("playef(9,10)");
add("delay(35)");
add("flash(5)");
add("shake(20)");
add("playef(9,10)");
add("delay(25)");
add("flash(5)");
add("shake(20)");
add("playef(10,10)");
add("showplayer()");
add("play(8)");
add("befadein()");
add("iflast(2,int1yellow_1)");
add("iflast(3,int1red_1)");
add("iflast(4,int1green_1)");
add("iflast(5,int1blue_1)");
}
else if (t == "int1blue_1")
{
add("delay(45)");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("Waaaa!");
add("position(blue,above)");
add("speak_active");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(blue)");
add("text(blue,0,0,1)");
add("Captain! Are you ok?");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("I'm ok... this...");
add("this isn't the ship...");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Where are we?");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("Waaaa!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("Something's gone wrong... We");
add("should look for a way back!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("telesave()");
add("endcutscene()");
add("untilbars()");
add("gamestate(14)");
}
else if (t == "int1blue_2")
{
add("cutscene()");
add("untilbars()");
add("squeak(player)");
add("text(player,0,0,1)");
add("Follow me! I'll help you!");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("Promise you won't leave without me!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("I promise! Don't worry!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
add("gamestate(11)");
}
else if (t == "int1blue_3")
{
add("cutscene()");
add("untilbars()");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(player)");
add("text(player,0,0,1)");
add("Are you ok down there, Doctor?");
add("position(player,below)");
add("speak_active");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("I wanna go home!");
add("position(blue,above)");
add("speak_active");
add("squeak(blue)");
add("text(blue,0,0,2)");
add("Where are we? How did");
add("we even get here?");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,4)");
add("Well, Violet did say that the");
add("interference in the dimension");
add("we crashed in was causing");
add("problems with the teleporters...");
add("position(player,below)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("I guess something went wrong...");
add("position(player,below)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,3)");
add("But if we can find another");
add("teleporter, I think we can");
add("get back to the ship!");
add("position(player,below)");
add("speak_active");
add("squeak(blue)");
add("text(blue,0,0,1)");
add("Sniff...");
add("position(blue,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1blue_4")
{
add("cutscene()");
add("untilbars()");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("Captain! Captain! Wait for me!");
add("position(blue,above)");
add("speak_active");
add("squeak(blue)");
add("text(blue,0,0,2)");
add("Please don't leave me behind!");
add("I don't mean to be a burden!");
add("position(blue,above)");
add("speak_active");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("I'm scared!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("Oh... don't worry Victoria,");
add("I'll look after you!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1blue_5")
{
add("cutscene()");
add("untilbars()");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(cry)");
add("text(blue,0,0,2)");
add("We're never going to get");
add("out of here, are we?");
add("position(blue,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(player,1)");
add("text(player,0,0,1)");
add("I.. I don't know...");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("text(player,0,0,2)");
add("I don't know where we are or");
add("how we're going to get out...");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1blue_6")
{
add("cutscene()");
add("untilbars()");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("We're going to be lost forever!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("changemood(player,0)");
add("text(player,0,0,2)");
add("Ok, come on... Things");
add("aren't that bad.");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("I have a feeling that");
add("we're nearly home!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("We can't be too far");
add("from another teleporter!");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("text(blue,0,0,1)");
add("I hope you're right, captain...");
add("position(blue,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1blue_7")
{
add("cutscene()");
add("untilbars()");
add("face(player,blue)");
add("face(blue,player)");
add("squeak(blue)");
add("text(blue,0,0,2");
add("Captain! You were right!");
add("It's a teleporter!");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("changemood(player,0)");
add("text(player,0,0,3)");
add("Phew! You had me worried for a");
add("while there... I thought we");
add("were never going to find one.");
add("position(player,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(blue,1)");
add("text(blue,0,0,1");
add("What? Really?");
add("position(blue,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("Anyway, let's go");
add("back to the ship.");
add("position(player,above)");
add("speak_active");
add("changemood(blue,0)");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1green_1")
{
add("delay(45)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Huh? This isn't the ship...");
add("position(green,above)");
add("speak_active");
add("face(player,green)");
add("face(green,player)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Captain! What's going on?");
add("position(green,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(player,1");
add("text(player,0,0,1)");
add("I... I don't know!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Where are we?");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,3)");
add("Uh oh, this isn't good...");
add("Something must have gone");
add("wrong with the teleporter!");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("changemood(player,0");
add("text(player,0,0,1)");
add("Ok... no need to panic!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("changemood(player,0");
add("text(player,0,0,1)");
add("Let's look for another teleporter!");
add("There's bound to be one around");
add("here somewhere!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("telesave()");
add("endcutscene()");
add("untilbars()");
add("gamestate(14)");
}
else if (t == "int1green_2")
{
add("cutscene()");
add("untilbars()");
add("squeak(player)");
add("text(player,0,0,1)");
add("Let's go this way!");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,1)");
add("After you, Captain!");
add("position(green,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
add("gamestate(11)");
}
else if (t == "int1green_3")
{
add("cutscene()");
add("untilbars()");
add("face(player,green)");
add("face(green,player)");
add("squeak(green)");
add("text(green,0,0,2)");
add("So Violet's back on the");
add("ship? She's really ok?");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("She's fine! She helped");
add("me find my way back!");
add("position(player,below)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,1)");
add("Oh, phew! I was worried about her.");
add("position(green,above)");
add("speak_active");
add("endtext");
add("delay(45)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Captain, I have a secret...");
add("position(green,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(green,1)");
add("text(green,0,0,1)");
add("I really like Violet!");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Is that so?");
add("position(player,below)");
add("speak_active");
add("squeak(green)");
add("changemood(green,0)");
add("text(green,0,0,2)");
add("Please promise you");
add("won't tell her!");
add("position(green,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1green_4")
{
add("cutscene()");
add("untilbars()");
add("face(player,green)");
add("face(green,player)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Hey again!");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Hey!");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Are you doing ok?");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,3)");
add("I think so! I really");
add("hope we can find a way");
add("back to the ship...");
add("position(green,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1green_5")
{
add("cutscene()");
add("untilbars()");
add("face(player,green)");
add("face(green,player)");
add("squeak(green)");
add("text(green,0,0,1)");
add("So, about Violet...");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Um, yeah?");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,1)");
add("Do you have any advice?");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Oh!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("delay(45)");
add("squeak(player)");
add("text(player,0,0,1)");
add("Hmm...");
add("position(player,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Um... you should... be yourself!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("delay(15)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Oh.");
add("position(green,above)");
add("speak_active");
add("endtext");
add("delay(75)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Thanks Captain!");
add("position(green,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1green_6")
{
add("cutscene()");
add("untilbars()");
add("face(player,green)");
add("face(green,player)");
add("squeak(player)");
add("text(player,0,0,2)");
add("So, do you think you'll");
add("be able to fix the ship?");
add("position(player,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,2)");
add("Depends on how bad it ");
add("is... I think so, though!");
add("position(green,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,5)");
add("It's not very hard, really. The");
add("basic dimensional warping engine");
add("design is pretty simple, and if we");
add("can get that working we shouldn't");
add("have any trouble getting home.");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Oh! Good!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1green_7")
{
add("cutscene()");
add("untilbars()");
add("face(player,green)");
add("face(green,player)");
add("squeak(green)");
add("text(green,0,0,1)");
add("Finally! A teleporter!");
add("position(green,above)");
add("speak_active");
add("squeak(green)");
add("text(green,0,0,2)");
add("I was getting worried");
add("we wouldn't find one...");
add("position(green,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Let's head back to the ship!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1red_1")
{
add("cutscene()");
add("untilbars()");
add("squeak(red)");
add("text(red,0,0,1)");
add("Wow! Where are we?");
add("position(red,above)");
add("speak_active");
add("squeak(cry)");
add("changemood(player,1)");
add("text(player,0,0,3)");
add("This... isn't right...");
add("Something must have gone");
add("wrong with the teleporter!");
add("position(player,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,3)");
add("Oh well... We can work");
add("it out when we get");
add("back to the ship!");
add("position(red,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,1)");
add("Let's go exploring!");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("changemood(player,0)");
add("text(player,0,0,1)");
add("Ok then!");
add("position(player,above)");
add("speak_active");
add("endtext");
add("telesave()");
add("endcutscene()");
add("untilbars()");
add("gamestate(14)");
}
else if (t == "int1red_2")
{
add("cutscene()");
add("untilbars()");
add("face(player,red)");
add("face(red,player)");
add("squeak(player)");
add("text(player,0,0,1)");
add("Follow me!");
add("position(player,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,1)");
add("Aye aye, Captain!");
add("position(red,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
add("gamestate(11)");
}
else if (t == "int1red_3")
{
add("cutscene()");
add("untilbars()");
add("face(player,red)");
add("face(red,player)");
add("squeak(red)");
add("text(red,0,0,2)");
add("Hey Viridian... how did");
add("the crash happen, exactly?");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("Oh, I don't really know -");
add("some sort of interference...");
add("position(player,below)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("...or something sciencey like");
add("that. It's not really my area.");
add("position(player,below)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,3)");
add("Ah! Well, do you think");
add("we'll be able to fix");
add("the ship and go home?");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("Of course! Everything will be ok!");
add("position(player,below)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1red_4")
{
add("cutscene()");
add("untilbars()");
add("face(player,red)");
add("face(red,player)");
add("squeak(red)");
add("text(red,0,0,1)");
add("Hi again! You doing ok?");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,2)");
add("I think so! But I really want");
add("to get back to the ship...");
add("position(player,above)");
add("speak_active");
add("squeak(red)");
add("text(red,0,0,3)");
add("We'll be ok! If we can find");
add("a teleporter somewhere we");
add("should be able to get back!");
add("position(red,above)");
add("speak_active");
add("endtext");
add("endcutscene()");
add("untilbars()");
}
else if (t == "int1red_5")
{
add("cutscene()");
add("untilbars()");
add("face(player,red)");
add("face(red,player)");
add("squeak(red)");
add("text(red,0,0,1)");
add("Are we there yet?");
add("position(red,above)");
add("speak_active");
add("squeak(player)");
add("text(player,0,0,1)");
add("We're getting closer, I think...");
add("position(player,above)");