Section 1
//bg_3 (tm_fla.bg_3)
package tm_fla {
import flash.display.*;
public dynamic class bg_3 extends MovieClip {
public function bg_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tm_fla
Section 2
//ghost1_4 (tm_fla.ghost1_4)
package tm_fla {
import flash.display.*;
public dynamic class ghost1_4 extends MovieClip {
public function ghost1_4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tm_fla
Section 3
//kelseySprite_6 (tm_fla.kelseySprite_6)
package tm_fla {
import flash.display.*;
public dynamic class kelseySprite_6 extends MovieClip {
public function kelseySprite_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tm_fla
Section 4
//laverneSprite_7 (tm_fla.laverneSprite_7)
package tm_fla {
import flash.display.*;
public dynamic class laverneSprite_7 extends MovieClip {
public function laverneSprite_7(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package tm_fla
Section 5
//MainTimeline (tm_fla.MainTimeline)
package tm_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var hpRight:TextField;
public var emmaSprite:MovieClip;
public var btnHelp:MovieClip;
public var btnEye:MovieClip;
public var btnEnter:MovieClip;
public var blackLayer:MovieClip;
public var btnIntroStart:introStartButton;
public var textCommand:TextField;
public var infoText:TextField;
public var locText:TextField;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var hpLeft:TextField;
public var frame:MovieClip;
public var ghost1:MovieClip;
public var bg:MovieClip;
public var ghost2:MovieClip;
public var laverneSprite:MovieClip;
public var textBox:MovieClip;
public var txtBackpack:TextField;
public var kelseySprite:MovieClip;
public var txtDebug:TextField;
public var iLoc;
public var iPhase;
public var strNoun;
public var strVerb;
public var strOrigNoun;
public var strOrigVerb;
public var bSilverAquired;
public var iBottle;
public var bCombat;
public var hp1;
public var hp2;
public var emmaLoc;
public var arrBodyLocs:Array;
public var arrWays:Array;
public var myInterval;
public var bBranch;
public var bRock;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
var _local2:* = this.loaderInfo.url;
var _local3:* = false;
if (_local2.search("file:") != -1){
_local3 = true;
};
if (_local2.search("deviantart.net") != -1){
_local3 = true;
};
if (_local3 == true){
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
};
}
public function startGame(_arg1:MouseEvent):void{
gotoAndStop(2);
}
public function mouseClicked(_arg1:MouseEvent):void{
if (_arg1.target.name == "btnEye"){
if (kelseySprite.alpha == 1){
kelseySprite.alpha = 0;
doLook();
} else {
kelseySprite.alpha = 1;
typeText("");
};
} else {
if (_arg1.target.name == "btnHelp"){
doHelp();
kelseySprite.alpha = 1;
} else {
if (_arg1.target.name == "btnEnter"){
typeText("");
blackLayer.x = 600;
if (infoText.text == "Nothing happens!"){
infoText.text = "";
};
handleCommands();
} else {
if ((((_arg1.target.name == "textBox")) || ((_arg1.target.name == "txt")))){
typeText("");
};
};
};
};
}
public function updateLoc(_arg1):void{
iLoc = _arg1;
ghost1.x = 600;
ghost2.x = 600;
emmaSprite.x = 600;
laverneSprite.x = 600;
if (iLoc == 0){
bg.gotoAndStop(1);
locText.text = "Kelsey's Lair";
typeInfo("You're in your new lair. Home sweet home!");
} else {
if (iLoc == 1){
bg.gotoAndStop(2);
locText.text = "Park";
typeInfo("You're in the park. Lots of stones and twigs.");
if ((((iPhase > 3)) && ((iPhase < 9)))){
laverneSprite.x = 392;
};
} else {
if (iLoc == 2){
bg.gotoAndStop(3);
locText.text = "Jen's Villa";
typeInfo("This is where you live with Jen and Amanda.");
} else {
if (iLoc == 3){
bg.gotoAndStop(4);
locText.text = "Antique Shop";
typeInfo("A shop with old valuable stuff. Or just old stuff.");
} else {
if (iLoc == 4){
bg.gotoAndStop(5);
locText.text = "School Gate";
typeInfo("A gate to the shool, with remarkable sign.");
} else {
if (iLoc == 5){
if (iPhase < 13){
bg.gotoAndStop(6);
} else {
if (iPhase < 16){
bg.gotoAndStop(7);
} else {
bg.gotoAndStop(8);
};
};
locText.text = "Main Hall";
if (iPhase < 16){
typeInfo("The school entry hall had a huge painting.");
} else {
typeInfo("The painting has been restored. Happy ghosts!");
};
} else {
if (iLoc == 6){
if (iPhase < 18){
bg.gotoAndStop(13);
} else {
if (iPhase < 20){
bg.gotoAndStop(14);
} else {
bg.gotoAndStop(15);
};
};
locText.text = "Second Hall";
if (iPhase < 18){
typeInfo("Something's missing from the award gallery!");
} else {
typeInfo("The award gallery is complete again! Good!");
};
} else {
if (iLoc == 7){
bg.gotoAndStop(9);
locText.text = "Class Room";
typeInfo("This is just any other class room.");
} else {
if (iLoc == 8){
if (iPhase == 8){
iPhase = 9;
typeText("Oh my! Through laughter Amanda tells the school is haunted because of it.");
};
if (iPhase < 16){
bg.gotoAndStop(12);
typeInfo("Am's being tickled in the Principal's office.");
} else {
bg.gotoAndStop(11);
typeInfo("The Principal's office: where punishment awaits!");
};
locText.text = "Principal's Office";
} else {
if (iLoc == 9){
if (iPhase < 20){
bg.gotoAndStop(10);
typeInfo("You love this sight! Jen tickled senseless!");
} else {
bg.gotoAndStop(16);
textCommand.y = 1000;
textCommand.alpha = 0;
btnEnter.y = 1000;
btnEnter.alpha = 0;
btnHelp.y = 1000;
btnHelp.alpha = 0;
typeInfo("You were successful! Game Over!");
typeText("You succeeded in freeing Amanda and Jen from the tickle torture and Emma got what she deserves!");
};
locText.text = "Class Room";
} else {
if (iLoc == 10){
bg.gotoAndStop(9);
locText.text = "Class Room";
typeInfo("Another regular class room.");
};
};
};
};
};
};
};
};
};
};
};
kelseySprite.alpha = 1;
if ((((iLoc == emmaLoc)) && ((iPhase == 18)))){
typeText("You suddenly run into Emma! With the golden tickle award! It was her all along who was behind all this! En Garde!");
emmaSprite.x = 265;
hp1 = 10;
hp2 = 14;
bCombat = true;
};
if ((((((((iPhase > 8)) && ((iPhase < 20)))) && ((iLoc > 3)))) && ((Math.floor((Math.random() * 3)) == 0)))){
createCombat();
};
}
public function createEncounter():void{
}
public function handleCommands():void{
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
strNoun = "";
strVerb = "";
var _local1:* = textCommand.text.toLowerCase();
strVerb = extractVerb(_local1);
strNoun = extractNoun(_local1);
textCommand.text = "";
if (strVerb == "help"){
doHelp();
} else {
if (strVerb == "look"){
doLook();
} else {
if (strNoun == "north"){
if (iLoc == 0){
updateLoc(1);
} else {
if (iLoc == 1){
updateLoc(4);
} else {
if ((((iLoc == 3)) || ((iLoc == 2)))){
typeText("You could technically go North, but there is no reason. You have other things on your mind.");
} else {
if (iLoc == 4){
if (iPhase < 4){
typeText("This is the local school. The gate is closed and you don't have a reason to go there in the first place.");
} else {
if (iPhase < 8){
if (iPhase == 4){
typeText("Damn! I can't go in here without a school uniform... I have to get one. That camera checks me out.");
iPhase = 5;
} else {
typeText("This is the local school. A sign reads that you're not allowed inside without appropriate outfit. A camera keeps guard.");
};
} else {
updateLoc(5);
};
};
} else {
if (iLoc == 5){
if (iPhase < 16){
typeText("The second hallway is blocked by angry ghosts. They scream that they want their painting back! Or else...!");
} else {
updateLoc(6);
};
} else {
typeText("You cannot go to the North from here, you'd walk into a wall.");
};
};
};
};
};
} else {
if (strNoun == "east"){
if (iLoc == 1){
updateLoc(2);
if (iPhase < 4){
if (iPhase == 0){
iPhase = 1;
};
typeText("This is Jen's villa... Strange, nobody seems to be home and I forgot my key! What now?");
} else {
if (bCombat == false){
typeText("This is Jen's villa. The window is broken. (whistles innocently...)");
};
};
} else {
if (iLoc == 3){
updateLoc(1);
} else {
if (iLoc == 7){
updateLoc(5);
} else {
if (iLoc == 9){
updateLoc(6);
} else {
if (iLoc == 5){
updateLoc(8);
} else {
if (iLoc == 6){
updateLoc(10);
} else {
if ((((iLoc == 2)) || ((iLoc == 4)))){
typeText("You could go further East, but there's nothing of interest in that direction.");
} else {
typeText("You can't walk through walls; you can't go further East.");
};
};
};
};
};
};
};
} else {
if (strNoun == "south"){
if (iLoc == 6){
updateLoc(5);
} else {
if (iLoc == 5){
updateLoc(4);
} else {
if (iLoc == 4){
updateLoc(1);
} else {
if (iLoc == 1){
updateLoc(0);
if (iPhase == 1){
typeText("Where is Jen? Where's Am? Maybe I should look for them. My back pack will come in useful for this. I should pick it up.");
};
} else {
if ((((iLoc == 3)) || ((iLoc == 2)))){
typeText("Basically you could go South from here, but you have no reason to travel in that direction.");
} else {
typeText("The way South is blocked. There's only a wall in that direction.");
};
};
};
};
};
} else {
if (strNoun == "west"){
if (iLoc == 2){
updateLoc(1);
} else {
if (iLoc == 1){
updateLoc(3);
} else {
if (iLoc == 5){
updateLoc(7);
} else {
if (iLoc == 6){
updateLoc(9);
} else {
if (iLoc == 2){
updateLoc(9);
} else {
if (iLoc == 8){
updateLoc(5);
} else {
if (iLoc == 10){
updateLoc(6);
} else {
if ((((iLoc == 3)) || ((iLoc == 4)))){
typeText("You could go further West, but there's nothing of interest in that direction.");
} else {
typeText("You can't walk through walls; you can't go further West.");
};
};
};
};
};
};
};
};
} else {
if (strVerb == "pick up"){
if ((((((strNoun == "back pack")) && ((iPhase == 1)))) && ((iLoc == 0)))){
iPhase = 2;
kelseySprite.gotoAndStop(2);
typeText((((("I " + strVerb) + " the ") + strNoun) + ". Once equipped, you can start on your trek!"));
} else {
if ((((strNoun == "rock")) && ((iLoc == 1)))){
if (iPhase < 2){
typeText("I don't have a place to put it and I don't want to hold it in my hands all the time!");
} else {
if (bRock == true){
typeText("No, I already have one, don't want too much weight in my pack!");
} else {
if (bBranch == true){
typeText("No, I already have a branch, no need to increase my pack's weight too much!");
} else {
bRock = true;
typeText((("You pick up a " + strNoun) + " and put it into your pack."));
txtBackpack.text = "Rock";
if (iPhase < 3){
iPhase = 3;
};
};
};
};
} else {
if ((((strNoun == "branch")) && ((iLoc == 1)))){
if (iPhase < 2){
typeText("I don't have a place to put it and I don't want to hold it in my hands all the time!");
} else {
if (bBranch == true){
typeText("No, I already have one, don't want too much weight in my pack!");
} else {
if (bRock == true){
typeText("No, I already have a rock, no need to increase my pack's weight too much!");
} else {
bBranch = true;
typeText((("You pick up a " + strNoun) + " and put it into your pack."));
txtBackpack.text = "Branch";
if (iPhase < 3){
iPhase = 3;
};
};
};
};
} else {
if ((((((strNoun == "bottle")) && ((iLoc == 2)))) && ((iBottle == 0)))){
iBottle = 1;
typeText("You pick up the bottle of booze.");
addBackpack("Booze bottle");
iPhase = 6;
} else {
if ((((((strNoun == "clothes")) && ((iLoc == 1)))) && ((laverneSprite.x < 600)))){
if (iPhase == 7){
iPhase = 8;
laverneSprite.gotoAndStop(3);
kelseySprite.gotoAndStop(3);
typeText("You take Laverne's school uniform and put it on. Great, it's your size and your ticket into the school building!");
} else {
if (laverneSprite.currentFrame == 1){
typeText("You can't just do that! She'll object!");
} else {
typeText("You can't do that.");
};
};
} else {
if ((((((strNoun == "vase")) && ((iLoc == 2)))) && ((iPhase == 9)))){
typeText("You pick up Jen's ancient vase. You think it is a repulsive piece of crap you wouldn't mind her getting rid of...");
addBackpack("Ugly old vase");
iPhase = 10;
} else {
if ((((((strNoun == "painting")) && ((iPhase == 11)))) && ((iLoc == 3)))){
typeText("You can't just pick this up, it is now part of the shop's wares.");
} else {
if ((((((strNoun == "painting")) && ((iPhase == 14)))) && ((iLoc == 2)))){
iPhase = 15;
addBackpack("Painting part");
typeText("You pick up the last part of the painting. But who really put that here, in Jen's house...?");
} else {
if ((((((((strNoun == "award")) && ((iLoc == 7)))) && ((iPhase == 17)))) && ((bSilverAquired == false)))){
bSilverAquired = true;
typeText("You pick up the 'Tickle Award, second price' from the ground.");
addBackpack("Silver award");
ghost1.x = 363;
ghost2.x = 258;
ghost1.gotoAndStop(1);
ghost2.gotoAndStop(2);
hp1 = 10;
hp2 = 15;
bCombat = true;
};
};
};
};
};
};
};
};
};
} else {
if ((((((((strVerb == "use")) || ((strVerb == "throw")))) && ((iLoc == 2)))) && ((((bBranch == true)) || ((bRock == true)))))){
if (iPhase == 3){
if ((((((strNoun == "window")) || ((strNoun == "rock")))) || ((strNoun == "branch")))){
typeText("Kelsey breaks the window. Inside she finds a quickly scribbled note on the table...");
bBranch = false;
bRock = false;
txtBackpack.text = "";
iPhase = 4;
} else {
typeText("I don't know, that doesn't sound like a good plan.");
};
} else {
typeText("I don't need to do that anymore, I already broke the window");
};
} else {
if ((((((((strVerb == "read")) && ((strNoun == "note")))) && ((iLoc == 2)))) && ((iPhase > 3)))){
typeText("The note reads that Jen and Am have been kidnapped and taken to the school! where they are to be tortured!");
} else {
if ((((((strVerb == "drink")) && ((strNoun == "bottle")))) && ((iBottle == 1)))){
typeText("No! I don't want to get drunk! What do you take me for, I'm not that desperate! I have to go save Jen instead!");
} else {
if ((((((strVerb == "give")) && ((strNoun == "bottle")))) && ((iBottle == 1)))){
if (iLoc == 3){
typeText("The antiquair doesn't want to have this bottle. He wants me to get out of his shop with that stuff.");
} else {
if (iLoc == 0){
typeText("The people in the cocoons don't need the booze. I'll keep it for myself.");
} else {
if ((((iLoc == 1)) && ((iPhase == 6)))){
iPhase = 7;
iBottle = 99;
addBackpack("");
laverneSprite.gotoAndStop(2);
typeText("Laverne takes the bottle of booze and gulps it all down in one go, then passes out.");
};
};
};
} else {
if ((((((strVerb == "give")) && ((strNoun == "vase")))) && ((iPhase == 10)))){
if (iLoc == 0){
typeText("I don't want to put that ugly old vase in my lair! Nor give it to any of these poor sods.");
} else {
if (iLoc == 3){
typeText("I don't want to just give this vase away! It's old and I don't like it, but I need monies!");
} else {
if (iLoc == 8){
typeText("Amanda looks concerned. She doesn't want this vase and hopes you have a much better idea than that!");
};
};
};
} else {
if ((((((((strVerb == "sell")) && ((strNoun == "vase")))) && ((iPhase == 10)))) && ((iLoc == 3)))){
iPhase = 11;
addBackpack("Monies");
typeText("You sell the ugly old vase for quite a nice price. Well, nice for such an old piece of crap. Now you have monies!");
} else {
if ((((((((strVerb == "buy")) && ((strNoun == "painting")))) && ((iPhase == 11)))) && ((iLoc == 3)))){
iPhase = 12;
addBackpack("Painting part");
typeText("You pay the monies to the antiquaire and receive the painting part!");
} else {
if ((((((((strVerb == "fix")) && ((strNoun == "painting")))) && ((iPhase == 12)))) && ((iLoc == 5)))){
iPhase = 13;
addBackpack("");
typeText("You place the painting part into the frame, but... there's another part missing!");
bg.gotoAndStop(7);
} else {
if ((((((((strVerb == "fix")) && ((strNoun == "painting")))) && ((iPhase == 15)))) && ((iLoc == 5)))){
iPhase = 16;
addBackpack("");
typeText("You place the last part of the painting into the frame. You hear ghosts cheering. Amanda should be free! But where is Jen?");
bg.gotoAndStop(8);
} else {
if ((((((strVerb == "ask")) && ((strNoun == "laverne")))) && ((laverneSprite.x < 600)))){
if (iPhase < 7){
typeText("Laverne notices you, but she ignores you. Seems you don't have anything to offer that she would want.");
} else {
typeText("Laverne has passed out... there's nothing to talk about with her!");
};
} else {
if ((((((strVerb == "ask")) && ((strNoun == "amanda")))) && ((iLoc == 8)))){
if (iPhase < 13){
typeText("Amanda speaks of a painting, through all her laughter. Something about ghosts torturing her because of it.");
} else {
if (iPhase < 16){
typeText("Amanda tells me, through her laughter, that she has seen a painting part at home, in the storage. Why would it be there?");
if (iPhase == 13){
iPhase = 14;
};
} else {
typeText("");
};
};
} else {
if ((((((((strVerb == "ask")) && ((strNoun == "jen")))) && ((iLoc == 9)))) && ((iPhase < 20)))){
typeText("Jen laughs hysterically and you hear ghostly voices say 'bring back the tickle awwarrrds! bring them baaaaack!'");
if (iPhase == 16){
iPhase = 17;
};
} else {
if ((((((((((strVerb == "fix")) && ((strNoun == "award")))) && ((iPhase == 17)))) && ((iLoc == 6)))) && ((bSilverAquired == true)))){
iPhase = 18;
addBackpack("");
typeText("You place the silver tickle award into the display. There's still one missing.");
bg.gotoAndStop(14);
} else {
if ((((((((strVerb == "fix")) && ((strNoun == "award")))) && ((iPhase == 19)))) && ((iLoc == 6)))){
iPhase = 20;
addBackpack("");
typeText("You place the golden tickle award into the display. This should do it! Let's go check on Jen!");
bg.gotoAndStop(15);
} else {
if ((((((strVerb == "tickle")) && ((strNoun == "ghost")))) && ((bCombat == true)))){
kelseySprite.alpha = 1;
_local2 = Math.ceil((Math.random() * 4));
_local3 = Math.ceil((Math.random() * 3));
if (ghost1.currentFrame == 2){
_local3 = (Math.ceil((Math.random() * 3)) + 1);
};
if (emmaSprite.x < 600){
_local3 = Math.ceil((Math.random() * 3));
if ((((strOrigNoun == "ears")) || ((strOrigNoun == "feet")))){
_local2 = (_local2 + 3);
};
};
typeText((((((((((((("You " + strOrigVerb) + " the ") + strOrigNoun) + " for ") + _local2) + " points, while they ") + arrWays[Math.floor((Math.random() * 8))]) + " your ") + arrBodyLocs[Math.floor((Math.random() * 5))]) + " for ") + _local3) + " points."));
hp1 = (hp1 - _local3);
hp2 = (hp2 - _local2);
if (hp1 < 0){
hp1 = 0;
};
if (hp2 < 0){
hp2 = 0;
};
checkCombatOutcomes();
} else {
if ((((((strVerb == "drain")) && ((strNoun == "energies")))) && ((bCombat == true)))){
kelseySprite.alpha = 1;
_local4 = Math.ceil((Math.random() * 4));
_local5 = Math.ceil((Math.random() * 3));
if (emmaSprite.x < 600){
typeText("You can't leech Emma. Emma is fully resistant against your mental powers.");
} else {
if (hp1 > hp2){
typeText((((((("Your leach fails, because your energies outweigh theirs. They " + arrWays[Math.floor((Math.random() * 7))]) + " your ") + arrBodyLocs[Math.floor((Math.random() * 5))]) + " for ") + _local5) + " points."));
hp1 = (hp1 - _local5);
if (hp1 < 0){
hp1 = 0;
};
if (hp2 < 0){
hp2 = 0;
};
checkCombatOutcomes();
} else {
_local4 = (Math.ceil((Math.random() * 4)) + 1);
typeText((("You leech " + _local4) + " energies from your opponent! You feel stronger, they feel weaker."));
hp1 = (hp1 + _local4);
hp2 = (hp2 - _local4);
if (hp2 < 0){
hp2 = 0;
};
checkCombatOutcomes();
};
};
} else {
typeInfo("Nothing happens!");
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
txtDebug.text = ((("iPhase: " + iPhase) + ", iLoc: ") + iLoc);
}
public function extractVerb(_arg1):String{
if (_arg1.search("help") != -1){
strOrigVerb = "";
return ("help");
};
if (_arg1.search("look") != -1){
strOrigVerb = "";
return ("look");
};
if (_arg1.search("watch") != -1){
strOrigVerb = "";
return ("look");
};
if (_arg1.search("investigate") != -1){
strOrigVerb = "";
return ("look");
};
if (_arg1.search("tickle") != -1){
strOrigVerb = "tickle";
return ("tickle");
};
if (_arg1.search("rub") != -1){
strOrigVerb = "rub";
return ("tickle");
};
if (_arg1.search("caress") != -1){
strOrigVerb = "caress";
return ("tickle");
};
if (_arg1.search("poke") != -1){
strOrigVerb = "poke";
return ("tickle");
};
if (_arg1.search("touch") != -1){
strOrigVerb = "touch";
return ("tickle");
};
if (_arg1.search("stroke") != -1){
strOrigVerb = "stroke";
return ("tickle");
};
if (_arg1.search("scratch") != -1){
strOrigVerb = "scratch";
return ("tickle");
};
if (_arg1.search("squeeze") != -1){
strOrigVerb = "squeeze";
return ("tickle");
};
if (_arg1.search("tease") != -1){
strOrigVerb = "tease";
return ("tickle");
};
if (_arg1.search("beat") != -1){
strOrigVerb = "beat";
return ("tickle");
};
if (_arg1.search("whack") != -1){
strOrigVerb = "whack";
return ("tickle");
};
if (_arg1.search("smack") != -1){
strOrigVerb = "smack";
return ("tickle");
};
if (_arg1.search("hit") != -1){
strOrigVerb = "hit";
return ("tickle");
};
if (_arg1.search("kick") != -1){
strOrigVerb = "kick";
return ("tickle");
};
if (_arg1.search("slap") != -1){
strOrigVerb = "slap";
return ("tickle");
};
if (_arg1.search("bite") != -1){
strOrigVerb = "bite";
return ("tickle");
};
if (_arg1.search("use") != -1){
strOrigVerb = "use";
return ("use");
};
if (bCombat == false){
if (_arg1.search("take") != -1){
strOrigVerb = "take";
return ("pick up");
};
if (((!((_arg1.search("pick") == -1))) && (!((_arg1.search("up") == -1))))){
strOrigVerb = "pick up";
return ("pick up");
};
if (_arg1.search("grab") != -1){
strOrigVerb = "grab";
return ("pick up");
};
if (_arg1.search("equip") != -1){
strOrigVerb = "equip";
return ("pick up");
};
if (_arg1.search("steal") != -1){
strOrigVerb = "steal";
return ("pick up");
};
};
if (_arg1.search("throw") != -1){
strOrigVerb = "throw";
return ("throw");
};
if (_arg1.search("break") != -1){
strOrigVerb = "throw";
return ("throw");
};
if (_arg1.search("smash") != -1){
strOrigVerb = "smash";
return ("throw");
};
if (_arg1.search("read") != -1){
strOrigVerb = "read";
return ("read");
};
if (_arg1.search("drink") != -1){
strOrigVerb = "read";
return ("drink");
};
if (_arg1.search("give") != -1){
return ("give");
};
if (((!((_arg1.search("hand") == -1))) && (!((_arg1.search("over") == -1))))){
return ("give");
};
if (_arg1.search("offer") != -1){
return ("give");
};
if (_arg1.search("present") != -1){
return ("give");
};
if (_arg1.search("sell") != -1){
return ("sell");
};
if (_arg1.search("banter") != -1){
return ("sell");
};
if (_arg1.search("buy") != -1){
return ("buy");
};
if (_arg1.search("purchase") != -1){
return ("buy");
};
if (_arg1.search("fix") != -1){
return ("fix");
};
if (_arg1.search("drop") != -1){
return ("fix");
};
if (_arg1.search("repair") != -1){
return ("fix");
};
if (_arg1.search("place") != -1){
return ("fix");
};
if (_arg1.search("put") != -1){
return ("fix");
};
if (_arg1.search("ask") != -1){
return ("ask");
};
if (_arg1.search("talk") != -1){
return ("ask");
};
if (_arg1.search("chat") != -1){
return ("ask");
};
if (_arg1.search("question") != -1){
return ("ask");
};
if (_arg1.search("inquire") != -1){
return ("ask");
};
if (_arg1.search("drain") != -1){
return ("drain");
};
if (_arg1.search("suck") != -1){
return ("drain");
};
if (_arg1.search("leech") != -1){
return ("drain");
};
strOrigVerb = "";
return ("none");
}
public function checkCombatOutcomes():void{
if (hp1 == 0){
bCombat = false;
updateLoc(0);
ghost1.x = 600;
ghost2.x = 600;
emmaSprite.x = 600;
laverneSprite.x = 600;
typeText("Everything goes black. You don't remember how, but somehow you managed to return to the safety of your den to recover...");
blackLayer.x = 25;
} else {
if (hp2 == 0){
bCombat = false;
typeText("You are victorious!");
ghost1.x = 600;
ghost2.x = 600;
if (emmaSprite.x < 600){
typeText("You are victorious! You take the golden award from Emma who is wriggling on the floor.");
iPhase = 19;
addBackpack("Golden award");
};
emmaSprite.x = 600;
laverneSprite.x = 600;
};
};
}
public function extractNoun(_arg1):String{
if (bCombat == false){
if (_arg1.search("north") != -1){
strOrigNoun = "north";
return ("north");
};
if (((!((_arg1.search("east") == -1))) && ((_arg1.search("breast") == -1)))){
strOrigNoun = "east";
return ("east");
};
if (_arg1.search("south") != -1){
strOrigNoun = "south";
return ("south");
};
if (_arg1.search("west") != -1){
strOrigNoun = "west";
return ("west");
};
};
if (_arg1.search("bag") != -1){
strOrigNoun = "bag";
return ("back pack");
};
if (((!((_arg1.search("back") == -1))) && (!((_arg1.search("pack") == -1))))){
strOrigNoun = "back pack";
return ("back pack");
};
if (_arg1.search("rock") != -1){
strOrigNoun = "rock";
return ("rock");
};
if (_arg1.search("stone") != -1){
strOrigNoun = "stone";
return ("rock");
};
if (_arg1.search("branch") != -1){
strOrigNoun = "branch";
return ("branch");
};
if (_arg1.search("twig") != -1){
strOrigNoun = "twig";
return ("branch");
};
if (_arg1.search("tree") != -1){
strOrigNoun = "tree";
return ("branch");
};
if (_arg1.search("window") != -1){
strOrigNoun = "window";
return ("window");
};
if (_arg1.search("glass") != -1){
strOrigNoun = "glass";
return ("window");
};
if (_arg1.search("door") != -1){
strOrigNoun = "window";
return ("window");
};
if (_arg1.search("note") != -1){
strOrigNoun = "note";
return ("note");
};
if (_arg1.search("paper") != -1){
strOrigNoun = "paper";
return ("note");
};
if (_arg1.search("bottle") != -1){
strOrigNoun = "bottle";
return ("bottle");
};
if (_arg1.search("booze") != -1){
strOrigNoun = "bottle";
return ("bottle");
};
if (_arg1.search("alcohol") != -1){
strOrigNoun = "bottle";
return ("bottle");
};
if (_arg1.search("clothes") != -1){
return ("clothes");
};
if (_arg1.search("clothing") != -1){
return ("clothes");
};
if (_arg1.search("shirt") != -1){
return ("clothes");
};
if (_arg1.search("uniform") != -1){
return ("clothes");
};
if (_arg1.search("outfit") != -1){
return ("clothes");
};
if (_arg1.search("vase") != -1){
return ("vase");
};
if (_arg1.search("painting") != -1){
return ("painting");
};
if (_arg1.search("picture") != -1){
return ("painting");
};
if (_arg1.search("part") != -1){
return ("painting");
};
if (_arg1.search("amanda") != -1){
return ("amanda");
};
if (_arg1.search("laverne") != -1){
return ("laverne");
};
if (_arg1.search("jen") != -1){
return ("jen");
};
if (_arg1.search("award") != -1){
return ("award");
};
if (_arg1.search("silver") != -1){
return ("award");
};
if (_arg1.search("gold") != -1){
return ("award");
};
if (_arg1.search("cup") != -1){
return ("award");
};
if (_arg1.search("ghost") != -1){
strOrigNoun = "ghost";
return ("ghost");
};
if (_arg1.search("spook") != -1){
strOrigNoun = "spook";
return ("ghost");
};
if (_arg1.search("spirit") != -1){
strOrigNoun = "spirit";
return ("ghost");
};
if (_arg1.search("side") != -1){
strOrigNoun = "sides";
return ("ghost");
};
if (_arg1.search("armpit") != -1){
strOrigNoun = "armpits";
return ("ghost");
};
if (_arg1.search("belly") != -1){
strOrigNoun = "belly button";
return ("ghost");
};
if (_arg1.search("toe") != -1){
strOrigNoun = "toes";
return ("ghost");
};
if (_arg1.search("foot") != -1){
strOrigNoun = "feet";
return ("ghost");
};
if (_arg1.search("feet") != -1){
strOrigNoun = "feet";
return ("ghost");
};
if (_arg1.search("breast") != -1){
strOrigNoun = "breasts";
return ("ghost");
};
if (_arg1.search("ears") != -1){
strOrigNoun = "ears";
return ("ghost");
};
if (_arg1.search("energ") != -1){
strOrigNoun = "";
return ("energies");
};
strOrigNoun = "";
return ("none");
}
public function typeText(_arg1):void{
if (_arg1 != ""){
textBox.txt.text = _arg1;
textBox.alpha = 1;
} else {
textBox.alpha = 0;
};
}
public function typeInfo(_arg1):void{
infoText.text = _arg1;
}
public function doHelp():void{
if (iPhase == 0){
typeText("I want to go look for Jen. Better go to her home.");
} else {
if ((((((iPhase == 1)) || ((iPhase == 2)))) || ((iPhase == 3)))){
typeText("I don't have my key... I have to find another way to get into the house...");
} else {
if (iPhase == 4){
typeText("Oh no, Jen is abducted! I have to go save her. In the school!");
} else {
if ((((((iPhase == 5)) || ((iPhase == 6)))) || ((iPhase == 7)))){
typeText("I need to get a school outfit somehow... I need to get into that school!");
} else {
if (iPhase == 8){
typeText("I have to try to find Jen! She must be inside the school somewhere!");
} else {
if ((((((((((((((iPhase == 9)) || ((iPhase == 10)))) || ((iPhase == 11)))) || ((iPhase == 12)))) || ((iPhase == 13)))) || ((iPhase == 14)))) || ((iPhase == 15)))){
typeText("I need to restore the painting in the hall, the ghosts won't leave Amanda alone until it is complete again!");
} else {
if (iPhase == 16){
typeText("Amanda is freed... now I need to find Jen!");
} else {
if (iPhase == 17){
typeText("I have to find the missing school awards! Jen is in trouble until they are back where they belong!");
} else {
if (iPhase == 18){
typeText("I have to find the last school award and bring it back!");
} else {
if (iPhase == 19){
typeText("I have to put the last school award back to the display, then all should be good again!");
} else {
if (iPhase == 20){
typeText("I have to go to Jen! Hopefully the ghosts stopped tickling her!");
} else {
typeText("I don't know...");
};
};
};
};
};
};
};
};
};
};
};
}
public function doLook():void{
if (iLoc == 0){
if (iPhase == 1){
typeText("My lair contains cocoons with lots of energies. In the corner is my back pack.");
} else {
typeText("My lair contains cocoons with lots of energies, lots of spiderwebs and spidies.");
};
} else {
if (iLoc == 1){
if ((((iPhase > 3)) && ((iPhase < 7)))){
typeText("A student is hanging around in the park. Her name is Laverne. She lives near Jen.");
} else {
if (iPhase == 8){
typeText("Laverne is drunk and passed out.");
} else {
if (iPhase == 9){
typeText("Laverne is drunk and now also naked... I took her clothes, teehee!");
} else {
typeText("This is the park. There's trees here, a path and rocks, branches lying around.");
};
};
};
} else {
if (iLoc == 2){
if (iPhase < 4){
typeText("Jen's house... but no one is home and the door is locked and I don't have a key with me...");
} else {
if (iPhase == 4){
typeText("The window is broken. I found a note that Jen and Am have been kidnapped and are tortured in the school building!");
} else {
if (iPhase == 5){
typeText("Jen still isn't home, the only signs of life is that there's a half full bottle of booze on the table.");
} else {
if (iPhase == 9){
typeText("There's that old ugly vase in the hallway... maybe it's worth a penny or two... I wouldn't miss it if it was gone.");
} else {
if (iPhase == 14){
typeText("Amanda was right! There is an old part of painting in the storage! Who put that there?");
} else {
typeText("There's a note on the table. Jen and Am have been kidnapped and taken to the school! where they are to be tortured!");
};
};
};
};
};
} else {
if (iLoc == 3){
if (iPhase < 9){
typeText("This antique shop has mostly vases and other old crap. There's some other random things like furniture and paintings, too.");
} else {
if (iPhase < 11){
typeText("There's a piece of painting for sale here, and lots of old vases and stuff... but I can't get any of it for free I expect!");
} else {
if (iPhase == 11){
typeText("Jen's old ugly vase is now here. I sold it for monies. There's also that painting part I want to have!");
} else {
if (iPhase == 12){
typeText("Jen's old ugly vase is here. There's nothing that interests me in this shop.");
} else {
typeText("This shop is just full of a lot of old crap I don't care about. And Jen's ugly old vase I don't care about! Good riddance!");
};
};
};
};
} else {
if (iLoc == 4){
if (iPhase < 4){
typeText("This is the school's gate. It blocks my way, but then again, why would I want to go into a school building?");
} else {
if (iPhase < 8){
if (iPhase == 4){
iPhase = 5;
};
typeText("This is the school's gate. It is closed and there's a camera watching that everyone who enters wears a school uniform...");
} else {
typeText("The school gate. Now that I am wearing a school uniform I can enter freely. So simple!");
};
};
} else {
if (iLoc == 5){
if (iPhase < 9){
typeText("This is the school's main hall. A painting is ripped to pieces... incomplete. I wonder what the rest of the picture was like.");
} else {
if (iPhase < 13){
typeText("This is the main hall, with damaged painting. Gosts are haunting this place because their painting is destroyed...");
} else {
if (iPhase < 16){
typeText("This is the main hall, the painting still lacks a piece. Ghosts will haunt the place until it's complete.");
} else {
typeText("This is the main hall, the painting is now completed! A girl buried in the sand on the beach and tickled with feathers.");
};
};
};
} else {
if (iLoc == 6){
if (iPhase < 18){
typeText("The secondary hall. There's a display with tickle competition rewards the school teams won, but two are missing!");
} else {
if (iPhase < 20){
typeText("The secondary hall. This display is for rewards the school won in tickle competitions, but the golden cup is still missing!");
} else {
typeText("It's great to see the school is complete again and that should have put all the ghosts back to rest!");
};
};
} else {
if (iLoc == 7){
if ((((iPhase == 17)) && ((bSilverAquired == false)))){
typeText("This is a regular class room. Hey! The missing silver award is lying under one of the tables on the ground!");
} else {
typeText("This is a regular class room. Blackboard and chairs, nothing special about it.");
};
} else {
if (iLoc == 8){
if (iPhase < 16){
typeText("The Principal's Office. Am is being tickled. While it's hot and plenty of energies come free, I should try to save my friend!");
} else {
typeText("This is the Principal's Office. Amanda was tickled here, but I managed to convince the ghosts to set her free.");
};
} else {
if (iLoc == 9){
if (iPhase < 20){
typeText("Jen is being tickled senseless here! While I'd love to stick around and soak up energies, I should free her!");
} else {
typeText("Jen is free!");
};
} else {
if (iLoc == 10){
typeText("This is a regular class room. Blackboard and chairs, nothing special about it.");
} else {
typeText("");
};
};
};
};
};
};
};
};
};
};
};
}
public function addBackpack(_arg1):void{
var _local2:* = "";
if (bRock == true){
_local2 = "Rock\n";
};
if (bBranch == true){
_local2 = "Branch\n";
};
txtBackpack.text = (_local2 + _arg1);
}
public function createCombat():void{
ghost1.x = 363;
ghost1.gotoAndStop(Math.ceil((Math.random() * 2)));
hp1 = 10;
hp2 = (6 + Math.ceil((Math.random() * 3)));
bCombat = true;
}
public function myTimer():void{
if (bCombat == false){
hpLeft.alpha = 0;
hpRight.alpha = 0;
} else {
hpLeft.alpha = 1;
hpRight.alpha = 1;
hpLeft.text = ("HP " + hp1);
hpRight.text = ("HP " + hp2);
ghost1.alpha = ((Math.floor((Math.random() * 20)) + 70) / 100);
ghost2.alpha = ((Math.floor((Math.random() * 20)) + 70) / 100);
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
iLoc = 0;
iPhase = 0;
strNoun = "";
strVerb = "";
strOrigNoun = "";
strOrigVerb = "";
bSilverAquired = false;
iBottle = 0;
bCombat = false;
hp1 = 0;
hp2 = 0;
emmaLoc = Math.ceil((Math.random() * 3));
if (emmaLoc == 3){
emmaLoc = 4;
};
arrBodyLocs = ["feet", "breasts", "sides", "armpits", "belly button"];
arrWays = ["tickle", "scratch", "caress", "poke", "rub", "squeeze", "stroke", "tease"];
myInterval = setInterval(myTimer, 500);
bBranch = false;
bRock = false;
updateLoc(iLoc);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
typeText("");
}
}
}//package tm_fla
Section 6
//introStartButton (introStartButton)
package {
import flash.display.*;
public dynamic class introStartButton extends MovieClip {
}
}//package
Section 7
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package