Section 1
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//bgDoll_249 (Legend_fla.bgDoll_249)
package Legend_fla {
import flash.display.*;
public dynamic class bgDoll_249 extends MovieClip {
public function bgDoll_249(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 5
//borderArea_241 (Legend_fla.borderArea_241)
package Legend_fla {
import flash.display.*;
public dynamic class borderArea_241 extends MovieClip {
public var btnKelsey:MovieClip;
public var btnDressUp3:MovieClip;
public var btnUndress:MovieClip;
public var btnDressUp1:MovieClip;
public var btnDressUp6:MovieClip;
public var btnDressUp7:MovieClip;
public var btnDressUp4:MovieClip;
public var btnDressUp5:MovieClip;
public var btnDressUp8:MovieClip;
public var bgDoll:MovieClip;
public var btnEmily:MovieClip;
public var btnDressUp:MovieClip;
public function borderArea_241(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 6
//btnBoat_118 (Legend_fla.btnBoat_118)
package Legend_fla {
import flash.display.*;
public dynamic class btnBoat_118 extends MovieClip {
public function btnBoat_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 7
//btnBoatInRiver_63 (Legend_fla.btnBoatInRiver_63)
package Legend_fla {
import flash.display.*;
public dynamic class btnBoatInRiver_63 extends MovieClip {
public function btnBoatInRiver_63(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 8
//btnBunny_110 (Legend_fla.btnBunny_110)
package Legend_fla {
import flash.display.*;
public dynamic class btnBunny_110 extends MovieClip {
public function btnBunny_110(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 9
//btnDoor_117 (Legend_fla.btnDoor_117)
package Legend_fla {
import flash.display.*;
public dynamic class btnDoor_117 extends MovieClip {
public function btnDoor_117(){
addFrameScript(0, frame1, 30, frame31);
}
function frame1(){
stop();
}
function frame31(){
stop();
}
}
}//package Legend_fla
Section 10
//btnDoor1_179 (Legend_fla.btnDoor1_179)
package Legend_fla {
import flash.display.*;
public dynamic class btnDoor1_179 extends MovieClip {
public function btnDoor1_179(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 11
//btnDressUp_250 (Legend_fla.btnDressUp_250)
package Legend_fla {
import flash.display.*;
public dynamic class btnDressUp_250 extends MovieClip {
public var btnEggy:MovieClip;
public function btnDressUp_250(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 12
//btnItem_213 (Legend_fla.btnItem_213)
package Legend_fla {
import flash.display.*;
public dynamic class btnItem_213 extends MovieClip {
public function btnItem_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 13
//btnItemBoat_224 (Legend_fla.btnItemBoat_224)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemBoat_224 extends MovieClip {
public function btnItemBoat_224(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 14
//btnItemBranch_227 (Legend_fla.btnItemBranch_227)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemBranch_227 extends MovieClip {
public function btnItemBranch_227(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 15
//btnItemCandle_236 (Legend_fla.btnItemCandle_236)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemCandle_236 extends MovieClip {
public function btnItemCandle_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 16
//btnItemFamiliar_222 (Legend_fla.btnItemFamiliar_222)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemFamiliar_222 extends MovieClip {
public function btnItemFamiliar_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 17
//btnItemFlowerRed_219 (Legend_fla.btnItemFlowerRed_219)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemFlowerRed_219 extends MovieClip {
public function btnItemFlowerRed_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 18
//btnItemSkull_232 (Legend_fla.btnItemSkull_232)
package Legend_fla {
import flash.display.*;
public dynamic class btnItemSkull_232 extends MovieClip {
public function btnItemSkull_232(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 19
//btnJarOpening_204 (Legend_fla.btnJarOpening_204)
package Legend_fla {
import flash.display.*;
public dynamic class btnJarOpening_204 extends MovieClip {
public function btnJarOpening_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 20
//btnPlayer_111 (Legend_fla.btnPlayer_111)
package Legend_fla {
import flash.display.*;
public dynamic class btnPlayer_111 extends MovieClip {
public function btnPlayer_111(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 21
//btnTake_211 (Legend_fla.btnTake_211)
package Legend_fla {
import flash.display.*;
public dynamic class btnTake_211 extends MovieClip {
public function btnTake_211(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 22
//endFamiliar_256 (Legend_fla.endFamiliar_256)
package Legend_fla {
import flash.display.*;
public dynamic class endFamiliar_256 extends MovieClip {
public function endFamiliar_256(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 23
//introTexts_3 (Legend_fla.introTexts_3)
package Legend_fla {
import flash.display.*;
public dynamic class introTexts_3 extends MovieClip {
public function introTexts_3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 24
//MainTimeline (Legend_fla.MainTimeline)
package Legend_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
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.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var wndConclusion:MovieClip;
public var sprChar:MovieClip;
public var borderArea:MovieClip;
public var wndChapter:MovieClip;
public var bg01:MovieClip;
public var btnIntroStart:MovieClip;
public var btnUseNotification:MovieClip;
public var bg02:MovieClip;
public var endFamiliar:MovieClip;
public var wndStruggle:MovieClip;
public var bg03:MovieClip;
public var wndFamiliar:MovieClip;
public var txtIphase:TextField;
public var bg04:MovieClip;
public var loader_mc:MovieClip;
public var boatLevel:MovieClip;
public var bg05:MovieClip;
public var buttonBar:MovieClip;
public var bg07:MovieClip;
public var introTexts:MovieClip;
public var btnCompletion:MovieClip;
public var wndTextBox:MovieClip;
public var bg08:MovieClip;
public var bg09:MovieClip;
public var wndWeaponChoice:MovieClip;
public var myIntroTween:Tween;
public var myInterval1:uint;
public var iIntroCounter;
public var iPhase;
public var iDisposition;
public var iFamiliar;
public var arrLevelCompletion;
public var arrFlowers:Array;
public var bSummonComboCorrect;
public var arrPedestalOrder:Array;
public var myTween:Tween;
public var door1Tween:Tween;
public var door2Tween:Tween;
public var door3Tween:Tween;
public var strBufferItem;
public var strSelectedItem;
public var iLevelCompletion;
public var iTotalLevelCompletion;
public var iCountDown;
public var myInterval:uint;
public var arrButtonBar:Array;
public var bActionInProgress:Boolean;
public var bBunnySeenBefore;
public var iStruggle;
public var bTrollTickled;
public var lastObj;
public var iBerriesEaten;
public var iBerriesInInv;
public var bTrollDead;
public var bPlanksCut;
public var bBoatInspected;
public var iEggy;
public var bDoorsLocked;
public var strSequence;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
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;
}
public function onComplete(_arg1:Event):void{
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{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(2);
}
public function introTimer():void{
iIntroCounter++;
if (iIntroCounter == 1){
tweenIn(true);
} else {
if (iIntroCounter == 3){
introTexts.gotoAndStop(2);
} else {
if (iIntroCounter == 5){
tweenIn(false);
} else {
if (iIntroCounter == 6){
introTexts.gotoAndStop(3);
tweenIn(true);
} else {
if (iIntroCounter == 8){
introTexts.gotoAndStop(4);
} else {
if (iIntroCounter == 10){
tweenIn(false);
} else {
if (iIntroCounter == 11){
introTexts.gotoAndStop(5);
tweenIn(true);
} else {
if (iIntroCounter == 13){
introTexts.gotoAndStop(6);
} else {
if (iIntroCounter == 15){
tweenIn(false);
} else {
if (iIntroCounter == 16){
introTexts.gotoAndStop(7);
tweenIn(true);
} else {
if (iIntroCounter == 18){
introTexts.gotoAndStop(8);
} else {
if (iIntroCounter == 20){
introTexts.gotoAndStop(9);
} else {
if (iIntroCounter == 22){
introTexts.gotoAndStop(10);
} else {
if (iIntroCounter == 24){
tweenIn(false);
} else {
if (iIntroCounter == 25){
introTexts.gotoAndStop(11);
tweenIn(true);
} else {
if (iIntroCounter == 27){
introTexts.gotoAndStop(12);
} else {
if (iIntroCounter == 29){
tweenIn(false);
} else {
if (iIntroCounter == 30){
introTexts.gotoAndStop(13);
tweenIn(true);
} else {
if (iIntroCounter == 32){
tweenIn(false);
} else {
if (iIntroCounter == 33){
clearInterval(myInterval1);
gotoAndStop(3);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function tweenIn(_arg1:Boolean):void{
myIntroTween.stop();
if (_arg1 == true){
myIntroTween = new Tween(introTexts, "alpha", None.easeNone, 0, 1, 1, true);
} else {
myIntroTween = new Tween(introTexts, "alpha", None.easeNone, 1, 0, 1, true);
};
myIntroTween.FPS = 40;
}
public function myTimer():void{
if (iPhase == 100){
bg08.btnHouse.alpha = ((Math.floor((Math.random() * 40)) + 50) / 100);
};
if (iCountDown > 0){
iCountDown--;
if (iCountDown == 0){
if (iPhase == 3){
bg01.alpha = 0;
bg01.y = -800;
bg02.alpha = 1;
bg02.y = 2;
iPhase = 4;
myTween.stop();
myTween = new Tween(wndChapter, "alpha", None.easeNone, 1, 0, 0.9, true);
myTween.FPS = 40;
iCountDown = 1;
} else {
if (iPhase == 4){
myTween.stop();
buttonBar.y = 436;
sprChar.x = 132;
sprChar.sprChar.gotoAndStop((iDisposition + 1));
wndChapter.alpha = 0;
wndChapter.y = -1000;
} else {
if (iPhase == 20){
bg02.alpha = 0;
bg02.y = -800;
sprChar.x = -300;
wndWeaponChoice.x = -800;
buttonBar.y = -436;
hideTextBox();
boatLevel.y = 2;
boatLevel.btnBoat.mouseEnabled = false;
iPhase = 21;
myTween.stop();
myTween = new Tween(wndChapter, "alpha", None.easeNone, 1, 0, 0.9, true);
myTween.FPS = 40;
iCountDown = 1;
} else {
if (iPhase == 21){
myTween.stop();
wndChapter.alpha = 0;
wndChapter.y = -1000;
} else {
if (iPhase == 24){
strSequence = "";
bDoorsLocked = false;
} else {
if (iPhase < 31){
door1Tween.stop();
door2Tween.stop();
door3Tween.stop();
boatLevel.btnDoors.scaleX = 1;
boatLevel.btnDoors.scaleY = 1;
boatLevel.btnDoors.x = 360;
boatLevel.btnDoors.btnDoor1.gotoAndStop((((iPhase - 24) * 3) + 1));
boatLevel.btnDoors.btnDoor2.gotoAndStop((((iPhase - 24) * 3) + 2));
boatLevel.btnDoors.btnDoor3.gotoAndStop((((iPhase - 24) * 3) + 3));
bDoorsLocked = false;
if (strSequence == "AACA"){
boatLevel.btnDoors.alpha = 0;
proceedToLevel4();
} else {
if (strSequence == "ACAABA"){
boatLevel.wndBonus.gotoAndStop(iFamiliar);
boatLevel.wndBonus.x = 0;
iLevelCompletion = 100;
};
};
} else {
if (iPhase == 31){
door1Tween.stop();
door2Tween.stop();
door3Tween.stop();
boatLevel.btnDoors.scaleX = 1;
boatLevel.btnDoors.scaleY = 1;
boatLevel.btnDoors.x = 360;
iPhase = 24;
boatLevel.btnDoors.btnDoor1.gotoAndStop((((iPhase - 24) * 3) + 1));
boatLevel.btnDoors.btnDoor2.gotoAndStop((((iPhase - 24) * 3) + 2));
boatLevel.btnDoors.btnDoor3.gotoAndStop((((iPhase - 24) * 3) + 3));
boatLevel.btnBoatText.txtBoatLevel.text = "No, that's not it. Have to try to find the EXIT!";
strSequence = "";
bDoorsLocked = false;
} else {
if (iPhase == 50){
iPhase = 51;
buttonBar.y = 436;
boatLevel.y = -800;
sprChar.x = 132;
if (iDisposition != 2){
bg07.btnSeerInDark.x = -200;
};
bg07.y = 2;
myTween.stop();
myTween = new Tween(wndChapter, "alpha", None.easeNone, 1, 0, 0.9, true);
myTween.FPS = 40;
iCountDown = 1;
} else {
if (iPhase == 51){
myTween.stop();
wndChapter.alpha = 0;
wndChapter.y = -1000;
} else {
if (iPhase == 100){
iPhase = 101;
bg08.btnBliksem.x = 800;
bg08.btnBliksem.gotoAndStop(1);
proceedToEnd();
} else {
if (iPhase == 102){
iPhase = 200;
clearInterval(myInterval);
gotoAndStop(4);
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function mouseClicked3(_arg1:MouseEvent):void{
var _local3:*;
var _local2:* = "";
btnUseNotification.y = -200;
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if (((((((!((_local2 == "btnTake"))) && (!((_local2 == "btnUse"))))) && (!((_local2 == "btnNo"))))) && (!((_local2 == "btnYes"))))){
strSelectedItem = _local2;
};
if (bActionInProgress == true){
bActionInProgress = false;
doCleanup();
} else {
if (bg07.sprZombie.currentFrame == 2){
bg07.sprZombie.x = 800;
bg07.sprZombie.gotoAndStop(1);
sprChar.x = 332;
sprChar.scaleX = 1;
} else {
if (bg03.btnTrollKill.x == 0){
bg03.btnTrollKill.x = 800;
sprChar.x = 158;
hideTextBox();
} else {
if (bg02.sprOctopus.x == 49){
bg02.sprOctopus.gotoAndStop(1);
bg02.sprOctopus.x = -249;
sprChar.x = 132;
sprChar.scaleX = 1;
showText3("Phew! *pant-pant* Have to catch my breath for a bit.\nThat creature was FAST with its tentacles!\nLost my fishing rod too. What a shame...", false);
} else {
if (iPhase > 99){
} else {
if (strBufferItem != ""){
useItem(_local2, strBufferItem);
strBufferItem = "";
} else {
if (_local2 == "btnNo"){
wndWeaponChoice.x = -800;
} else {
if (_local2 == "btnYes"){
wndWeaponChoice.x = -800;
arrButtonBar.push(buttonBar.btnItemWeapon);
updateButtonBar();
iPhase = 3;
myTween.stop();
wndChapter.alpha = 0;
wndChapter.txtChapter.text = "2 days until Scary Night";
wndChapter.txtLevelText.text = "Home level completion:";
wndChapter.txtPercentage.text = (iLevelCompletion + "%");
arrLevelCompletion[0] = iLevelCompletion;
if (iLevelCompletion > 95){
iTotalLevelCompletion = (iTotalLevelCompletion + 100);
};
wndChapter.y = 0;
myTween = new Tween(wndChapter, "alpha", None.easeNone, 0, 1, 2, true);
myTween.FPS = 40;
iCountDown = 8;
iLevelCompletion = 25;
} else {
if ((((((_local2 == "borderArea")) && ((iPhase > 3)))) && ((iPhase < 15)))){
if (borderArea.currentFrame < 21){
borderArea.gotoAndStop((borderArea.currentFrame + 1));
if (borderArea.currentFrame == 21){
iLevelCompletion = (iLevelCompletion + 25);
};
};
} else {
if ((((((_local2 == "btnLeft")) && ((sprChar.x > 0)))) && (!((bg08.y == 2))))){
if (sprChar.x >= 158){
sprChar.scaleX = -1;
sprChar.x = (sprChar.x - 40);
} else {
sprChar.scaleX = -1;
sprChar.x = 118;
};
hideTextBox();
} else {
if ((((((_local2 == "btnRight")) && ((sprChar.x > 0)))) && (!((bg08.y == 2))))){
if (sprChar.x <= 556){
sprChar.scaleX = 1;
sprChar.x = (sprChar.x + 40);
} else {
sprChar.scaleX = 1;
sprChar.x = 596;
};
hideTextBox();
} else {
if (_local2 == "btnHouse"){
showText3("It is my house. It isn't much, but it is mine.\nI have lived here all my life.\nIt has protected me well.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnPainting"){
showText3("It is a self made painting. I didn't make it myself.\nApparently it is what the world looked like long ago.\nI have never seen the world look like this myself.", true);
} else {
if (_local2 == "btnStatue"){
showText3("This is a clay statue of some long gone hero.\nI think...", true);
} else {
if (_local2 == "btnCookies"){
showText3("A jar of cookies.\nOr at least, it used to have cookies. Long ago.\nI'm storing crumbs in it nowadays. Nammy crumbs.", true);
} else {
if ((((_local2 == "btnShelves")) || ((_local2 == "wndCanGone")))){
showText3("A wooden set of shelves. My grand-father made it himself.\nWhen he was still alive.", true);
} else {
if (_local2 == "btnHairTies"){
showText3("My greatest posession.\nI take this jar with me wherever I go.\nIt is very important.", true);
} else {
if (_local2 == "btnEncyclopedia"){
showText3("This is part six of an old encyclopedia.\nIt is the only part of the set I have.\nIt doesn't contain much stuff that interests me.", true);
} else {
if (_local2 == "btnSword"){
showText3("It is a samurai sword.\nIt has been in my family for many generations.\nIt's just being used as wall decoration mostly.", true);
} else {
if (_local2 == "btnTelephone"){
showText3("This is a box with buttons. I have no clue what it is used for.\nIt doesn't do anything, but it can be fun pressing the numbers.", true);
} else {
if (_local2 == "btnCandle"){
showText3("Light in the darkness. This candle is the only reason I can see stuff around here when it's dark outside.", true);
} else {
if (_local2 == "btnRemoteControl"){
showText3("Grandfather calls this a 'remote control'.\nIt's a silly little box because it controls nothing.\nIt's useless, but I like to hold on to these 'things of the past'.", true);
} else {
if (_local2 == "btnTelevision"){
showText3("They call this a 'television'. It's ancient, but it still looks good.\nYou used to be able to 'see far' with it...\nOr so my grandfather has made me believe.", true);
} else {
if (_local2 == "btnCharacter"){
showText3("It's me, Emily... whoever I really am. I am the last of my family.\nMy grandfather, who raised me, was the last one I know. Now I sit here with all the heritage. Useless junk, mostly.", true);
wndTextBox.btnTake.gotoAndStop(2);
} else {
if (_local2 == "btnComputer"){
showText3("It is a computer. It is connected to the television.\nNot sure what it is supposed to be used for.\nMy grandfather didn't understand either.", true);
} else {
if (_local2 == "btnHistory"){
hideTextBox();
bg01.wndHistory.x = 5;
bg01.wndHistory.alpha = 1;
if (iPhase == 0){
iPhase = 1;
};
} else {
if ((((_local2 == "btnClose2")) || ((_local2 == "wndHistory")))){
bg01.wndHistory.alpha = 0;
bg01.wndHistory.x = -800;
if ((((iPhase == 1)) && ((bg01.wndCanGone.alpha == 1)))){
showText3("The history of this world makes me want to meet MY history. I have my precious little jar with me. Now all I need is to pick up a weapon, because there be dragons out there! Then I'm off!", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
};
} else {
if (_local2 == "btnMouseHole"){
showText3("This is Jeromme's home. He is like my house pet.\nHe comes out of his door sometimes.", true);
} else {
if (_local2 == "btnHatch"){
showText3("It's a hatch in the floor of my house.\nJeromme lives down there.", true);
} else {
if (_local2 == "btnBook"){
showText3("It's a story book with illustrations.\nGrandfather always read stories to me before going to sleep.\nMy favourite story is of the Legendary Heroine. She existed!", true);
} else {
if (_local2 == "btnMemoryList"){
showText3("It is a list of things I have to remember.\nThe cows need grass, so I get milk.\nI still don't know if yellow is good or bad.", true);
} else {
if (_local2 == "btnWindow"){
showText3("This is the window. Nothing to see outside.\nThe sky is full of dust and smoke. Always.\nThey say it used to be nice clear and blue long long ago.", true);
} else {
if (_local2 == "btnBat"){
showText3("This is a bat for the game 'hit the ball'.\nMy grandfather taught me the game and we played it when I was young. Now I don't have anyone to play it with.", true);
} else {
if (_local2 == "btnDoll"){
showText3("It is my old doll. Her name is Nelly.\nJust for the record: I don't play with dolls anymore.\nIt's long ago since I was a little girl.", true);
} else {
if (_local2 == "btnShoes"){
showText3("My favourite shoes.\nIn my favourite colour.", true);
} else {
if (_local2 == "btnInkPot"){
showText3("It's an inkpot.\nWhen I want to write something I need to use ink.\nObviously!", true);
} else {
if (_local2 == "btnFeather"){
showText3("It's a quill. I use it to write poems.\nOr to write down things I need to remember.", true);
} else {
if (_local2 == "btnPaper"){
_local3 = Math.floor((Math.random() * 6));
if (_local3 == 0){
showText3("My poems. And cool ideas I come up with. Here's one:\nSmoky Sky. Darkening my day. Darkening my way.\nIt never goes away! All I can say... Why?", true);
} else {
if (_local3 == 1){
showText3("My poems. And cool ideas I come up with. Here's one:\nNothing. All Alone. Everyone else died.\nThey won't come back. Never.", true);
} else {
if (_local3 == 2){
showText3("My poems. And cool ideas I come up with. Here's one:\nLove. Not for the faint at heart. It isn't very smart.\nBefore you know, it takes a huge blow and hurts really hard.", true);
} else {
if (_local3 == 3){
showText3("My poems. And cool ideas I come up with. Here's one:\nSmoke in the sky. Smoke in the eyes.\nMisty, murky world. Kamikaze.", true);
} else {
if (_local3 == 4){
showText3("My poems. And cool ideas I come up with. Here's one:\nA butterfly flies. The forest trolls past. Long does it not last.\nA big stomp. A little chomp. Butterfly dies.", true);
} else {
if (_local3 == 5){
showText3("My poems. And cool ideas I come up with. Here's one:\nFOO! Foo on you. BAR! Harharhar.\nBar no foo! Foobar.", true);
};
};
};
};
};
};
} else {
if (_local2 == "btnUmbrella"){
showText3("My trusty umbrella. There's a hole in it, but I can still use it from the 'good' side. I don't need it often, it doesn't really rain that much.", true);
} else {
if (_local2 == "wndCharBend"){
showText3("It's me. Feeding my pet mouse Jeromme.\nHe is cute, isn't he?\nI love watching him eat his crumbles.", true);
} else {
if (_local2 == "btnMouse"){
showText3("This is Jeromme, my pet mouse. He is eating his crumbs.", true);
} else {
if (_local2 == "btnJar2"){
showText3("This is the cookie jar. Jeromme is enjoying the crumbs it contained.", true);
} else {
if (_local2 == "btnItemHairTies"){
if (iPhase < 21){
showText3("This little jar contains my most valued possession.\nI have to guard it with my life.", true);
} else {
if (iPhase < 52){
showText3("This little jar contains something that belonged to my ancestor.\nI'm going to need it at the ending, to complete the ritual.", true);
} else {
showText3("This little jar contains something that belonged to my ancestor.\nIt's time to open it when all other items are in place.", true);
};
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnTree"){
showText3("It's a twisted tree. Nothing special about that.\nPractically all of the trees are twisted since the dust and smoke started hiding the sun, so they say.", true);
} else {
if (_local2 == "btnTwistedForest"){
showText3("It's the twisted forest. The trees are all bent and twisted.\nThat's why I call it that. Have to be careful there...\nTrolls live in that forest!", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnPath"){
showText3("This path leads around the forest, along the river.\nIt's safer to take the path than going straight through the forest.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnPath5"){
showText3("The path ends here, but it leads back to the clearing with the lake.\nI can just retrace my steps to get back to the seer.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "sprSeer"){
if (iDisposition < 2){
showText3("This lady is a seer. A nice and helpful person who knows stuff.\nAnd apparently she feels stuff, too.", true);
} else {
if (bg02.sprSeer.currentFrame == 1){
showText3("This lady is a seer.\nI don't like her, because she's too goodiegood.\nShe is despicable!", true);
} else {
if (bg02.sprSeer.currentFrame == 2){
showText3("I spanked this goodiegoodie seer GOOD!\nHer tender butt is glowing red now, as it should!", true);
} else {
showText3("Look at that seer's butt!\nIt's all red and painful... but not just that!\nIt's swollen into a gigantic inflated butt!", true);
};
};
};
wndTextBox.btnTake.gotoAndStop(2);
} else {
if (_local2 == "btnDuckPond"){
showText3("It is a duck pond. A pond filled with nice clear water.\nWell... it used to be clear, before the whole robot wars and stuff.", true);
} else {
if (_local2 == "btnDuckSign"){
showText3("The sign says, 'Don't feed the ducks'.\n...\nExcept there aren't any ducks to feed.", true);
} else {
if (_local2 == "btnBushes"){
showText3("A bush. These bear berries all year round. Pretty nifty.\nThey don't need a lot of light, luckily.", true);
} else {
if (_local2 == "btnRiver"){
showText3("The river flows all the way to the sea.\nIt also branches off nearby and disappears into that cave.\nScary!", true);
} else {
if (_local2 == "bg02"){
showText3("This is the land outside my house. It all looks like this.\nPretty boring, dull.\nI wish it looked as nice as on the drawing in my house.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "sprChar"){
showText3("It's me! I am on a quest to meet a long gone ancestor.\nShe is... was a heroine.\nTHE legendary heroine!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnRiet"){
showText3("It's reed.\nOne fo the few things that still wants to grow out here.", true);
} else {
if (_local2 == "btnHarpGone"){
if (bg02.btnHarpGone.alpha == 0){
showText3("It's a harp.\nClearly belongs to the seer.", true);
} else {
showText3("The river flows all the way to the sea.\nIt also branches off nearby and disappears into that cave.\nScary!", true);
};
} else {
if (_local2 == "btnItemWeapon"){
if (iDisposition == 0){
showText3("This is my samurai sword.\nHas been in the family for generations.\nMakes me feel honourable.", true);
} else {
if (iDisposition == 1){
showText3("This is my quill.\nIt is made from a very good quality feather.\nI feel I can do a lot of mischief with this! heheh!", true);
} else {
showText3("This is my ball-game bat.\nIt is also great for spanking people.\nI feel an evil kind of rush and I want to spank someone! Muahaha!", true);
};
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemHarp"){
showText3("This is the seer's harp.\nI stole it while she was distracted.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemReed"){
showText3("A handful of reed from the lake.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if ((((((_local2 == "btnFlowersGreen")) || ((_local2 == "btnFlowersRed")))) || ((_local2 == "btnFlowersYellow")))){
showText3("There's a little flower garden here.\nYou don't see many flowers these days.\nFlowers only grow when someone takes real good care of them.", true);
} else {
if (_local2 == "btnDam"){
showText3("It is a dam, built from twigs and branches.\nIt is closing off the water from the river.", true);
} else {
if (_local2 == "btnDryRiver"){
showText3("The river is blocked by the dam.\nThe riverbed behind the dam is dry.", true);
} else {
if (_local2 == "btnBeaver"){
showText3("A cute little beaver has come to eat the reed...\nEhrr, he's not that 'little', actually...\nIt's a pretty big beaver!", true);
} else {
if (_local2 == "btnBunny"){
if (bg05.btnBunny.currentFrame == 2){
showText3("It's an unconscious rodent.\nIt is unconscious because I hit it with a rock.", true);
} else {
if (bBunnySeenBefore == true){
showText3("The rodent is back!\nI wonder if I can grab it this time...\nWho will be faster, the hunter or the hunted?", true);
} else {
showText3("There's a rodent sticking out of that hole.\nI think it's called a bunny.\nOr a rabbit. I'm not sure what the difference is.", true);
};
};
} else {
if (_local2 == "btnBunnyHole"){
showText3("It is a hole in the ground.\nThere was a rodent in that hole.\nAnyway, I'm not going to stick my hand in there!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnStone"){
showText3("That's a nice sturdy stone. Not too big, not too small.", true);
} else {
if (_local2 == "btnTent"){
showText3("This is some kind of tent. The forest troll lives here, I guess.\nI rather stay away from it if I can.", true);
} else {
if (_local2 == "btnPants"){
showText3("A pair of pants is hanging from the drying line.\nThey are troll pants.\nEeew! Worse than dirty diapers!", true);
} else {
if (_local2 == "btnFoodBowl"){
showText3("A food bowl. Makes me wonder if the troll has a pet...\nOr would she eat from that?", true);
} else {
if (_local2 == "btnForestTree"){
showText3("This is the ONLY straight tree in this forest.\nThe only straight tree I know.", true);
} else {
if (_local2 == "btnForestBush"){
showText3("A bush. Nothing special about it.", true);
} else {
if (_local2 == "btnForestPath"){
if (bTrollTickled == true){
showText3("Hm, you know... I could of course simply sneak past the troll.\nBeing a bit of a rogue and all, I mean...\nObvious, isn't it?", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (bTrollDead == true){
showText3("With the evil troll out of the way I can finally proceed deeper into the forest.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
showText3("A path leading deeper into the forest.\nI can't go there as long as this troll stands in the way.\nShe's guarding the way past her tent.", true);
wndTextBox.btnTake.gotoAndStop(3);
wndTextBox.btnTake.alpha = 0.2;
};
};
} else {
if (_local2 == "btnSignBack"){
showText3("The way out of the twisted forest.\nI would feel much happier without all those trees surrounding me.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "bg03"){
showText3("This is the twisted forest. Brrr...\nI feel very uncomfortable with all those trees around me.\nWho knows what spies at me from behind some trees?", true);
} else {
if (_local2 == "btnTroll"){
showText3("Eeeh, a troll! An ugly troll!\nHopefully she isn't hungry!\nI don't want to become her next meal!", true);
wndTextBox.btnTake.gotoAndStop(2);
} else {
if (_local2 == "btnItemStone"){
showText3("It's a stone I picked up in the twisted forest.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemBunny"){
showText3("It is an unconscious bunny. Or rabbit.\nI'm not sure, but I'm sure it's unconscious.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnLittleSquid"){
showText3("KAWAIIII! It is a little squidling.\nI want one of these!", true);
} else {
if (_local2 == "btnStruggle"){
showStruggleShield();
} else {
if (_local2 == "btnFamiliarNo"){
wndFamiliar.x = -1000;
} else {
if (_local2 == "btnFamiliarYes"){
wndFamiliar.x = -1000;
if (wndFamiliar.currentFrame == 1){
iFamiliar = 1;
showText3("Look! I've got myself a familiar!\nWelcome to the team, Snakey-snake!", false);
bg04.btnSnakeBowl.x = -200;
sprChar.sprFamiliar.gotoAndStop(3);
buttonBar.btnItemFamiliar.gotoAndStop(1);
arrButtonBar.push(buttonBar.btnItemFamiliar);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFlower.x > 0)))){
iPhase = 8;
};
} else {
if (wndFamiliar.currentFrame == 2){
iFamiliar = 2;
showText3("Look! I've got myself a familiar!\nWelcome to the team, Miss Squidling!", false);
bg02.btnLittleSquid.x = -200;
sprChar.sprFamiliar.gotoAndStop(4);
buttonBar.btnItemFamiliar.gotoAndStop(2);
arrButtonBar.push(buttonBar.btnItemFamiliar);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFlower.x > 0)))){
iPhase = 8;
};
} else {
iFamiliar = 3;
showText3("Look! I've got myself a familiar!\nWelcome to the team, Mr. Beaver!", false);
bg05.btnBeaver.x = -200;
sprChar.sprFamiliar.gotoAndStop(2);
buttonBar.btnItemFamiliar.gotoAndStop(3);
arrButtonBar.push(buttonBar.btnItemFamiliar);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFlower.x > 0)))){
iPhase = 8;
};
};
};
} else {
if (_local2 == "btnBerry"){
lastObj = _arg1.target;
showText3("It's a berry.", true);
} else {
if (_local2 == "btnItemBerries"){
if (iBerriesInInv == 1){
showText3("It is a single berry.\nOne berry isn't very much.", true);
} else {
showText3((("I have " + iBerriesInInv) + " berries.\nThese are quite tasty and useful, too!\nThe more the merrier!"), true);
};
wndTextBox.btnTake.gotoAndStop(4);
} else {
if (_local2 == "btnRock4"){
showText3("It's a pretty big rock. With some kind of plate on it.\nI wonder if this rock was used as table... or something else", true);
} else {
if (_local2 == "btnRocks4"){
showText3("A big rock. I wonder how it got here,\nin the middle of the forest and all...", true);
} else {
if (_local2 == "btnChainsaw"){
showText3("It's a big electrical- thing. It looks really dangerous.\nBut then again, all machines look dangerous to me.", true);
} else {
if (_local2 == "bg04"){
showText3("A small shed in the middle of the forest.\nWith some tools and stuff. I'm guessing this was used as forestry.", true);
} else {
if (_local2 == "btnCabinet"){
showText3("A wooden cabinet with drawers. Looks old and weathered.\nIn fact, it's almost falling apart, I'd say.", true);
} else {
if (_local2 == "btnGraveStone"){
showText3("Hm...\nWoof. Here lies kitty. May she rest in pieces.\nThat's odd. But was Kitty a cat or a girl...?", true);
} else {
if (_local2 == "btnHammer"){
showText3("This open drawer contains a hammer and nails.\nProbably useful for making repairs.", true);
} else {
if (_local2 == "btnBroom"){
showText3("A broom. Useful if you like cleaning.\nOr if you're a witch.\nNeither applies to me.", true);
} else {
if (_local2 == "btnBowl4"){
showText3("It's a ceramic bowl on top of a rock.\nIts owner is nowhere to be seen.", true);
} else {
if (_local2 == "btnForest4"){
showText3("It's the twisted forest. Brrr...\nThe trees get closer and closer together.\nI don't want to go any deeper into this forest.", true);
} else {
if (_local2 == "btnSnakeTree"){
showText3("There's a green snake in the top of the tree.\nI wonder if it's friendly, or dangerous.", true);
} else {
if (_local2 == "btnPath4"){
showText3("The path from where I came.\nThis leads back to the troll place.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnSnakeBowl"){
showText3("The snake is lying on the bowl and has eaten the rodent.\nSeems it's not hungry anymore, so I should be safe?", true);
} else {
if (_local2 == "btnRope"){
showText3("There's a rope lying on the ground.", true);
} else {
if (_local2 == "btnBoat"){
showText3("It's a broken boat. There's a big hole in the bottom.\nIt's useless.", true);
} else {
if (_local2 == "btnBranch"){
showText3("The straight tree has a low hanging branch that I can reach.", true);
} else {
if (_local2 == "btnItemRope"){
showText3("It's a thin rope. I may be able to use this for something.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemBranch"){
if (buttonBar.btnItemBranch.currentFrame == 1){
showText3("It's a branch from the straight tree.\nIt's strong, yet flexible.", true);
} else {
if (buttonBar.btnItemBranch.currentFrame == 2){
showText3("It's a make-shift fishing rod.", true);
} else {
showText3("It's a baited make-shift fishing rod.", true);
};
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if ((((_local2 == "btnItemFamiliar")) || ((_local2 == "sprFamiliar")))){
_local2 = "btnItemFamiliar";
showText3("It's my familiar.\nThis creature is going to help me on my quest to summon my ancestor!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemBoat"){
if (buttonBar.btnItemBoat.currentFrame == 1){
showText3("It is a broken boat.\nIt will sink straight to the bottom.\nIf I want to use it, I better repair it first!", true);
bBoatInspected = true;
} else {
if (buttonBar.btnItemBoat.currentFrame == 2){
showText3("The boat is repaired. It's probably good enough to take medown the river to my destination.", true);
} else {
showText3("It's a broken boat. There was a hole in it, but I made things worse: Now it has an even bigger hole!", true);
};
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnPlayer"){
if (bg05.btnPlayer.currentFrame == 1){
showText3("It's a saw player. The sound is truly horrible! It hurts my ears! He is singing some song of his fear for the forest troll.", true);
} else {
showText3("Good thing I gave that guy the harp. It's still not sounding well, but it beats the saw a hundred times!", true);
};
wndTextBox.btnTake.gotoAndStop(2);
} else {
if (_local2 == "btnSaw"){
showText3("The saw player dropped the saw on the ground when he ran off.", true);
} else {
if (_local2 == "btnItemSaw"){
showText3("The saw of the saw-player.\nI can put this to MUCH better use than making crappy noise!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemWood"){
showText3("A couple of neat planks of wood.\nNot bad for a beginner, eh?", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnBoatInRiver"){
if (bg02.btnBoatInRiver.currentFrame == 2){
showText3("The hole in the boat is plugged with the huge inflated Seer butt!\nAnd guess what? It stays afloat!", true);
} else {
showText3("The boat has been repaired and is now in the river.\nIt's ready to take me to my destination!", true);
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnEggy"){
if (iEggy < 10){
iEggy++;
if (iEggy == 10){
iEggy = 10;
borderArea.btnUndress.alpha = 1;
borderArea.btnDressUp.gotoAndStop(2);
iLevelCompletion = (iLevelCompletion + 25);
};
};
} else {
if (_local2 == "btnDressUp1"){
borderArea.btnDressUp.gotoAndStop(1);
hideTextBox();
} else {
if ((((_local2 == "btnUndress")) && ((borderArea.btnUndress.alpha == 1)))){
borderArea.btnDressUp.gotoAndStop(2);
hideTextBox();
} else {
if (_local2 == "btnDressUp3"){
borderArea.btnDressUp.gotoAndStop(3);
hideTextBox();
} else {
if (_local2 == "btnDressUp4"){
borderArea.btnDressUp.gotoAndStop(4);
hideTextBox();
} else {
if (_local2 == "btnDressUp5"){
borderArea.btnDressUp.gotoAndStop(5);
hideTextBox();
} else {
if (_local2 == "btnDressUp6"){
borderArea.btnDressUp.gotoAndStop(6);
hideTextBox();
} else {
if (_local2 == "btnDressUp7"){
borderArea.btnDressUp.gotoAndStop(7);
hideTextBox();
} else {
if (_local2 == "btnForest5"){
showText3("The twisted forest. Scary place.\nThere's no good entrance into that forest from here.", true);
} else {
if (_local2 == "btnWell"){
showText3("I think it's a wishing-well.\nI wish I had a coin...", true);
} else {
if (_local2 == "btnRock"){
showText3("A big rock. Too heavy to lift.\nDon't want to even think of trying to lug that around!", true);
} else {
if (_local2 == "btnItemHammer"){
showText3("It's a hammer and some nails.\nUseful for some carpentry.", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnHarp"){
showText3("There's a harp standing at the shore.\nI suppose it's the Seer's harp.", true);
} else {
if (_local2 == "txtBoatLevel"){
if (iPhase == 21){
iPhase = 22;
boatLevel.btnBoatText.txtBoatLevel.text = "Where am I? Is this still the tunnel?";
} else {
if (iPhase == 22){
iPhase = 23;
boatLevel.btnBoatText.txtBoatLevel.text = "I see nothing...";
} else {
if (iPhase == 23){
iPhase = 24;
boatLevel.btnBoatText.txtBoatLevel.text = "Oh no! Not this again...!";
boatLevel.btnDoors.btnDoor1.gotoAndStop(1);
boatLevel.btnDoors.btnDoor2.gotoAndStop(2);
boatLevel.btnDoors.btnDoor3.gotoAndStop(3);
boatLevel.btnDoors.alpha = 0;
boatLevel.btnDoors.x = 360;
door3Tween = new Tween(boatLevel.btnDoors, "alpha", None.easeNone, 0, 1, 2, true);
door3Tween.FPS = 40;
iCountDown = 3;
};
};
};
} else {
if ((((_local2 == "btnDoor1")) && ((bDoorsLocked == false)))){
bDoorsLocked = true;
boatLevel.btnBoatText.txtBoatLevel.text = "";
takeLeftDoor();
strSequence = (strSequence + "A");
iPhase++;
iCountDown = 4;
} else {
if ((((_local2 == "btnDoor2")) && ((bDoorsLocked == false)))){
bDoorsLocked = true;
boatLevel.btnBoatText.txtBoatLevel.text = "";
takeMiddleDoor();
strSequence = (strSequence + "B");
iPhase++;
iCountDown = 4;
} else {
if ((((_local2 == "btnDoor3")) && ((bDoorsLocked == false)))){
bDoorsLocked = true;
boatLevel.btnBoatText.txtBoatLevel.text = "";
takeRightDoor();
strSequence = (strSequence + "C");
iPhase++;
iCountDown = 4;
} else {
if (_local2 == "wndBonus"){
boatLevel.wndBonus.x = -800;
} else {
if (_local2 == "wndBonus2"){
bg08.wndBonus2.x = -800;
buttonBar.y = 436;
} else {
if (_local2 == "btnItemFlower"){
showText3("It's a pretty flower. Flowers aren't so common anymore these days, but maybe that's one of the reasons I like them!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "sprZombie"){
showText3("Eep! It's a zombie! A zombie looking for brains!\nThis one looks real. I don't think it is a costume!\nI don't want it to eat my brains!", true);
wndTextBox.btnTake.gotoAndStop(2);
} else {
if (_local2 == "btnPathLeft"){
showText3("This path leads back to the boat.\nI don't need to go there. I just arrived!", true);
} else {
if (_local2 == "btnPathForward"){
showText3("This path goes deeper into the forest. There's some kind of lab, according to the sign next to the road.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnPathRight"){
showText3("This path goes to a haunted part of the forest!\nOr at least, that's what the sign says...", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnPath9"){
showText3("This path leads out of here...\nAway from this horrible laboratory!", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnPumpkin"){
showText3("It's a pumpkin with a candle in it.\nThey put these decorations up at Scary Night.\nMakes the forest look a LOT creepier than normal! Brr!", true);
} else {
if (_local2 == "btnScaryTree"){
showText3("They have carved a scary face into this tree and put a candle inside. This is what they do with Scary Night. Makes the forest a LOT creepier than normal! Brr!", true);
} else {
if (_local2 == "btnDock"){
showText3("This is the dock. I bound the rowing boat to it.\nThis is where I arrived.", true);
} else {
if (_local2 == "btnBoatDocked"){
showText3("This is the rowing boat. I don't need it anymore,\nI have arrived at my destination.", true);
} else {
if (_local2 == "btnMountainRock"){
showText3("This is the rocky wall of the cave I arrived through.", true);
} else {
if (_local2 == "btnCaveExit"){
showText3("The exit of the cave through which I came here.\nI don't want to re-enter THAT in a hurry!\nDon't want to go through that nightmare again!", true);
} else {
if (_local2 == "btnRiver7"){
showText3("The river that took me here.\nSince I arrived here through that cave overthere, I've seen enough rivers for a while to come!", true);
} else {
if (_local2 == "btnLantern"){
showText3("It's a fancy lantern, lighting the paths through the forest.\nWithout those, the forest would be even scarier than it already is!", true);
} else {
if (_local2 == "btnPole"){
showText3("There's a pole sticking out of the ground.\nOr a stick, whatever you wish to call it.", true);
} else {
if (_local2 == "btnBone"){
showText3("A bone is sticking out of the ground here.\nWould it be real... or is it just a Scary Night prop?\nBrr... don't want to think about it! What if it's a Human bone?", true);
} else {
if (_local2 == "btnSign2"){
showText3("A sign that says 'Lab'.\nThat means there's a laboratory in that direction.", true);
} else {
if (_local2 == "btnGhost"){
showText3("There's a scary white ghost floating over the road.\nTHAT is a Scary Night prop, I'm certain!\nGhosts don't exist, so this must be someone's blanket.", true);
} else {
if (_local2 == "btnSeerInDark"){
showText3("This is the silly Seer.\nThat red swollen butt did a magnificent job plugging the hole in the boat! Hahaha.", true);
} else {
if (_local2 == "btnHand"){
showText3("EEP! There's a scary hand sticking out of the sand!\nIs it a Scary Night prop...\nor is it a zombie hand? I don't want to know!", true);
} else {
if (_local2 == "btnGround"){
showText3("It's the ground. Not much to say about that.", true);
} else {
if (_local2 == "btnForest7"){
showText3("Scary forest. Very deep.\nI don't want to go in here, because I don't know if I'll ever find my way out!", true);
} else {
if (_local2 == "btnPathCrossing"){
showText3("The path goes into different directions from here.", true);
} else {
if (_local2 == "btnFloor9"){
showText3("The floor of the laboratory is covered with dirt.\nIt has been abandoned for quite some time!", true);
} else {
if (_local2 == "btnDust"){
showText3("I don't dare to think of it, but that is probably EXACTLY what it appears to be.\nHumans turned to dust...", true);
} else {
if (_local2 == "btnSilhouette1"){
showText3("Some kind of silhouette... Looks like a person got unlucky.\nFailed experiment maybe?\nDon't want to even think about this...", true);
} else {
if (_local2 == "btnSilhouette2"){
showText3("Someone was standing there and then...\nBoom? Zap? Crunch? Ziff? ...\nEither way, he or she has been pulverized!", true);
} else {
if (_local2 == "btnTowel"){
showText3("There's a towel hanging near the counter.\nSuspicious.\nOr maybe they just wanted to keep the place clean?", true);
} else {
if (_local2 == "btnPoster9a"){
showText3("A poster. It reads 'NO SMOKING in the lab'.\nI guess someone didn't stick to the rules!\nBoom!", true);
} else {
if (_local2 == "btnPoster9b"){
showText3("Flower power. Flower power? What is that?\nI have heard of Shroom power... but not of flower power. Looks disturbed.", true);
} else {
if (_local2 == "btnDrawer"){
showText3("This drawer is locked. There must be something really important in it, but I can't get to it. I don't have the key.", true);
} else {
if (_local2 == "btnDoor9_1"){
if (bg09.btnDoor9_1.currentFrame == 1){
showText3("It's some kind of cabinet. OOPS!\nThis door wasn't very well attached anymore!\nIt fell out!", true);
bg09.btnDoor9_1.gotoAndStop(2);
} else {
if (bg09.btnDoor9_1.currentFrame == 2){
showText3("The left cabinet door has broken off.", true);
} else {
showText3("I have written 'Brainz' on the back of the door.\nAnd an arrow.", true);
};
};
} else {
if (_local2 == "btnSink"){
showText3("This is a sink. You can put water in it and then it goes away.", true);
} else {
if (_local2 == "btnTab"){
showText3("A water tab. Pity that it doesn't work.\nEither it's broken or there just isn't any running water here.\nAt least we have the river!", true);
} else {
if (_local2 == "btnInkPot9"){
showText3("A small jar. It is empty.\nThere's a label on it that reads simply 'Black'.", true);
} else {
if (_local2 == "btnBowl9"){
showText3("A steel bowl.", true);
} else {
if (_local2 == "btnKaraf"){
showText3("Some kind of bottle.\nThere's some kind of white liquid in it.\nIt isn't milk, because there's a skull on the label.", true);
} else {
if (_local2 == "bg09"){
showText3("So this is the laboratory...", true);
} else {
if (_local2 == "btnLockedDoor"){
showText3("One of the doors of the counter.\nIt won't budge. It's either stuck or locked.\nOr broken like so much these days!", true);
} else {
if (_local2 == "btnMouseHole9"){
showText3("It's a mouse hole! So they have mice here, too!\nHow nice! I sort of miss my house pet...", true);
} else {
if (_local2 == "btnCurtain"){
showText3("A black curtain.", true);
} else {
if (_local2 == "btnPumpkin9"){
showText3("Another pumpkin. They make the forest look scary,\nbut it suits Scary Night very much!", true);
} else {
if (_local2 == "btnHorns"){
showText3("Hahah, that's funny. Somone has put demonic horns on that pumpkin! Very cool and very clever!", true);
} else {
if (_local2 == "btnFaceInTree"){
showText3("Another face carved into a tree.\nScaaaarrrrrrry!", true);
} else {
if (_local2 == "btnTrees9"){
showText3("The forest. It's all around me...\nIt's surrounding me!\nIs it ambushing me? ... brr!", true);
} else {
if (_local2 == "btnBush9"){
showText3("Some green here. A little bush.\nNothing special about this one however.", true);
} else {
if (_local2 == "btnSkull"){
showText3("Someone has placed a skull on a stick. It's bigger than human size, so it MUST be a Scary Night prop!", true);
} else {
if (_local2 == "btnItemSkull"){
if (buttonBar.btnItemSkull.currentFrame == 1){
showText3("It's a skull.", true);
} else {
if (buttonBar.btnItemSkull.currentFrame == 2){
showText3("It's a horned skull", true);
} else {
if (buttonBar.btnItemSkull.currentFrame == 3){
showText3("It's a horned skull with bone", true);
} else {
if (buttonBar.btnItemSkull.currentFrame == 4){
showText3("Now it's more than just a skull.\nIt's an awesome evil costume!", true);
};
};
};
};
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnSignA"){
showText3("A sign near the path ahead.\nIt reads 'Stay away! Haunted!'", true);
} else {
if (_local2 == "btnItemHorns"){
showText3("Evil horns. They're a great Scary Night prop!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemCurtain"){
showText3("An old black curtain.\nThe lab doesn't really need it anymore!", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemBone"){
showText3("An old bone. I still don't know if it's a Human bone or Scary Night prop...", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnItemSign"){
showText3("A self made sign, reading the word 'Brainz'.\nIt won't fool anyone, but perhaps the brainless...", true);
} else {
if (_local2 == "btnBrainsSign"){
showText3("My self-made sign worked!\nIt has sent the zombie away, looking for brains elsewhere!", true);
} else {
if (_local2 == "btnItemInkpot"){
showText3("It's great to have an inkpot again!\nI should have taken my own with me after all...\nbut I didn't expect to need one on this trip!", true);
} else {
if (_local2 == "btnBlue9"){
showText3("These are blue flowers.\nThey look alive, but I think they dare dried flowers.\nOr preserved in some other way.", true);
} else {
if (_local2 == "btnGreen9"){
showText3("These are green flowers.\nThey look alive, but I think they dare dried flowers.\nOr preserved in some other way.", true);
} else {
if (_local2 == "btnRed9"){
showText3("These are red flowers.\nThey look alive, but I think they dare dried flowers.\nOr preserved in some other way.", true);
} else {
if (_local2 == "btnYellow9"){
showText3("These are yellow flowers.\nThey look alive, but I think they dare dried flowers.\nOr preserved in some other way.", true);
} else {
if ((((_local2 == "sprPedestalN")) || ((_local2 == "btnPedestalNorth")))){
if (bg08.sprPedestalN.currentFrame == 1){
showText3("This is an empty pedestal", true);
} else {
showText3(descriptionItemOnPedestal(bg08.sprPedestalN.currentFrame), true);
};
} else {
if ((((_local2 == "sprPedestalE")) || ((_local2 == "btnPedestalEast")))){
if (bg08.sprPedestalN.currentFrame == 1){
showText3("This is an empty pedestal", true);
} else {
showText3(descriptionItemOnPedestal(bg08.sprPedestalE.currentFrame), true);
};
} else {
if ((((_local2 == "sprPedestalS")) || ((_local2 == "btnPedestalSouth")))){
if (bg08.sprPedestalN.currentFrame == 1){
showText3("This is an empty pedestal", true);
} else {
showText3(descriptionItemOnPedestal(bg08.sprPedestalS.currentFrame), true);
};
} else {
if ((((_local2 == "sprPedestalW")) || ((_local2 == "btnPedestalWest")))){
if (bg08.sprPedestalN.currentFrame == 1){
showText3("This is an empty pedestal", true);
} else {
showText3(descriptionItemOnPedestal(bg08.sprPedestalW.currentFrame), true);
};
} else {
if (_local2 == "btnItemCandle"){
showText3("It's a black candle.\nCandles aren't normally black, are they?\nThis one must be special...", true);
wndTextBox.btnTake.alpha = 0.2;
} else {
if (_local2 == "btnLabBook"){
hideTextBox();
buttonBar.y = -436;
sprChar.x = -400;
bg09.btnLabBook.x = -800;
bg09.btnBook9.x = 0;
} else {
if ((((_local2 == "btnBook9")) || ((_local2 == "btnClose8")))){
showText3("Woah, that was describing the moment the Heroine came here, but... the researchers were writing about a cure for a disease! The legend tells they made destructive AI robots here!", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg09.btnBook9.x = -800;
buttonBar.y = 436;
sprChar.x = 132;
sprChar.scaleX = 1;
} else {
if (_local2 == "btnCandle9"){
showText3("There is a small black candle in the cabinet.", true);
} else {
if (_local2 == "btnPath8"){
showText3("This path leads back to the docks.", true);
wndTextBox.btnTake.gotoAndStop(3);
} else {
if (_local2 == "btnRuins"){
showText3("Some leftovers of a building. Ruins.\nThis must be from the house where my ancestor lived.", true);
} else {
if (_local2 == "btnSign8"){
showText3("A sign. It probably tells what this place is, these ruins. I can't read it. It's weathered and painted over.", true);
} else {
if (_local2 == "btnFace8"){
showText3("More scary faces in trees. They're everywhere!", true);
} else {
if (_local2 == "btnJarOpening"){
if (bg08.btnJarOpening.currentFrame < 3){
bg08.btnJarOpening.gotoAndStop((bg08.btnJarOpening.currentFrame + 1));
} else {
bg08.btnJarOpening.x = 800;
bg08.sprCharCircle.gotoAndStop(2);
iPhase = 100;
bg08.btnHouse.alpha = 40;
bg08.btnHouse.x = 85;
iCountDown = 5;
bg08.btnBliksem.x = 0;
bg08.btnBliksem.gotoAndPlay(26);
};
} else {
if ((((_local2 == "btnTake")) && ((wndTextBox.btnTake.alpha == 1)))){
wndTextBox.btnTake.alpha = 0.2;
takeItem(strSelectedItem);
strBufferItem = "";
} else {
if ((((_local2 == "btnUse")) && ((wndTextBox.btnUse.alpha == 1)))){
wndTextBox.btnUse.alpha = 0.2;
if (strBufferItem == ""){
strBufferItem = strSelectedItem;
hideTextBox();
btnUseNotification.y = 8;
};
} else {
if ((((((_local2 == "wndTextBox")) || ((_local2 == "txt")))) || ((_local2 == "btnClose")))){
hideTextBox();
strBufferItem = "";
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function takeItem(_arg1):void{
var _local2:*;
if (_arg1 == "btnHairTies"){
bg01.wndCanGone.alpha = 1;
bg01.btnHairTies.x = -100;
arrButtonBar.push(buttonBar.btnItemHairTies);
updateButtonBar();
if (iPhase == 1){
showText3("The history of this world makes me want to meet MY history. I have my precious little jar with me. Now all I need is to pick up a weapon, because there be dragons out there! Then I'm off!", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
} else {
showText3("Grabbing this little jar with me. There's no way I'm going to leave the house without it!", false);
};
} else {
if (_arg1 == "btnUmbrella"){
showText3("No need. It's not raining outside.\nIn fact, it is only rarely raining these days.\nIt is quite disturbing.", false);
} else {
if (_arg1 == "btnMemoryList"){
showText3("Green is good, red is bad. Get grass for the cows.\nNo need to take this paper with me,\nI think I can manage remembering this.", false);
} else {
if (_arg1 == "btnSword"){
if ((((bg01.wndCanGone.alpha == 1)) && ((iPhase == 1)))){
hideTextBox();
wndWeaponChoice.gotoAndStop(1);
wndWeaponChoice.x = 15;
buttonBar.btnItemWeapon.gotoAndStop(1);
iDisposition = 0;
} else {
showText3("It's nice to have with me when I feel unsafe, but right now - here at home - I feel perfectly safe. Don't need to pick that up.", false);
};
} else {
if (_arg1 == "btnFeather"){
if ((((bg01.wndCanGone.alpha == 1)) && ((iPhase == 1)))){
hideTextBox();
wndWeaponChoice.gotoAndStop(2);
wndWeaponChoice.x = 15;
buttonBar.btnItemWeapon.gotoAndStop(2);
iDisposition = 1;
} else {
showText3("I don't feel like writing right now.\nNo inspiration.", false);
};
} else {
if (_arg1 == "btnBat"){
if ((((bg01.wndCanGone.alpha == 1)) && ((iPhase == 1)))){
hideTextBox();
wndWeaponChoice.gotoAndStop(3);
wndWeaponChoice.x = 15;
buttonBar.btnItemWeapon.gotoAndStop(3);
iDisposition = 2;
} else {
showText3("I don't have anyone to play ball games with.\nThere's no reason for me to pick it up now.", false);
};
} else {
if (_arg1 == "btnCharacter"){
showText3("I don't have anything to say to myself.\nI try not to talk to myself. Trying to act sane...\nDamn, I'm talking to myself again, aren't I?", false);
} else {
if (_arg1 == "btnHarp"){
if (iDisposition == 1){
showText3("I'm a rogue, so all is fair game!\nI silently sneak behind the Seer's back...\nand 'tadaa!' I've got a musical instrument!", false);
bg02.btnHarp.x = 800;
bg02.btnHarpGone.x = 602.7;
bg02.btnHarpGone.mouseEnabled = false;
arrButtonBar.push(buttonBar.btnItemHarp);
updateButtonBar();
} else {
showText3("I don't want to steal the Seer's harp!\nWhat are you thinking?", false);
};
} else {
if (_arg1 == "btnHarpGone"){
if (bg02.btnHarpGone.alpha == 0){
showText3("I can't take the harp! It is the seer's harp...\nShe doesn't look mean, but...\nshe is guarding it with her life!", false);
};
} else {
if (_arg1 == "btnRiet"){
if (buttonBar.btnItemReed.x < 0){
arrButtonBar.push(buttonBar.btnItemReed);
updateButtonBar();
showText3("This reed may be of use.\nAt least for something...\nIn some situations...", false);
} else {
showText3("I already have some reed.\nI can always get more later if needed.", false);
};
} else {
if (_arg1 == "btnTwistedForest"){
if (iPhase < 7){
showText3("I don't want to go anywhere yet. I want to meet my ancestor, the heroine, but I don't know how. She's been dead for generations! I have to talk to the seer first, she'll know!", false);
} else {
showText3("I'm in the 'twisted forest' now.\nPretty scary, with all those twisted trees!\nI have to be careful. Trolls live here.", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg03.y = 2;
bg02.y = -800;
};
} else {
if (_arg1 == "btnPath"){
if (iPhase < 7){
showText3("I don't want to go anywhere yet. I want to meet my ancestor, the heroine, but I don't know how. She's been dead for generations! I have to talk to the seer first, she'll know!", false);
} else {
showText3("I followed the river to the boat-house.\nThere's a well here, but it's dry.\nAlways been that way as far as I can recall.", false);
if (bg05.btnBunny.x > 700){
bg05.btnBunny.x = 528;
};
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg05.y = 2;
bg02.y = -800;
};
} else {
if (_arg1 == "btnForestPath"){
if (bTrollTickled == true){
showText3("Advantage of being a rogue - simply snuck past the troll.\nNow this looks like some kind of old forestry.", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg04.y = 2;
bg03.y = -800;
} else {
if (bTrollDead == true){
showText3("So this is what the evil troll was guarding...\nLooks like some kind of old forestry.\nI wonder why the troll was interested in it.", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg04.y = 2;
bg03.y = -800;
};
};
} else {
if (_arg1 == "btnPath5"){
showText3("Okay, I'm back at the clearing with the lake.\nHm, what shall I do next...?", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg05.y = -800;
bg02.y = 2;
} else {
if (_arg1 == "sprSeer"){
if (iDisposition == 2){
if (iPhase == 4){
showText3("You... I can sense something BAD in you. Something evil.\nWhatever you're up to, I don't want to talk to you.\nGo find your fortune elsewhere.", false);
} else {
if (iPhase == 5){
showText3("Okay, okay! My butt is on fire. Don't hurt me, I'll talk! Apart from the bad I sensed in you, I also sensed you are special. You are indeed the offspring of the legendary heroine!", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 6;
} else {
if (iPhase == 6){
showText3("If you want to meet your ancestor, you need to find a red flower. You also need to get yourself a familiar. When you have both of those, return to me. Please don't hurt me anymore!", false);
iPhase = 7;
} else {
if (iPhase == 7){
if (buttonBar.btnItemBunny.x > 0){
showText3("You don't yet have the items I asked you to get.\nGo find them before you return to me,\nyou evil BULLY! And a rabbit is no suitable familar!", false);
} else {
showText3("You don't yet have the items I asked you to get.\nGo find them before you return to me,\nyou evil BULLY!", false);
};
} else {
if (iPhase == 8){
showText3("Ah, I see you got a familiar and flower. Now pay attention very carefully, because I'm going to tell you only once what you need to do...", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 9;
} else {
if (iPhase == 9){
showText3("You have to follow the river, through the cave overthere. I hope you're not afraid of the dark, because it's a long tunnel. At the end of the tunnel you hop off.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 10;
} else {
if (iPhase == 10){
showText3("Where the Heroine lived you will find a summoning circle with pedestals. You need to make the right kind of offer to the right pedestal and stand in the middle.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 11;
} else {
if (iPhase == 11){
showText3("With the sacrifices placed upon the pedestals, you have to hold or put on something that belonged to your ancestor. The formula for summoning her is as follows...", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 12;
} else {
if (iPhase == 12){
showText3("Leave behind your weapon of might -\nand look towards the light.\nWith your familiar to your right - and flowers at your side.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 13;
} else {
if (iPhase == 13){
showText3("There, that's all you need to know.\nFrom here on you're on your own.", false);
iPhase = 14;
} else {
showText3("You know everything you need.\nNow leave me be, you evil bully!", false);
};
};
};
};
};
};
};
};
};
};
} else {
if (iPhase < 7){
if (iDisposition == 0){
showText3("I sensed it as you approached; you are descendant of the legendary heroine! If you want to meet her, get a green flower and find yourself a familar. Then come talk to me again.", false);
} else {
showText3("I sensed it as you approached; you are descendant of the legendary heroine! If you want to meet her, get a yellow flower and find yourself a familar. Then come talk to me again.", false);
};
iPhase = 7;
} else {
if (iPhase == 7){
if (buttonBar.btnItemBunny.x > 0){
showText3("You don't yet have the items I asked you to get.\nGo find them before you return to me.\nA rabbit is no suitable familar, by the way.", false);
} else {
showText3("You don't yet have the items I asked you to get.\nGo find them before you return to me,\nthen I will explain more what to do next.", false);
};
} else {
if (iPhase == 8){
showText3("Ah, I see you got a familiar and flower. Now pay attention very carefully, because I'm going to tell you only once what you need to do...", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 9;
} else {
if (iPhase == 9){
showText3("You have to follow the river, through the cave overthere. I hope you're not afraid of the dark, because it's a long tunnel. At the end of the tunnel you hop off.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 10;
} else {
if (iPhase == 10){
showText3("Where the Heroine lived you will find a summoning circle with pedestals. You need to make the right kind of offer to the right pedestal and stand in the middle.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 11;
} else {
if (iPhase == 11){
showText3("With the sacrifices placed upon the pedestals, you have to hold or put on something that belonged to your ancestor. The formula for summoning her is as follows...", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 12;
} else {
if (iPhase == 12){
showText3("Leave behindyour weapon of might -\nand look towards the light.\nWith your familiar to your right - and flowers at your side.", false);
wndTextBox.btnTake.gotoAndStop(5);
wndTextBox.btnTake.alpha = 1;
iPhase = 13;
} else {
if (iPhase == 13){
showText3("There, that's all you need to know.\nFrom here on you're on your own.", false);
iPhase = 14;
} else {
showText3("You know everything you need.\nI don't have anything to add.\nGood luck on your journey.", false);
};
};
};
};
};
};
};
};
};
} else {
if (_arg1 == "btnFlowersGreen"){
buttonBar.btnItemFlower.gotoAndStop(1);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFamiliar.x > 0)))){
iPhase = 8;
};
};
showText3("I took one of the green flowers. Quite special!\nI think these are called green daylily.", false);
} else {
if (_arg1 == "btnGreen9"){
buttonBar.btnItemFlower.gotoAndStop(1);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
};
showText3("I took one of the green flowers. Quite special!\nI think these are called green daylily.", false);
} else {
if (_arg1 == "btnBlue9"){
buttonBar.btnItemFlower.gotoAndStop(4);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
};
showText3("I took one of the blue flowers.\nI don't know what this one is called.\nThey don't grow anywhere near my house.", false);
} else {
if (_arg1 == "btnBerry"){
if (iDisposition == 0){
showText3("I took a delicious berry from the berry bush.", false);
lastObj.x = -200;
if (buttonBar.btnItemBerries.x < 0){
arrButtonBar.push(buttonBar.btnItemBerries);
updateButtonBar();
};
iBerriesInInv++;
} else {
showText3("I'm not interested in berries.\nI am not hungry, either.", false);
};
} else {
if (_arg1 == "btnFlowersYellow"){
buttonBar.btnItemFlower.gotoAndStop(2);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFamiliar.x > 0)))){
iPhase = 8;
};
};
showText3("I took one of the Yellow flowers.\nIt is a tulip. Probably the guy won't miss one tulip...", false);
} else {
if (_arg1 == "btnYellow9"){
buttonBar.btnItemFlower.gotoAndStop(2);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
};
showText3("I took one of the Yellow flowers.\nIt is a tulip. Probably the guy won't miss one tulip...", false);
} else {
if (_arg1 == "btnFlowersRed"){
buttonBar.btnItemFlower.gotoAndStop(3);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
if ((((iPhase < 8)) && ((buttonBar.btnItemFamiliar.x > 0)))){
iPhase = 8;
};
};
showText3("I took a red flower. It's an orchid, I believe.", false);
} else {
if (_arg1 == "btnRed9"){
buttonBar.btnItemFlower.gotoAndStop(3);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
};
showText3("I took a red flower. It's an orchid, I believe.", false);
} else {
if (_arg1 == "btnBeaver"){
if (iFamiliar > 0){
showText3("I don't need to pick up the beaver. The little fellow is better off spending time around its dam.", false);
} else {
wndFamiliar.gotoAndStop(3);
wndFamiliar.x = 0;
hideTextBox();
};
} else {
if (_arg1 == "btnLittleSquid"){
if (iFamiliar > 0){
showText3("I don't need to pick up the squidling. The little fellow is better off in its own pond.", false);
} else {
wndFamiliar.gotoAndStop(2);
wndFamiliar.x = 0;
hideTextBox();
};
} else {
if (_arg1 == "btnSnakeBowl"){
if (iFamiliar > 0){
showText3("I don't need to pick up the snake. I rather stay away before I become its next meal.", false);
} else {
wndFamiliar.gotoAndStop(1);
wndFamiliar.x = 0;
hideTextBox();
};
} else {
if (_arg1 == "btnBunny"){
if (bg05.btnBunny.currentFrame == 2){
arrButtonBar.push(buttonBar.btnItemBunny);
updateButtonBar();
bg05.btnBunny.x = -200;
showText3("Awesome! The rodent is mine!", false);
} else {
if (bBunnySeenBefore == true){
showText3("Hmpf! Not even close! It sees me coming from far away and it has become suspicious of me. I can't catch it.", false);
} else {
showText3("AAh! I ALMOST got it! The rodent was faster!\nDamn. Can't catch it... Oh well.\nThis is like trying to hit a fly with a hammer.", false);
bBunnySeenBefore = true;
};
bg05.btnBunny.x = 850;
};
} else {
if (_arg1 == "btnStone"){
showText3("This may be of use.", false);
bg03.btnStone.x = 800;
arrButtonBar.push(buttonBar.btnItemStone);
updateButtonBar();
} else {
if (_arg1 == "btnSignBack"){
showText3("Okay, I'm back at the clearing with the lake.\nPhew. That twisted forests creeps me out!", false);
wndTextBox.btnTake.alpha = 0.2;
wndTextBox.btnUse.alpha = 0.2;
bg03.y = -800;
bg02.y = 2;
} else {
if (_arg1 == "btnTroll"){
showText3("The troll doesn't seem very- nnhghhh! talkative!\nArghhhnnnhhh!", false);
iStruggle = (Math.ceil((Math.random() * 3)) + 4);
showStruggleShield();
bg03.btnTrollBreasts.x = 140;
} else {
if (_arg1 == "btnItemBerries"){
if (iBerriesInInv == 1){
showText3("Nam. I ate the berry.\n....\nI'm not feeling that much difference. But it's just one berry!", false);
} else {
if (iBerriesInInv < 5){
showText3((("Nam. I ate " + iBerriesInInv) + " berries.\nI feel a little faster."), false);
} else {
showText3((("I ate " + iBerriesInInv) + " berries.\nI feel a lot faster!\nThese berries are awesome!"), false);
};
};
iBerriesEaten = (iBerriesEaten + iBerriesInInv);
iBerriesInInv = 0;
removeFromButtonBar(buttonBar.btnItemBerries);
} else {
if (_arg1 == "btnPath4"){
bg04.y = -800;
bg03.y = 2;
showText3("Back here... I really don't like this forest.\nBetter get out of here quick.", false);
} else {
if (_arg1 == "btnSnakeTree"){
showText3("I can't reach the snake. Besides, it may not be wise to disturb it.", false);
} else {
if (_arg1 == "btnHammer"){
showText3("A hammer and nails. This could come in useful.", false);
bg04.btnHammerGone.x = 178.8;
arrButtonBar.push(buttonBar.btnItemHammer);
updateButtonBar();
} else {
if (_arg1 == "btnBoat"){
if (iPhase < 14){
showText3("I don't have a need for it now,\nso I'm certainly not going to lug it around!\nBesides, it won't float. It has a gaping gap in the bottom.", false);
} else {
showText3("If I need to go down the river, I better take this boat.\nBut it's useless like this.\nThere's an enormous hole in the bottom.", false);
bg05.btnBoat.x = -200;
arrButtonBar.push(buttonBar.btnItemBoat);
updateButtonBar();
};
} else {
if (_arg1 == "btnRope"){
showText3("A rope. This could come in useful.", false);
bg05.btnRope.x = -200;
arrButtonBar.push(buttonBar.btnItemRope);
updateButtonBar();
} else {
if (_arg1 == "btnBranch"){
showText3("I broke off the branch.", false);
bg03.btnBranch.x = -200;
arrButtonBar.push(buttonBar.btnItemBranch);
updateButtonBar();
} else {
if (_arg1 == "btnPlayer"){
if (bTrollDead == true){
showText3("I told the saw player that the evil troll is dead.\nHe was so happy to hear that he thanked me 10 times and gave me his rusty old saw. Then he walked off into the forest.", false);
bg05.btnPlayer.x = 800;
arrButtonBar.push(buttonBar.btnItemSaw);
updateButtonBar();
} else {
showText3("He sings a sad song about his fear for the forest troll:\n'Oh poor me, the troll in the forest is spying on me,\nI don't dare to go into the forest, for she'll eat me alive!'", false);
};
} else {
if (_arg1 == "btnSaw"){
bg05.btnSaw.x = 800;
arrButtonBar.push(buttonBar.btnItemSaw);
updateButtonBar();
showText3("That should come in useful. At lest I can think of much better things to do with a saw than making crappy noise!", false);
} else {
if (_arg1 == "btnChainsaw"){
showText3("I don't want it. Things like this require electricity... and there's NO electricity ever since they used the EMP, remember! This thing is useless!", false);
} else {
if (_arg1 == "sprZombie"){
if (sprChar.sprChar.currentFrame == 4){
if (iPhase < 52){
iPhase = 52;
};
showText3("Step aside, you unworthy zombie!\nI am the zombie-king!\nI will pass!", false);
} else {
showText3("BRAINNNNNZZZZZ!\nBRAINZZZZZ-BRAINZZZZZZZ!", false);
};
} else {
if (_arg1 == "btnPathForward"){
bg07.y = -500;
bg09.y = 2;
showText3("This is some kind of laboratory. Or at least it was.\nGoodness, what happened to this place?\nIt sends shivers down my spine...", false);
} else {
if (_arg1 == "btnPath9"){
bg09.y = -500;
bg07.y = 2;
showText3("Phew! Back at the docks. That lab creeps me out!", false);
} else {
if (_arg1 == "btnSkull"){
if (iDisposition == 2){
bg07.btnNoSkull.x = 137.2;
bg07.btnSkull.x = -200;
arrButtonBar.push(buttonBar.btnItemSkull);
updateButtonBar();
showText3("Maybe I can use this for something...", false);
} else {
showText3("Nah, I think I'd rather not touch it.\nYou know, just in case!", false);
};
} else {
if (_arg1 == "btnBone"){
if (iDisposition == 2){
bg07.btnNoBone.x = 424.7;
bg07.btnBone.x = -200;
arrButtonBar.push(buttonBar.btnItemBone);
updateButtonBar();
showText3("Bones aren't quite my thing...\nUnless they're in my body.\nBut maybe I can use it for something.", false);
} else {
showText3("What are you thinking!?\nI don't want to touch that!\nWhat if it's not a prop, but a Human bone!?", false);
};
} else {
if (_arg1 == "btnHorns"){
if (iDisposition == 2){
bg09.btnHorns.x = -200;
arrButtonBar.push(buttonBar.btnItemHorns);
updateButtonBar();
showText3("I'm evil... I need these horns!\nGoing to put them to good use!\nMuahahaha!", false);
} else {
showText3("Nah, it looks cute on that fellow!\nI don't want to disturb it's evilness!\nHeehee!", false);
};
} else {
if (_arg1 == "btnCurtain"){
showText3("Oh, look at this! The curtain was hiding a back-room!\nWho would have guessed!?", false);
bg09.btnCurtain.x = -300;
arrButtonBar.push(buttonBar.btnItemCurtain);
updateButtonBar();
} else {
if (_arg1 == "btnPathRight"){
if (iPhase < 52){
showText3("The zombie is blocking my path.\nHe's not letting me through.\nWhat's worse, he wants to eat my brains!", false);
} else {
bg07.y = -500;
bg08.y = 2;
sprChar.x = -200;
hideTextBox();
};
} else {
if (_arg1 == "btnDoor9_1"){
if (bg09.btnDoor9_1.currentFrame == 3){
showText3("I better take this with me.\nIt's time to play a trick on a zombie!", false);
bg09.btnDoor9_1.x = -200;
arrButtonBar.push(buttonBar.btnItemSign);
updateButtonBar();
} else {
showText3("The door of the cabinet isn't useful to me.\nI'll leave it on the ground.", false);
};
} else {
if (_arg1 == "sprPedestalN"){
reclaimItem(bg08.sprPedestalN);
} else {
if (_arg1 == "sprPedestalE"){
reclaimItem(bg08.sprPedestalE);
} else {
if (_arg1 == "sprPedestalW"){
reclaimItem(bg08.sprPedestalW);
} else {
if (_arg1 == "sprPedestalS"){
reclaimItem(bg08.sprPedestalS);
} else {
if (_arg1 == "btnCandle9"){
showText3("A candle. I'll take this with me!", false);
bg09.btnCandle9.x = -800;
arrButtonBar.push(buttonBar.btnItemCandle);
updateButtonBar();
} else {
if (_arg1 == "btnPath8"){
bg08.y = -500;
bg07.y = 2;
hideTextBox();
sprChar.x = 132;
sprChar.scaleX = 1;
} else {
_local2 = Math.floor((Math.random() * 5));
if (_local2 == 0){
showText3("No, I don't want to drag it along. I don't see much sense in that.", false);
} else {
if (_local2 == 1){
showText3("I don't think it will be of use to me. I'll leave it where it is.", false);
} else {
if (_local2 == 2){
showText3("I don't see why I would want to carry that with me.", false);
} else {
if (_local2 == 3){
showText3("It can stay where it is now. I don't need to bring this along.", false);
} else {
showText3("I don't want to carry it around. If I need it later, I'll come back for it.", false);
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}
public function combine(_arg1, _arg2):Boolean{
var _local4:*;
var _local5:*;
var _local3:* = false;
if (_arg1 == _arg2){
showText3("I can't use an item with itself...", false);
_local3 = true;
} else {
if ((((_arg1 == "btnBat")) && ((_arg2 == "btnCharacter")))){
showText3("No! I don't want to spank myself!\nI'm not a masochist!", false);
_local3 = true;
} else {
if ((((_arg1 == "btnShoes")) && ((_arg2 == "btnCharacter")))){
showText3("I'll put my shoes on before I leave the house.\nDon't worry!\nThe last thing I want to get is 'cold feet'.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnCoat")) && ((_arg2 == "btnCharacter")))){
showText3("It's an old coat. I'm not feeling cold.\nI also don't feel like dressing games.\nIt stays where it is!", false);
_local3 = true;
} else {
if ((((_arg1 == "btnMouse")) && ((_arg2 == "btnCharacter")))){
showText3("No, Jeromme isn't coming with me. This trip I must make alone.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnTelephone")) && ((_arg2 == "btnCharacter")))){
showText3("What numbers shall I press this time?\n1, 2, 3, 4... Nothing happens. Like usual.\nThis thing doesn't really do anything.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnRemoteControl")) && ((_arg2 == "btnCharacter")))){
showText3("Pressing buttons. 1, 2, 3, 4.\nFeels funny, but doesn't do anything.\nNothing here works.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnSword")) && ((_arg2 == "btnCharacter")))){
showText3("No! I don't want to use the samurai sword on me!\nAre you crazy?\nI don't feel like kamikaze today!", false);
_local3 = true;
} else {
if ((((_arg1 == "btnCookies")) && ((_arg2 == "btnCharacter")))){
showText3("No, I don't want to eat any crumbs. I'm not hungry.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnCookies")) && ((_arg2 == "btnMouseHole")))){
if (iLevelCompletion == 100){
showText3("I already fed my house-mouse pet. No need to do it again.", false);
_local3 = true;
} else {
iLevelCompletion = 100;
showText3("Jeromme! Here's some nammy crumbs for you!\nDon't you just love my little mouse pet?\nJeromme loves crumbs!", false);
bg01.wndCharBend.x = 77.9;
bg01.btnCharacter.x = -200;
bg01.btnCookies.x = -200;
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemHairTies")) && ((_arg2 == "btnCharacter")))){
showText3("This is not the time to open the little jar.", false);
_local3 = true;
} else {
if ((((_arg1 == "sprChar")) && ((_arg2 == "btnHarpGone")))){
if (bg02.btnHarpGone.alpha == 0){
showText3("I don't think I want to try.\nI don't know how to play the harp.\nOr, I know, but I'm no good at it!", false);
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemWeapon")) && ((_arg2 == "sprSeer")))){
if (iDisposition == 2){
bActionInProgress = true;
sprChar.x = -300;
bg02.sprSeer.x = 800;
bg02.sprSpanking.x = 414;
bg02.sprSpanking.gotoAndPlay(1);
showText3("Take this, miss-I-am-so-perfect-and-I-know-it-all!\nA little bit of encouraging often helps...", false);
if (iPhase == 4){
iPhase = 5;
};
bg02.sprSeer.gotoAndStop(2);
} else {
if (iDisposition == 1){
showText3("I could tickle her... but I don't want to turn her against me!", false);
} else {
showText3("I don't want to cut the seer.\nShe is a kind and helpful person.\nIt would be bad to hurt her!", false);
};
};
_local3 = true;
} else {
if ((((_arg1 == "btnDam")) && ((_arg2 == "btnItemReed")))){
if (bg05.btnBeaver.x > 700){
showText3("I put the reed on the dam.\n Oh look! The little fella who built it must have been hungry!\nHe came to eat it!", false);
removeFromButtonBar(buttonBar.btnItemReed);
updateButtonBar();
bg05.btnBeaver.x = 212;
} else {
showText3("There's no reason to put more reed on the dam.", false);
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemStone")) && ((_arg2 == "btnBunny")))){
showText3("Yay! I managed to hit the rodent and knock it unconscious!\nThe stone bumped into the river and disappeared.", false);
removeFromButtonBar(buttonBar.btnItemStone);
updateButtonBar();
bg05.btnBunny.gotoAndStop(2);
_local3 = true;
} else {
if ((((_arg1 == "btnItemBunny")) && ((_arg2 == "btnDuckPond")))){
showText3("I don't know if I should have thrown the bunnyrabbit into the lake, but that little squidling seems happy with it.\nProbably didn't ever eat a bunnyrabbit-delicacy!", false);
removeFromButtonBar(buttonBar.btnItemBunny);
bg02.btnLittleSquid.x = 90;
_local3 = true;
} else {
if ((((_arg1 == "btnItemWeapon")) && ((_arg2 == "btnTroll")))){
if (iDisposition == 2){
showText3("No. That is an EVIL troll. And I'm a bad girl, too!\nEvil guys have to help each other.\nAlready too many goodiegoodies make our lives difficult!", false);
} else {
if (iDisposition == 1){
bg03.btnTrollTk.gotoAndPlay(1);
bg03.btnTrollTk.x = 325;
sprChar.x = -200;
bg03.btnTroll.x = 800;
showText3("Nhhhghhhmmnn! I'm trying to... nnghh\ntickle that troll, but- but-\nShe-nngghh-she only enjoys it! nnghh!", false);
iStruggle = (Math.ceil((Math.random() * 3)) + 4);
showStruggleShield();
bTrollTickled = true;
} else {
if (iBerriesEaten > 9){
bTrollDead = true;
showText3("DIE, evil troll!", false);
sprChar.x = -200;
bg03.btnTroll.x = 800;
bg03.btnTrollKill.x = 0;
} else {
sprChar.x = -200;
bg03.btnTrollBreasts.x = 140;
bg03.btnTroll.x = 800;
showText3("Nhhhghhhmmnn! I couldn't... nnghh\nkill the evil troll... I wasn't - hnnngghh\nI wasn't fast enough... nnghh!", false);
iStruggle = (Math.ceil((Math.random() * 3)) + 4);
showStruggleShield();
};
};
};
_local3 = true;
} else {
if ((((_arg1 == "btnSnakeTree")) && ((_arg2 == "btnBroom")))){
showText3("Err, I could try to knock the snake out of the tree with the broom, but it would probably anger the snake. Besides, it's wrapped around the branch.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnItemBunny")) && ((_arg2 == "btnBowl4")))){
showText3("Woah. That is one fast snake! I had barely put the bait into the bowl and he has already eaten it whole!", false);
bg04.btnSnakeGone.x = 615.15;
bg04.btnSnakeBowl.x = 428.3;
removeFromButtonBar(buttonBar.btnItemBunny);
_local3 = true;
} else {
if ((((_arg1 == "btnItemBranch")) && ((_arg2 == "btnItemRope")))){
showText3("I tied the rope to the end of the branch.\nNow I have an improvised fishing rod.", false);
removeFromButtonBar(buttonBar.btnItemRope);
buttonBar.btnItemBranch.gotoAndStop(2);
updateButtonBar();
_local3 = true;
} else {
if ((((_arg1 == "btnItemBranch")) && ((_arg2 == "btnItemBunny")))){
if (buttonBar.btnItemBranch.currentFrame == 2){
showText3("I attached one of the bunny-rabbit legs to the end of the fishing pole. Now it has bait and I should be able to use it!", false);
buttonBar.btnItemBranch.gotoAndStop(3);
updateButtonBar();
_local3 = true;
} else {
showText3("I can't combine these two items.", false);
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemBranch")) && ((_arg2 == "btnRiver5")))){
if (buttonBar.btnItemBranch.currentFrame == 1){
showText3("Stirring through the river water with the branch doesn't seem to have any effect.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 2){
showText3("I tried to catch something from the river...\nbut nothing here wants to bite.\nMaybe I should use some bait.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 3){
showText3("I tried to catch something from the river...\nbut nothing here wants to bite.\nI guess nothing is interested in a rodent-leg. No sharks here.", false);
_local3 = true;
};
};
};
} else {
if ((((_arg1 == "btnItemBranch")) && ((_arg2 == "btnRiver")))){
if (buttonBar.btnItemBranch.currentFrame == 1){
showText3("Stirring through the river water with the branch doesn't seem to have any effect.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 2){
showText3("I tried to catch something from the river...\nbut nothing here wants to bite.\nMaybe I should use some bait.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 3){
showText3("I tried to catch something from the river...\nbut nothing here wants to bite.\nI guess nothing is interested in a rodent-leg. No sharks here.", false);
_local3 = true;
};
};
};
} else {
if ((((_arg1 == "btnItemBranch")) && ((_arg2 == "btnDuckPond")))){
if (buttonBar.btnItemBranch.currentFrame == 1){
showText3("Stirring through the water with the branch doesn't seem to have any effect.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 2){
showText3("I tried to catch something from the duck pond...\nbut nothing here wants to bite.\nMaybe I should use some bait.", false);
_local3 = true;
} else {
if (buttonBar.btnItemBranch.currentFrame == 3){
showText3("Oh crap! The creature I tried to catch is a bit bigger than me and, HAHAHA! It caught me instead! Hahahaha! Make it stop! Hahahaha!", false);
sprChar.x = -200;
bg02.sprOctopus.gotoAndPlay(1);
bg02.sprOctopus.x = 49;
iLevelCompletion = (iLevelCompletion + 25);
removeFromButtonBar(buttonBar.btnItemBranch);
_local3 = true;
};
};
};
} else {
if ((((_arg1 == "btnItemWeapon")) && ((_arg2 == "btnPlayer")))){
if (iDisposition == 2){
bg05.btnPlayer.x = 800;
bg05.btnSaw.x = 330;
showText3("Haha! Did you see that guy run? Just approaching him with my bat raised, the fear jumped into his body! Gotta love being bad!", false);
_local3 = true;
} else {
showText3("Yes, the music he's making, if you can even call it that, is horrible... but to attack him... nah.", false);
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemSaw")) && ((_arg2 == "btnTree")))){
showText3("This tree isn't suitable for sawing.\nAll you'd get is bent planks.\nThey're useless!", false);
_local3 = true;
} else {
if ((((_arg1 == "btnItemSaw")) && ((_arg2 == "btnForestTree")))){
if (bPlanksCut == false){
bPlanksCut = true;
showText3("Maybe an axe would have been useful...\nbut with some effort...\nThere, cut some wood out of the tree.", false);
arrButtonBar.push(buttonBar.btnItemWood);
updateButtonBar();
} else {
showText3("I already cut planks out of the back of that tree.\nI don't need more and it was a hell of a work!\nAlso don't want to risk the tree breaking off.", false);
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemSaw")) && ((_arg2 == "btnItemBoat")))){
if ((((bg02.sprSeer.currentFrame == 3)) && ((buttonBar.btnItemBoat.currentFrame == 1)))){
showText3("Pff. Great. Now the hole in the boat is evern BIGGER!\nI wonder if it's big enough...\nI think it'll do?", false);
buttonBar.btnItemBoat.gotoAndStop(3);
_local3 = true;
} else {
if (bg02.sprSeer.currentFrame == 3){
showText3("I think the hole may be big enough.\nI don't want to risk making things worse!", false);
_local3 = true;
} else {
showText3("No! I don't want to make matters worse than they already are!\nThere's a huge hole in the boat. I need to fix it somehow.\nBut how...?", false);
_local3 = true;
};
};
} else {
if ((((_arg1 == "btnItemBoat")) && ((_arg2 == "btnRiver5")))){
showText3("I'm in the wrong place. This is a dead end of the river.\nI better start up-stream from the cave entrance.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnItemBoat")) && ((_arg2 == "btnRiver")))){
if (buttonBar.btnItemBoat.currentFrame == 2){
showText3("Off I go!", false);
proceedToLevel3();
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemBoat")) && ((_arg2 == "sprSeer")))){
if (bg02.sprSeer.currentFrame == 3){
if (buttonBar.btnItemBoat.currentFrame == 3){
showText3("There! That huge red inflated butt fit exactly to plug the hole in the boat!\nI'm a genius! Now I can set forth my journey!", false);
bg02.sprSeer.x = 800;
removeFromButtonBar(buttonBar.btnItemBoat);
bg02.btnHarpGone.x = 604.05;
bg02.btnBoatInRiver.gotoAndStop(2);
bg02.btnBoatInRiver.x = 611;
_local3 = true;
} else {
showText3("Hm. Instead of repairing the hole, I could also try to plug it...\nBut not with the Seer. Her butt is WAY too big to fit.", false);
_local3 = true;
};
} else {
if (iDisposition == 2){
showText3("I could try spanking her with the boat...\nbut it is way too big and heavy to swing around!", false);
_local3 = true;
} else {
showText3("I can show this to the Seer... but I know for certain she can't help me fix it.", false);
_local3 = true;
};
};
} else {
if ((((_arg1 == "sprChar")) && ((_arg2 == "btnBoatInRiver")))){
showText3("Off I go!", false);
proceedToLevel3();
_local3 = true;
} else {
if ((((_arg1 == "btnItemHammer")) && ((_arg2 == "btnItemBoat")))){
if (buttonBar.btnItemWood.x < 0){
showText3("Hammering a couple of nails into the boat isn't going to help much... I need more material in order to repair it!", false);
_local3 = true;
} else {
showText3("There! Not bad for my first time, I'd say!\nThe boat has been fixed! Hopefully it won't leak!", false);
removeFromButtonBar(buttonBar.btnItemWood);
buttonBar.btnItemBoat.gotoAndStop(2);
_local3 = true;
};
} else {
if ((((_arg1 == "btnItemHammer")) && ((_arg2 == "btnItemWood")))){
if (buttonBar.btnItemBoat.x < 0){
showText3("I could build something with a hammer and nails... but it makes little sense.", false);
_local3 = true;
} else {
showText3("There! Not bad for my first time, I'd say!\nThe boat has been fixed! Hopefully it won't leak!", false);
removeFromButtonBar(buttonBar.btnItemWood);
buttonBar.btnItemBoat.gotoAndStop(2);
_local3 = true;
};
} else {
if ((((_arg1 == "btnPlayer")) && ((_arg2 == "btnItemHarp")))){
showText3("I offered this beautiful harp in exchange for the rusty saw. Hopefully that should save my ears!", false);
removeFromButtonBar(buttonBar.btnItemHarp);
arrButtonBar.push(buttonBar.btnItemSaw);
updateButtonBar();
bg05.btnPlayer.gotoAndStop(2);
_local3 = true;
} else {
if ((((_arg1 == "btnItemSkull")) && ((_arg2 == "btnItemHorns")))){
showText3("Ah, look how cleverly I changed an ordinary skull into a HORNED SKULL!\nLooking pretty nifty, no?", false);
buttonBar.btnItemSkull.gotoAndStop(2);
removeFromButtonBar(buttonBar.btnItemHorns);
_local3 = true;
} else {
if ((((_arg1 == "btnItemSkull")) && ((_arg2 == "btnItemBone")))){
if (buttonBar.btnItemSkull.currentFrame != 2){
showText3("Hm, these don't really seem to go well together.\nSomething is missing...", false);
} else {
showText3("Go me! Now the horned skull looks even scarier!\nThis is starting to look real evil!", false);
buttonBar.btnItemSkull.gotoAndStop(3);
removeFromButtonBar(buttonBar.btnItemBone);
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemSkull")) && ((_arg2 == "btnItemCurtain")))){
if (buttonBar.btnItemSkull.currentFrame != 3){
showText3("I don't think that's very sensible.\nI could wrap the skull into the curtain, but why would I?\nI have to come up with something else.", false);
} else {
showText3("Yay! It's a piece of cake to turn this awesome skull and old curtain into a super evil badguy costume! I can be the king of zombieland!", false);
buttonBar.btnItemSkull.gotoAndStop(4);
removeFromButtonBar(buttonBar.btnItemCurtain);
};
_local3 = true;
} else {
if ((((_arg1 == "sprChar")) && ((_arg2 == "btnItemSkull")))){
if (buttonBar.btnItemSkull.currentFrame != 4){
showText3("I could put the skull on my head and use it as a mask...\nbut without a matching costume it wouldn't make much impact...", false);
} else {
showText3("PHE4R ME! I am the king of zombie-land!\nAll the zombies are belong to me!\nGo out and collect lots of brains, zombies!", false);
removeFromButtonBar(buttonBar.btnItemSkull);
sprChar.sprFamiliar.gotoAndStop(0);
sprChar.sprChar.gotoAndStop(4);
};
_local3 = true;
} else {
if ((((_arg1 == "sprZombie")) && ((_arg2 == "btnItemWeapon")))){
if (iDisposition == 0){
showText3("DIE, evil zombie!\nUndead like you have no place in this world!", false);
sprChar.x = -200;
bg07.sprZombie.gotoAndStop(2);
iPhase = 52;
} else {
if (iDisposition == 1){
showText3("Urm. It wants to eat my brains.\nIT WANTS TO EAT. MY. BRAINS!\nThere's NO WAY I'm getting in grab-range of that thing!", false);
} else {
showText3("I don't want to beat up that evil zombie!\nI'm a bad girl and baddies need to help each other!\nThey already suffer enough from all the heroes!", false);
};
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemSign")) && ((_arg2 == "btnPole")))){
removeFromButtonBar(buttonBar.btnItemSign);
showText3("There! Go fetch them brains, zombie!\n... if you can find them! heheh...", false);
iPhase = 52;
bg07.sprZombie.scaleX = -1;
bg07.sprZombie.x = 1000;
bg07.btnBrainsSign.x = 412;
door1Tween.stop();
door1Tween = new Tween(bg07.sprZombie, "x", None.easeNone, 1000, 1200, 5, true);
door1Tween.FPS = 40;
_local3 = true;
} else {
if ((((_arg1 == "btnDoor9_1")) && ((_arg2 == "btnItemWeapon")))){
if (bg09.btnDoor9_1.currentFrame == 2){
if (buttonBar.btnItemInkpot.x > 0){
showText3("Brainz... A bit of writing can make lots of difference!", false);
bg09.btnDoor9_1.gotoAndStop(3);
} else {
showText3("I can't write anything without ink.\nMy quill is only useful for tickling right now.", false);
};
} else {
if (bg09.btnDoor9_1.currentFrame == 1){
showText3("I don't know why I would want to do that.", false);
} else {
showText3("It looks great!\nNo need to touch it. It will do great!", false);
};
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemInkpot")) && ((_arg2 == "btnItemWeapon")))){
showText3("My quill has ink again!\nI just need something to write on.\nInk and a quill don't do so much on their own.", false);
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnKaraf")))){
if (iDisposition == 1){
if (bg09.btnInk.alpha == 1){
showText3("There's already some of that liquid in the bowl.\nI wouldn't want to overdo it!", false);
} else {
bg09.btnInk.alpha = 1;
showText3("I poured some of the milky liquid into the bowl.\nI still don't know what it is but I'm sure it isn't milk.\nThe skull on the label makes me want to take no risks!", false);
};
} else {
showText3("I rather not try to 'play alchemy'.\nNot unless it's actually necessary.\nI don't want to create any horrible explosions.", false);
};
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnItemFlower")))){
if (buttonBar.btnItemFlower.currentFrame == 1){
addToBowl(3, "green");
} else {
if (buttonBar.btnItemFlower.currentFrame == 2){
addToBowl(1, "yellow");
} else {
if (buttonBar.btnItemFlower.currentFrame == 3){
addToBowl(0, "red");
} else {
addToBowl(2, "blue");
};
};
};
removeFromButtonBar(buttonBar.btnItemFlower);
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnRed9")))){
addToBowl(0, "red");
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnGreen9")))){
addToBowl(3, "green");
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnBlue9")))){
addToBowl(2, "blue");
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnYellow9")))){
addToBowl(1, "yellow");
_local3 = true;
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnSink")))){
if (bg09.btnInk.alpha == 0){
showText3("It's an empty bowl.\nThere's nothing to empty and I'm not planning to do the dishes here!", false);
} else {
bg09.btnInk.alpha = 0;
showText3("Perhaps alchemy isn't my strongest point.\nMaybe I did something wrong. I emptied the bowl.\nRinse and repeat, so to say. Let's start from scratch.", false);
arrFlowers = [0, 0, 0];
ryb2rgb(0, 0, 0);
bg09.btnInk.alpha = 0;
_local3 = true;
};
} else {
if ((((_arg1 == "btnBowl9")) && ((_arg2 == "btnInkPot9")))){
if (bg09.btnInk.alpha == 0){
showText3("The bowl is empty.\nThere's nothing to fill the little bottle with.", false);
} else {
if ((((((arrFlowers[0] > 250)) && ((arrFlowers[1] > 250)))) && ((arrFlowers[2] > 250)))){
showText3("There, I created my own black ink!\nHooray for me!\nPerhaps it's not too late to learn alchemy after all!", false);
arrFlowers = [0, 0, 0];
ryb2rgb(0, 0, 0);
bg09.btnInk.alpha = 0;
bg09.btnInkPot9.x = -200;
arrButtonBar.push(buttonBar.btnItemInkpot);
updateButtonBar();
} else {
showText3("I don't want to pour that into the bottle.\nIt doesn't seem to have the right consistency.", false);
};
};
_local3 = true;
} else {
if ((((_arg1 == "btnDoor9_1")) && ((_arg2 == "btnItemInkpot")))){
showText3("No, I don't want to pour the ink all over the broken door.\nThat would be good ink wasted!", false);
_local3 = true;
} else {
if ((((_arg1 == "btnInkPot9")) && ((_arg2 == "btnKaraf")))){
showText3("No, I don't want to pour that liquid into the little jar.\nDoesn't seem right.", false);
_local3 = true;
} else {
if ((((((((((((((((_arg1 == "btnPedestalNorth")) || ((_arg1 == "btnPedestalSouth")))) || ((_arg1 == "btnPedestalEast")))) || ((_arg1 == "btnPedestalWest")))) || ((_arg2 == "btnPedestalNorth")))) || ((_arg2 == "btnPedestalSouth")))) || ((_arg2 == "btnPedestalEast")))) || ((_arg2 == "btnPedestalWest")))){
_local4 = 0;
_local5 = 0;
if ((((_arg1 == "btnPedestalNorth")) || ((_arg2 == "btnPedestalNorth")))){
_local4 = 1;
} else {
if ((((_arg1 == "btnPedestalEast")) || ((_arg2 == "btnPedestalEast")))){
_local4 = 2;
} else {
if ((((_arg1 == "btnPedestalSouth")) || ((_arg2 == "btnPedestalSouth")))){
_local4 = 3;
} else {
if ((((_arg1 == "btnPedestalWest")) || ((_arg2 == "btnPedestalWest")))){
_local4 = 4;
};
};
};
};
if ((((_arg1 == "btnItemWeapon")) || ((_arg2 == "btnItemWeapon")))){
_local5 = 1;
} else {
if ((((_arg1 == "btnItemFamiliar")) || ((_arg2 == "btnItemFamiliar")))){
_local5 = 2;
} else {
if ((((_arg1 == "btnItemCandle")) || ((_arg2 == "btnItemCandle")))){
if (buttonBar.btnItemCandle.currentFrame == 2){
_local5 = 3;
};
} else {
if ((((_arg1 == "btnItemFlower")) || ((_arg2 == "btnItemFlower")))){
if (buttonBar.btnItemFlower.currentFrame == 1){
_local5 = 4;
} else {
if (buttonBar.btnItemFlower.currentFrame == 2){
_local5 = 5;
} else {
if (buttonBar.btnItemFlower.currentFrame == 3){
_local5 = 6;
} else {
_local5 = 7;
};
};
};
};
};
};
};
if (_local5 != 0){
placeItemOnPedestal(_local4, _local5);
} else {
showText3("I don't want to place this item on the pedestal.\nI think that is wrong.", false);
};
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnPumpkin9")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnPumpkin")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnFaceInTree")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnLantern")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnScaryTree")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemCandle")) && ((_arg2 == "btnFace8")))){
lightCandle();
_local3 = true;
} else {
if ((((_arg1 == "btnItemHairTies")) && ((_arg2 == "sprCharCircle")))){
if (bSummonComboCorrect == true){
showSummonPreps();
} else {
showText3("Something doesn't seem right.\nSomething about the items I placed on the pedestals.\nOr perhaps their order.", false);
};
_local3 = true;
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
};
return (_local3);
}
public function useItem(_arg1, _arg2):void{
var _local3:*;
btnUseNotification.y = -200;
wndTextBox.btnTake.alpha = 0.2;
if (combine(_arg1, _arg2) == false){
if (combine(_arg2, _arg1) == false){
_local3 = Math.floor((Math.random() * 5));
if (_local3 == 0){
showText3("This doesn't seem like a good idea.", false);
} else {
if (_local3 == 1){
showText3("I don't know why I would want to do that.", false);
} else {
if (_local3 == 2){
showText3("I don't really want to use these together.", false);
} else {
if (_local3 == 3){
showText3("That doesn't have any effect.", false);
} else {
showText3("This doesn't appear to be helping me.\nI need to try something else.", false);
};
};
};
};
};
};
}
public function showText3(_arg1, _arg2):void{
myTween.stop();
wndTextBox.txt.text = _arg1;
wndTextBox.y = 14;
if (_arg2 == true){
wndTextBox.btnTake.alpha = 1;
wndTextBox.btnTake.gotoAndStop(1);
wndTextBox.btnUse.alpha = 1;
myTween = new Tween(wndTextBox, "alpha", None.easeNone, 0, 1, 1, true);
myTween.FPS = 40;
} else {
wndTextBox.alpha = 1;
};
}
public function hideTextBox():void{
myTween.stop();
wndTextBox.alpha = 0;
wndTextBox.y = -150;
}
public function updateButtonBar():void{
var _local1:*;
if (arrButtonBar.length > 0){
_local1 = 0;
while (_local1 < arrButtonBar.length) {
arrButtonBar[_local1].x = (150 + (_local1 * 50));
_local1++;
};
};
}
public function removeFromButtonBar(_arg1):void{
var _local2:* = arrButtonBar.indexOf(_arg1);
if (_local2 < 0){
trace((("Error: Tried to remove item " + _arg1) + " from arrButtonBar, but it's not found!"));
} else {
arrButtonBar.splice(_local2, 1);
};
_arg1.x = -100;
updateButtonBar();
}
public function doCleanup():void{
sprChar.x = 132;
sprChar.scaleX = 1;
bg02.sprSeer.x = 470;
bg02.sprSpanking.x = 800;
bg02.sprSpanking.gotoAndStop(1);
hideTextBox();
if (bBoatInspected == true){
bg02.sprSeer.gotoAndStop(3);
showText3("Woah! That butt has become HUGE!\nI have never seen such a swollen bottom before!\nThat's an incredible swollen round butt!", false);
};
}
public function showStruggleShield(){
iStruggle--;
if (iStruggle < 1){
wndStruggle.x = 900;
wndStruggle.btnStruggle.gotoAndStop(1);
hideTextBox();
bg03.btnTroll.x = 408;
sprChar.x = 118;
sprChar.scaleX = 1;
bg03.btnTrollBreasts.x = 800;
bg03.btnTrollTk.x = 800;
bg03.btnTrollTk.gotoAndStop(1);
} else {
wndStruggle.btnStruggle.gotoAndPlay(1);
wndStruggle.x = 0;
wndStruggle.btnStruggle.x = (Math.floor((Math.random() * 580)) + 15);
wndStruggle.btnStruggle.y = (Math.floor((Math.random() * 366)) + 68);
bg03.btnTroll.x = 808;
sprChar.x = -200;
};
}
public function proceedToLevel3():void{
var _local1:* = arrButtonBar.length;
var _local2:* = 0;
while (_local2 < _local1) {
arrButtonBar[0].x = -100;
arrButtonBar.splice(0, 1);
_local2++;
};
arrButtonBar.push(buttonBar.btnItemHairTies);
arrButtonBar.push(buttonBar.btnItemWeapon);
arrButtonBar.push(buttonBar.btnItemFamiliar);
arrButtonBar.push(buttonBar.btnItemFlower);
updateButtonBar();
iPhase = 20;
myTween.stop();
wndChapter.alpha = 0;
wndChapter.txtChapter.text = "1 day until Scary Night";
wndChapter.txtLevelText.text = "Twisted Forest level completion:";
wndChapter.txtPercentage.text = (iLevelCompletion + "%");
arrLevelCompletion[1] = iLevelCompletion;
if (iLevelCompletion > 95){
iTotalLevelCompletion = (iTotalLevelCompletion + 100);
};
wndChapter.y = 0;
myTween = new Tween(wndChapter, "alpha", None.easeNone, 0, 1, 2, true);
myTween.FPS = 40;
iCountDown = 8;
iLevelCompletion = 50;
}
public function takeLeftDoor():void{
boatLevel.btnBoat.gotoAndStop(2);
boatLevel.btnBoat.scaleX = 1;
boatLevel.btnDoors.btnDoor1.gotoAndStop((boatLevel.btnDoors.btnDoor1.currentFrame + 30));
door1Tween.stop();
door1Tween = new Tween(boatLevel.btnDoors, "scaleX", None.easeNone, 1, 4, 4, true);
door1Tween.FPS = 40;
door2Tween.stop();
door2Tween = new Tween(boatLevel.btnDoors, "scaleY", None.easeNone, 1, 4, 4, true);
door2Tween.FPS = 40;
door3Tween.stop();
door3Tween = new Tween(boatLevel.btnDoors, "x", None.easeNone, 360, 1100, 4, true);
door3Tween.FPS = 40;
}
public function takeMiddleDoor():void{
boatLevel.btnBoat.gotoAndStop(1);
boatLevel.btnBoat.scaleX = 1;
boatLevel.btnDoors.btnDoor2.gotoAndStop((boatLevel.btnDoors.btnDoor2.currentFrame + 30));
door1Tween.stop();
door1Tween = new Tween(boatLevel.btnDoors, "scaleX", None.easeNone, 1, 4, 4, true);
door1Tween.FPS = 40;
door2Tween.stop();
door2Tween = new Tween(boatLevel.btnDoors, "scaleY", None.easeNone, 1, 4, 4, true);
door2Tween.FPS = 40;
door3Tween.stop();
}
public function takeRightDoor():void{
boatLevel.btnBoat.gotoAndStop(2);
boatLevel.btnBoat.scaleX = -1;
boatLevel.btnDoors.btnDoor3.gotoAndStop((boatLevel.btnDoors.btnDoor3.currentFrame + 30));
door1Tween.stop();
door1Tween = new Tween(boatLevel.btnDoors, "scaleX", None.easeNone, 1, 4, 4, true);
door1Tween.FPS = 40;
door2Tween.stop();
door2Tween = new Tween(boatLevel.btnDoors, "scaleY", None.easeNone, 1, 4, 4, true);
door2Tween.FPS = 40;
door3Tween.stop();
door3Tween = new Tween(boatLevel.btnDoors, "x", None.easeNone, 360, -360, 4, true);
door3Tween.FPS = 40;
}
public function proceedToLevel4():void{
iPhase = 50;
myTween.stop();
wndChapter.alpha = 0;
wndChapter.txtChapter.text = "Scary Night";
wndChapter.txtLevelText.text = "Recurring Doors Nightmare level completion:";
wndChapter.txtPercentage.text = (iLevelCompletion + "%");
arrLevelCompletion[2] = iLevelCompletion;
if (iLevelCompletion > 95){
iTotalLevelCompletion = (iTotalLevelCompletion + 100);
};
wndChapter.y = 0;
myTween = new Tween(wndChapter, "alpha", None.easeNone, 0, 1, 2, true);
myTween.FPS = 40;
iCountDown = 8;
iLevelCompletion = 50;
}
public function proceedToEnd():void{
iPhase = 102;
myTween.stop();
wndChapter.alpha = 0;
wndChapter.txtChapter.text = "Conclusion";
wndChapter.txtLevelText.text = "Scary Night:";
wndChapter.txtPercentage.text = (iLevelCompletion + "%");
arrLevelCompletion[3] = iLevelCompletion;
if (iLevelCompletion > 95){
iTotalLevelCompletion = (iTotalLevelCompletion + 100);
};
wndChapter.y = 0;
myTween = new Tween(wndChapter, "alpha", None.easeNone, 0, 1, 2, true);
myTween.FPS = 40;
stage.removeEventListener(MouseEvent.CLICK, mouseClicked3);
iCountDown = 8;
}
public function ryb2rgb(_arg1, _arg2, _arg3):void{
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:ColorTransform;
_arg1 = (_arg1 / 0xFF);
_arg2 = (_arg2 / 0xFF);
_arg3 = (_arg3 / 0xFF);
_arg1 = ((_arg1 * _arg1) * ((3 - _arg1) - _arg1));
_arg2 = ((_arg2 * _arg2) * ((3 - _arg2) - _arg2));
_arg3 = ((_arg3 * _arg3) * ((3 - _arg3) - _arg3));
_local4 = (1 + (_arg3 * ((_arg1 * (0.337 + (_arg2 * -0.137))) + (-0.837 + (_arg2 * -0.163)))));
_local5 = ((1 + (_arg3 * (-0.627 + (_arg2 * 0.287)))) + (_arg1 * ((-1 + (_arg2 * (0.5 + (_arg3 * -0.693)))) - (_arg3 * -0.627))));
_local6 = (((1 + (_arg3 * (-0.4 + (_arg2 * 0.6)))) - _arg2) + (_arg1 * ((-1 + (_arg3 * (0.9 + (_arg2 * -1.1)))) + _arg2)));
if (_local4 < 0){
_local4 = 0;
};
if (_local5 < 0){
_local5 = 0;
};
if (_local6 < 0){
_local6 = 0;
};
if (_local4 > 1){
_local4 = 1;
};
if (_local5 > 1){
_local5 = 1;
};
if (_local6 > 1){
_local6 = 1;
};
_local7 = new ColorTransform(0, 0, 0, 1, (_local4 * 0xFF), (_local5 * 0xFF), (_local6 * 0xFF), 0);
bg09.btnInk.transform.colorTransform = _local7;
}
public function addToBowl(_arg1, _arg2):void{
if (bg09.btnInk.alpha == 0){
showText3("I don't want to put a flower into the empty bowl.", false);
} else {
if (_arg1 == 3){
arrFlowers[1] = (arrFlowers[1] + 0xFF);
arrFlowers[2] = (arrFlowers[2] + 0xFF);
} else {
arrFlowers[_arg1] = (arrFlowers[_arg1] + 0xFF);
};
if ((((((arrFlowers[0] > 0xFF)) || ((arrFlowers[1] > 0xFF)))) || ((arrFlowers[2] > 0xFF)))){
arrFlowers[0] = Math.ceil((arrFlowers[0] / 2));
if (arrFlowers[0] > 0xFF){
arrFlowers[0] = 0xFF;
};
arrFlowers[1] = Math.ceil((arrFlowers[1] / 2));
if (arrFlowers[1] > 0xFF){
arrFlowers[1] = 0xFF;
};
arrFlowers[2] = Math.ceil((arrFlowers[2] / 2));
if (arrFlowers[2] > 0xFF){
arrFlowers[2] = 0xFF;
};
};
showText3((("I've added a " + _arg2) + " flower into the bowl.\nThe colour of the liquid changed."), false);
ryb2rgb(arrFlowers[0], arrFlowers[1], arrFlowers[2]);
};
}
public function descriptionItemOnPedestal(_arg1:int):String{
var _local2:String;
_local2 = "";
if (_arg1 == 2){
_local2 = "My snake familiar is on top of this pedestal.\nI hope he is lying there comfortably.";
} else {
if (_arg1 == 3){
_local2 = "My squidling familiar is on top of this pedestal.";
} else {
if (_arg1 == 4){
_local2 = "My beaver familiar is sitting on top of its tail on top of the pedestal.";
} else {
if (_arg1 == 5){
_local2 = "My trusty Samurai sword is lying on top of this pedestal.";
} else {
if (_arg1 == 6){
_local2 = "My best quill is lying on top of this pedestal.";
} else {
if (_arg1 == 7){
_local2 = "My bat is lying on this pedestal, but I'd rather keep it in my hands!";
} else {
if (_arg1 == 8){
_local2 = "A green flower lies on top of this pedestal.";
} else {
if (_arg1 == 9){
_local2 = "A yellow flower is decorating this pedestal.";
} else {
if (_arg1 == 10){
_local2 = "A red flower is on top of this pedestal.";
} else {
if (_arg1 == 11){
_local2 = "A blue flower is placed on top of this pedestal.";
} else {
if (_arg1 == 12){
_local2 = "A lit candle is placed on this pedestal.";
};
};
};
};
};
};
};
};
};
};
};
return (_local2);
}
public function placeItemOnPedestal(_arg1, _arg2):void{
var _local3:*;
if (_arg1 == 1){
_local3 = bg08.sprPedestalN;
} else {
if (_arg1 == 2){
_local3 = bg08.sprPedestalE;
} else {
if (_arg1 == 3){
_local3 = bg08.sprPedestalS;
} else {
if (_arg1 == 4){
_local3 = bg08.sprPedestalW;
};
};
};
};
if (_local3.currentFrame != 1){
showText3("There's already an item on this pedestal.", false);
} else {
if (_arg2 == 1){
_local3.gotoAndStop((iDisposition + 5));
removeFromButtonBar(buttonBar.btnItemWeapon);
} else {
if (_arg2 == 2){
_local3.gotoAndStop((iFamiliar + 1));
removeFromButtonBar(buttonBar.btnItemFamiliar);
} else {
if (_arg2 == 3){
_local3.gotoAndStop(12);
removeFromButtonBar(buttonBar.btnItemCandle);
} else {
if (_arg2 == 4){
_local3.gotoAndStop(8);
removeFromButtonBar(buttonBar.btnItemFlower);
} else {
if (_arg2 == 5){
_local3.gotoAndStop(9);
removeFromButtonBar(buttonBar.btnItemFlower);
} else {
if (_arg2 == 6){
_local3.gotoAndStop(10);
removeFromButtonBar(buttonBar.btnItemFlower);
} else {
if (_arg2 == 7){
_local3.gotoAndStop(11);
removeFromButtonBar(buttonBar.btnItemFlower);
};
};
};
};
};
};
};
};
updatePedestalArray();
}
public function lightCandle():void{
if (buttonBar.btnItemCandle.currentFrame == 1){
showText3("I lit the candle. Now it's giving some light.\nNot really much, come to think of it.", false);
buttonBar.btnItemCandle.gotoAndStop(2);
} else {
showText3("The candle is already lit.", false);
};
}
public function reclaimItem(_arg1):void{
if (_arg1.currentFrame < 5){
arrButtonBar.push(buttonBar.btnItemFamiliar);
updateButtonBar();
} else {
if (_arg1.currentFrame < 8){
arrButtonBar.push(buttonBar.btnItemWeapon);
updateButtonBar();
} else {
if (_arg1.currentFrame == 12){
arrButtonBar.push(buttonBar.btnItemCandle);
updateButtonBar();
} else {
if (_arg1.currentFrame == 8){
buttonBar.btnItemFlower.gotoAndStop(1);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
};
updateButtonBar();
} else {
if (_arg1.currentFrame == 9){
buttonBar.btnItemFlower.gotoAndStop(2);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
};
updateButtonBar();
} else {
if (_arg1.currentFrame == 10){
buttonBar.btnItemFlower.gotoAndStop(3);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
};
updateButtonBar();
} else {
if (_arg1.currentFrame == 11){
buttonBar.btnItemFlower.gotoAndStop(4);
if (buttonBar.btnItemFlower.x < 0){
arrButtonBar.push(buttonBar.btnItemFlower);
};
updateButtonBar();
};
};
};
};
};
};
};
_arg1.gotoAndStop(1);
updatePedestalArray();
}
public function updatePedestalArray():void{
var _local1:*;
var _local2:*;
var _local3:*;
arrPedestalOrder[0] = bg08.sprPedestalN.currentFrame;
arrPedestalOrder[1] = bg08.sprPedestalE.currentFrame;
arrPedestalOrder[2] = bg08.sprPedestalS.currentFrame;
arrPedestalOrder[3] = bg08.sprPedestalW.currentFrame;
if ((((((((arrPedestalOrder.indexOf(8) >= 0)) && ((arrPedestalOrder.indexOf(9) >= 0)))) && ((arrPedestalOrder.indexOf(10) >= 0)))) && ((arrPedestalOrder.indexOf(11) >= 0)))){
iLevelCompletion = 100;
bg08.wndBonus2.gotoAndStop((iDisposition + 1));
bg08.wndBonus2.x = 0;
buttonBar.y = -436;
bSummonComboCorrect = false;
} else {
_local1 = (iDisposition + 5);
_local2 = (iFamiliar + 1);
_local3 = (iDisposition + 8);
if ((((((((arrPedestalOrder[0] == _local1)) && ((arrPedestalOrder[1] == _local3)))) && ((arrPedestalOrder[2] == 12)))) && ((arrPedestalOrder[3] == _local2)))){
bSummonComboCorrect = true;
showText3("I think everything is in place.\nIt's time for the final ingredient to complete the ritual.", false);
} else {
bSummonComboCorrect = false;
};
};
}
public function showSummonPreps():void{
hideTextBox();
buttonBar.y = -450;
bg08.btnJarOpening.x = 0;
}
public function endClicks(_arg1:MouseEvent):void{
var _local2:* = "";
if (_arg1.target.name != null){
_local2 = _arg1.target.name;
};
if (_local2 == "btnClose"){
wndConclusion.gotoAndStop((wndConclusion.currentFrame + 10));
endFamiliar.gotoAndStop(((iDisposition * 10) + iFamiliar));
endFamiliar.x = 0;
btnCompletion.txtLvl1.text = (arrLevelCompletion[0] + "%");
btnCompletion.txtLvl2.text = (arrLevelCompletion[1] + "%");
btnCompletion.txtLvl3.text = (arrLevelCompletion[2] + "%");
btnCompletion.txtLvl4.text = (arrLevelCompletion[3] + "%");
if ((((arrLevelCompletion[0] + arrLevelCompletion[1]) + arrLevelCompletion[2]) + arrLevelCompletion[3]) == 400){
btnCompletion.txtBonusText.text = "400%: Kelsey added to dressup!";
borderArea.btnEmily.x = 1415;
borderArea.btnKelsey.x = 1415;
borderArea.btnEmily.alpha = 1;
borderArea.btnKelsey.alpha = 1;
borderArea.btnDressUp8.x = 1524;
borderArea.btnDressUp8.alpha = 1;
};
btnCompletion.x = 380;
} else {
if (_local2 == "btnDressUp1"){
borderArea.btnDressUp.gotoAndStop(1);
} else {
if ((((_local2 == "btnUndress")) && ((borderArea.btnUndress.alpha == 1)))){
borderArea.btnDressUp.gotoAndStop(2);
} else {
if ((((_local2 == "btnKelsey")) && ((borderArea.btnKelsey.alpha == 1)))){
borderArea.bgDoll.gotoAndStop(2);
if (borderArea.btnDressUp.currentFrame == 3){
borderArea.btnDressUp.gotoAndStop(11);
};
} else {
if ((((_local2 == "btnEmily")) && ((borderArea.btnKelsey.alpha == 1)))){
borderArea.bgDoll.gotoAndStop(1);
if (borderArea.btnDressUp.currentFrame == 11){
borderArea.btnDressUp.gotoAndStop(3);
};
} else {
if (_local2 == "btnDressUp3"){
if (borderArea.bgDoll.currentFrame == 1){
borderArea.btnDressUp.gotoAndStop(3);
} else {
borderArea.btnDressUp.gotoAndStop(11);
};
} else {
if (_local2 == "btnDressUp4"){
borderArea.btnDressUp.gotoAndStop(4);
} else {
if (_local2 == "btnDressUp5"){
borderArea.btnDressUp.gotoAndStop(5);
} else {
if (_local2 == "btnDressUp6"){
borderArea.btnDressUp.gotoAndStop(6);
} else {
if (_local2 == "btnDressUp7"){
borderArea.btnDressUp.gotoAndStop(7);
} else {
if ((((_local2 == "btnDressUp8")) && ((borderArea.btnDressUp8.alpha == 1)))){
borderArea.btnDressUp.gotoAndStop(8);
};
};
};
};
};
};
};
};
};
};
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
myInterval1 = setInterval(introTimer, 2000);
iIntroCounter = 0;
myIntroTween = new Tween(introTexts, "alpha", None.easeNone, 0, 0, 1, true);
myIntroTween.FPS = 40;
}
function frame3(){
stop();
iPhase = 0;
iDisposition = 0;
iFamiliar = 0;
arrLevelCompletion = [0, 0, 0, 0];
arrFlowers = [0, 0, 0];
bSummonComboCorrect = false;
arrPedestalOrder = [0, 0, 0, 0];
strBufferItem = "";
strSelectedItem = "";
iLevelCompletion = 50;
iTotalLevelCompletion = 0;
iCountDown = 0;
myInterval = setInterval(myTimer, 1000);
arrButtonBar = [];
bActionInProgress = false;
bBunnySeenBefore = false;
iStruggle = 0;
bTrollTickled = false;
lastObj = null;
iBerriesEaten = 0;
iBerriesInInv = 0;
bTrollDead = false;
bPlanksCut = false;
bBoatInspected = false;
iEggy = 0;
bDoorsLocked = true;
strSequence = "";
myTween = new Tween(wndTextBox, "alpha", None.easeNone, 0, 0, 1, true);
myTween.FPS = 40;
door1Tween = new Tween(boatLevel.btnDoors, "ScaleX", None.easeNone, 1, 1, 1, true);
door2Tween = new Tween(boatLevel.btnDoors, "scaleY", None.easeNone, 1, 1, 1, true);
door3Tween = new Tween(boatLevel.btnDoors, "x", None.easeNone, 1020, 1020, 1, true);
bg09.btnInk.mouseEnabled = false;
bg09.btnInk.alpha = 0;
bg01.y = 2;
sprChar.sprFamiliar.mouseEnabled = false;
bg02.sprOctopus.gotoAndStop(1);
bg02.sprSpanking.gotoAndStop(1);
bg03.btnTrollTk.gotoAndStop(1);
wndStruggle.btnStruggle.gotoAndStop(1);
bg08.btnBliksem.gotoAndStop(1);
stage.addEventListener(MouseEvent.CLICK, mouseClicked3);
}
function frame4(){
stop();
if (iPhase > 90){
wndConclusion.gotoAndStop((iDisposition + 2));
};
stage.addEventListener(MouseEvent.CLICK, endClicks);
}
}
}//package Legend_fla
Section 25
//sprChar_207 (Legend_fla.sprChar_207)
package Legend_fla {
import flash.display.*;
public dynamic class sprChar_207 extends MovieClip {
public function sprChar_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 26
//sprCharCircle_198 (Legend_fla.sprCharCircle_198)
package Legend_fla {
import flash.display.*;
public dynamic class sprCharCircle_198 extends MovieClip {
public function sprCharCircle_198(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 27
//sprFamiliar_208 (Legend_fla.sprFamiliar_208)
package Legend_fla {
import flash.display.*;
public dynamic class sprFamiliar_208 extends MovieClip {
public function sprFamiliar_208(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 28
//sprPedestal_201 (Legend_fla.sprPedestal_201)
package Legend_fla {
import flash.display.*;
public dynamic class sprPedestal_201 extends MovieClip {
public function sprPedestal_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 29
//sprSeer_59 (Legend_fla.sprSeer_59)
package Legend_fla {
import flash.display.*;
public dynamic class sprSeer_59 extends MovieClip {
public function sprSeer_59(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 30
//sprZombie_145 (Legend_fla.sprZombie_145)
package Legend_fla {
import flash.display.*;
public dynamic class sprZombie_145 extends MovieClip {
public function sprZombie_145(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 31
//wndBonus_202 (Legend_fla.wndBonus_202)
package Legend_fla {
import flash.display.*;
public dynamic class wndBonus_202 extends MovieClip {
public function wndBonus_202(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 32
//wndBonus2_120 (Legend_fla.wndBonus2_120)
package Legend_fla {
import flash.display.*;
public dynamic class wndBonus2_120 extends MovieClip {
public function wndBonus2_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 33
//wndConclusion_255 (Legend_fla.wndConclusion_255)
package Legend_fla {
import flash.display.*;
public dynamic class wndConclusion_255 extends MovieClip {
public var btnClose:MovieClip;
public function wndConclusion_255(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 34
//wndFamiliarChoice_237 (Legend_fla.wndFamiliarChoice_237)
package Legend_fla {
import flash.display.*;
public dynamic class wndFamiliarChoice_237 extends MovieClip {
public var btnFamiliarNo:MovieClip;
public var btnFamiliarYes:MovieClip;
public function wndFamiliarChoice_237(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla
Section 35
//wndWeaponChoice_41 (Legend_fla.wndWeaponChoice_41)
package Legend_fla {
import flash.display.*;
public dynamic class wndWeaponChoice_41 extends MovieClip {
public var btnYes:MovieClip;
public var btnNo:MovieClip;
public function wndWeaponChoice_41(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Legend_fla