Frame 1
stop();
Instance of Symbol 7 MovieClip in Frame 1
onClipEvent (load) {
var nSpeed = 2;
var nCurrLoad = 0;
var nRealLoad = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
nRealLoad = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (nRealLoad > (nCurrLoad + nSpeed)) {
nCurrLoad = nCurrLoad + nSpeed;
} else {
nCurrLoad = nRealLoad;
}
gotoAndStop(Math.floor(nCurrLoad));
mcState.txtPourcentage.text = Math.floor(nCurrLoad) + "%";
if ((nCurrLoad == 100) && (_root.getBytesTotal() > 100)) {
_root.gotoAndStop("Loader");
}
}
Frame 10
new Main(this);
Instance of Symbol 60 MovieClip in Frame 20
on (press) {
getURL ("http://www.furaffinity.net/user/bahamutdragons/", "_blank");
}
Instance of Symbol 6 MovieClip "mcState" in Symbol 7 MovieClip Frame 100
onClipEvent (load) {
var nSpeed = 2;
var nCurrLoad = 0;
var nRealLoad = 0;
}
onClipEvent (enterFrame) {
nRealLoad = (this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100;
if (nRealLoad > (nCurrLoad + nSpeed)) {
nCurrLoad = nCurrLoad + nSpeed;
} else {
nCurrLoad = nRealLoad;
}
txtPourcentage.text = nCurrLoad + "%";
if ((nCurrLoad == 100) && (this._parent.getBytesTotal() > 100)) {
this._parent.gotoAndStop("Loader");
}
}
Symbol 619 MovieClip [__Packages.Main] Frame 0
class Main
{
static var oCTRL;
var mcRef, sharedObject, oGallery, oScriptManager;
function Main (_mcRef) {
mcRef = _mcRef;
oCTRL = this;
sharedObject = SharedObject.getLocal("HokinkoInn");
oGallery = new Gallery();
gotoTitle();
var _local2 = mcRef.createEmptyMovieClip("mcSound" + mcRef.getNextHighestDepth(), mcRef.getNextHighestDepth());
new Library.SoundManager(_local2);
playSong("Investigative");
}
function playSong(_sCurrentSong) {
Library.SoundManager.__get__Instance().playSong(_sCurrentSong);
}
function startGame(_bNewGamePlus) {
oScriptManager = new ScriptManager(mcRef, _bNewGamePlus);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.setMc(mcRef);
oScriptManager.loadScript(Script.getScript(Script.sBEGINNING));
}
function setVolume() {
if (Library.SoundManager.__get__Instance().__get__maxVolume() > 0) {
Library.SoundManager.__get__Instance().__set__maxVolume(0);
} else {
Library.SoundManager.__get__Instance().__set__maxVolume(100);
}
}
function startTutorial() {
oScriptManager = new ScriptManager(mcRef);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.setMc(mcRef);
oScriptManager.loadScript(Script.getScript(Script.sTUTORIAL));
}
function doEnd() {
if (mcRef.mcState._currentframe == (mcRef.mcState._totalframes - 1)) {
mcRef.mcState.mcHud.mcState.mcState.btnReturnToTitle.onRelease = Library.Delegate.create(this, gotoTitle);
}
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
mcRef.mcState.stop();
}
}
function gotoTitle() {
mcRef.onEnterFrame = undefined;
mcRef.gotoAndStop("Title");
mcRef.mcHud.mcState.mcState.btnNewGame.onRelease = Library.Delegate.create(this, gotoGame);
mcRef.mcHud.mcState.mcState.btnNewGamePlus.onRelease = Library.Delegate.create(this, gotoGamePlus);
mcRef.mcHud.mcState.mcState.btnTutorial.onRelease = Library.Delegate.create(this, gotoTutorial);
mcRef.mcHud.mcState.mcState.btnLoad.onRelease = Library.Delegate.create(this, gotoLoad);
mcRef.mcHud.mcState.mcState.btnGallery.onRelease = Library.Delegate.create(this, gotoGallery);
mcRef.mcHud.mcState.mcState.btnMakingOf.onRelease = Library.Delegate.create(this, gotoMakingOf);
mcRef.mcHud.mcState.mcState.btnSound.onRelease = Library.Delegate.create(this, setVolume);
}
function gotoGame() {
mcRef.gotoAndStop("Game");
startGame(false);
playSong("Loop_94");
}
function gotoGamePlus() {
mcRef.gotoAndStop("Game");
startGame(true);
playSong("Loop_94");
}
function gotoTutorial() {
mcRef.gotoAndStop("Game");
playSong(Script.sMUSIC_LIVINGROOM);
startTutorial();
}
function gotoLoad() {
mcRef.gotoAndStop("Game");
oScriptManager = new ScriptManager(mcRef, false);
mcRef.onEnterFrame = Library.Delegate.create(oScriptManager, oScriptManager.doEnterFrame);
oScriptManager.setMc(mcRef);
oScriptManager.oLocationManager.sCharacter = sharedObject.data.sCharacter;
oScriptManager.oLocationManager.sLocation = sharedObject.data.sLocation;
oScriptManager.oLocationManager.aItems = sharedObject.data.aLocItems;
oScriptManager.oLocationManager.aCaseItems = sharedObject.data.sLocCaseItems;
oScriptManager.oLocationManager.oLocChars = sharedObject.data.oLocChars;
oScriptManager.oLocationManager.oLocMusic = sharedObject.data.oLocMusic;
oScriptManager.oHUD.aItems = sharedObject.data.aHudItems;
oScriptManager.sCurrentRoom = sharedObject.data.sCurrentRoom;
oScriptManager.sCulprit = sharedObject.data.sCulprit;
oScriptManager.aUsedCulprits = sharedObject.data.sCulprit;
oScriptManager.nEndTags = sharedObject.data.nEndTags;
oScriptManager.aEventMemory = sharedObject.data.aEventMemory;
oScriptManager.oLocationManager.aItems = sharedObject.data.aItems;
oScriptManager.oLocationManager.aCaseItems = sharedObject.data.aCaseItems;
oScriptManager.oItems.sGoodItem = sharedObject.data.sGoodItem;
oScriptManager.oItems.sGoodTarget = sharedObject.data.sGoodTarget;
oScriptManager.oItems.sBadTarget = sharedObject.data.sBadTarget;
oScriptManager.loadGame(sharedObject.data.sLoadedEvent);
}
function gotoGallery() {
mcRef.gotoAndStop("Gallery");
oGallery.setMc(mcRef);
}
function gotoMakingOf() {
mcRef.gotoAndStop("MakingOf");
}
function gotoEnd(_sTarget) {
if (_sTarget == "Good") {
} else {
playSong("badend");
}
mcRef.gotoAndStop(_sTarget + "End");
mcRef.onEnterFrame = Library.Delegate.create(this, doEnd);
}
function save() {
sharedObject.clear();
sharedObject.data.sCharacter = oScriptManager.oLocationManager.sCharacter;
sharedObject.data.sLocation = oScriptManager.oLocationManager.sLocation;
sharedObject.data.aLocItems = oScriptManager.oLocationManager.aItems;
sharedObject.data.sLocCaseItems = oScriptManager.oLocationManager.aCaseItems;
sharedObject.data.oLocChars = oScriptManager.oLocationManager.oLocChars;
sharedObject.data.oLocMusic = oScriptManager.oLocationManager.oLocMusic;
sharedObject.data.sCurrentSong = Library.SoundManager.__get__Instance().sCurrentSong;
sharedObject.data.aHudItems = oScriptManager.oHUD.aItems;
sharedObject.data.sCurrentRoom = oScriptManager.sCurrentRoom;
sharedObject.data.nEndTags = oScriptManager.nEndTags;
sharedObject.data.sCulprit = oScriptManager.sCulprit;
sharedObject.data.aUsedCulprits = oScriptManager.aUsedCulprits;
sharedObject.data.sLoadedEvent = oScriptManager.sLoadedEvent;
sharedObject.data.aEventMemory = oScriptManager.aEventMemory;
sharedObject.data.aGallery = oGallery.aGallery;
sharedObject.flush();
}
function get scriptManager() {
return(oScriptManager);
}
static function get Instance() {
return(oCTRL);
}
}
Symbol 620 MovieClip [__Packages.ScriptManager] Frame 0
class ScriptManager
{
var aEventMemory, oKeyListener, oMouseListener, oLocationManager, oItems, oDialogue, oEffect, oChoice, oLocation, oInterrogate, oCharacter, oSave, oHelp, oQuit, oHUD, mcPopupBlocker, mcRef, aUsedCulprits, nEndTags, sCulprit, oEvent, nTimer, nLastTimer, aScript, sLoadedEvent, sCurrentRoom, __get__currentRoom;
function ScriptManager (_mcRef, _bNewGamePlus) {
aEventMemory = new Array();
oKeyListener = new Object();
oKeyListener.onKeyDown = Library.Delegate.create(this, doKeyDown);
Key.addListener(oKeyListener);
oMouseListener = new Object();
oMouseListener.onMouseDown = Library.Delegate.create(this, doMouseDown);
Mouse.addListener(oMouseListener);
oLocationManager = new LocationManager(_mcRef.mcLocation);
oItems = new PopupItems(_mcRef.mcPopupItems);
oDialogue = new PopupDialogue(_mcRef.mcPopupDialogue);
oEffect = new PopupEffect(_mcRef.mcPopupEffect);
oChoice = new PopupChoice(_mcRef.mcPopupChoice);
oLocation = new PopupLocation(_mcRef.mcPopupLocation);
oInterrogate = new PopupInterrogate(_mcRef.mcPopupInterrogate);
oCharacter = new PopupCharacters(_mcRef.mcPopupChars);
oSave = new PopupSave(_mcRef.mcPopupSave);
oHelp = new PopupHelp(_mcRef.mcPopupHelp);
oQuit = new PopupQuit(_mcRef.mcPopupQuit);
oHUD = new HUD(_mcRef.mcHud);
mcPopupBlocker = _mcRef.mcPopupBlocker;
mcPopupBlocker._visible = false;
mcRef.mcLocation.mcBackground.mcImages._visible = false;
initData();
setCulprit(_bNewGamePlus);
setItems();
}
function initData() {
aUsedCulprits = new Array();
if (Main.__get__Instance().sharedObject.data.aUsedCulprits != undefined) {
aUsedCulprits = Main.__get__Instance().sharedObject.data.aUsedCulprits;
}
nEndTags = 0;
}
function setCulprit(_bNewGamePlus) {
var _local2;
do {
_local2 = Math.floor(Math.random() * Script.aCHARACTERS.length);
sCulprit = Script.aCHARACTERS[_local2];
} while ((inArray(sCulprit, aUsedCulprits) && (_bNewGamePlus)) && (aUsedCulprits.length < Script.aCHARACTERS.length));
}
function setItems() {
var _local3;
var _local4;
var _local2;
_local3 = 0;
while (_local3 < Script.aITEMS.length) {
_local2 = Script.aITEMS[_local3];
if (_local2.bAlways) {
oLocationManager.addItemsInList(_local2.sClipName);
}
_local3++;
}
do {
_local3 = Math.floor(Math.random() * Script.aITEMS.length);
_local2 = Script.aITEMS[_local3];
} while ((_local2.bGood || (_local2.sCharacter == sCulprit)) || (_local2.bAlways));
oLocationManager.addItemsInList(_local2.sClipName);
_local4 = _local2.sCharacter;
do {
_local3 = Math.floor(Math.random() * Script.aITEMS.length);
_local2 = Script.aITEMS[_local3];
} while (((_local2.bGood || (_local2.sCharacter == sCulprit)) || (_local2.sCharacter == _local4)) || (_local2.bAlways));
oLocationManager.addItemsInList(_local2.sClipName);
do {
_local3 = Math.floor(Math.random() * Script.aITEMS.length);
_local2 = Script.aITEMS[_local3];
} while (((!_local2.bGood) || (_local2.sCharacter != sCulprit)) || (_local2.bAlways));
oLocationManager.addItemsInList(_local2.sClipName);
do {
_local3 = Math.floor(Math.random() * Script.aITEMS.length);
_local2 = Script.aITEMS[_local3];
} while ((((!_local2.bGood) && (_local2.sCharacter != sCulprit)) || (_local2.sCharacter == sCulprit)) || (_local2.bAlways));
oLocationManager.addItemsInList(_local2.sClipName);
}
function inArray(_oTarget, _aArray) {
var _local3 = false;
var _local1;
_local1 = 0;
while (_local1 < _aArray.length) {
if (_aArray[_local1] == _oTarget) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
function doEnterFrame() {
switch (oEvent.sType) {
case "Dialogue" :
case "Thought" :
case "Narrator" :
if (oDialogue.sState == "Idle") {
if (oEvent.sDialogue.length > 0) {
if (oDialogue.__get__speed() >= -1) {
oDialogue.addDialogue(oEvent.sDialogue.slice(0, Math.max(1, oDialogue.__get__speed())));
oEvent.sDialogue = oEvent.sDialogue.slice(Math.max(1, oDialogue.__get__speed()));
oDialogue.textSpeed(oDialogue.__get__speed());
} else {
oDialogue.textSpeed(-1);
}
} else {
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
oDialogue.dialogFinished();
}
}
break;
case "Choice" :
if (oDialogue.sState == "Idle") {
if (oEvent.sDialogue.length > 0) {
oDialogue.addDialogue(oEvent.sDialogue.slice(0, 1));
oEvent.sDialogue = oEvent.sDialogue.slice(1);
} else if (oChoice.sState == "Hidden") {
oChoice.setState("In");
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
}
}
break;
case "Character" :
break;
case "Location" :
break;
case "Timer" :
nTimer = nTimer - (getTimer() - nLastTimer);
nLastTimer = getTimer();
if (nTimer > 0) {
break;
}
nextEvent();
}
}
function doKeyDown() {
if (Key.isDown(32)) {
switch (oEvent.sType) {
case "Dialogue" :
case "Thought" :
case "Narrator" :
if (oEvent.sDialogue.length > 0) {
oDialogue.addDialogue(oEvent.sDialogue);
oEvent.sDialogue = "";
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
} else {
nextEvent();
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
}
break;
case "Choice" :
if (oEvent.sDialogue.length <= 0) {
break;
}
oDialogue.addDialogue(oEvent.sDialogue);
oEvent.sDialogue = "";
oChoice.setState("In");
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
}
}
}
function doMouseDown() {
switch (oEvent.sType) {
case "Dialogue" :
case "Thought" :
case "Narrator" :
if (oEvent.sDialogue.length > 0) {
oDialogue.addDialogue(oEvent.sDialogue);
oEvent.sDialogue = "";
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
} else {
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
nextEvent();
}
break;
case "Choice" :
if (oEvent.sDialogue.length <= 0) {
break;
}
oDialogue.addDialogue(oEvent.sDialogue);
oEvent.sDialogue = "";
oChoice.setState("In");
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
}
}
function loadGame(_sEvent) {
oLocationManager.loadGame();
loadScript(Script.getScript(_sEvent));
}
function loadScript(_aScript, _sDetail) {
aScript = _aScript;
nextEvent(_sDetail);
}
function setMc(_mcRef) {
mcRef = _mcRef;
}
function setChoices() {
oChoice.clearChoices();
var _local3 = oEvent.aChoices.length;
var _local2;
_local2 = 0;
while (_local2 < _local3) {
oChoice.addChoice(oEvent.aChoices[_local2].sOption, Library.Delegate.create(this, loadScript, Script.getScript(oEvent.aChoices[_local2].sTarget)));
_local2++;
}
}
function setInterrogate() {
oHUD.clearInterrogateChoices();
var _local3 = oEvent.aChoices.length;
var _local2;
_local2 = 0;
while (_local2 < _local3) {
oHUD.addInterrogateChoice(oEvent.aChoices[_local2].sOption, Library.Delegate.create(this, loadScript, Script.getScript(oEvent.aChoices[_local2].sTarget)));
_local2++;
}
}
function setLocations() {
oHUD.clearLocationChoices();
var _local5 = oEvent.aChoices.length;
var _local2;
_local2 = 0;
while (_local2 < _local5) {
oHUD.addLocationChoice(oEvent.aChoices[_local2].sOption, Library.Delegate.create(this, loadScript, new Array({sType:"Location", sTarget:oEvent.aChoices[_local2].sTarget})));
_local2++;
}
}
function nextEvent(_sDetail) {
oEvent = new Object();
var _local5 = aScript.shift();
var _local4;
for (_local4 in _local5) {
oEvent[_local4] = _local5[_local4];
}
mcRef.mcDialogue.txtDialogue.text = "";
mcRef.mcChoice.mcChoice1.txtChoice.text = "";
mcRef.mcChoice.mcChoice2.txtChoice.text = "";
mcRef.mcChoice.mcChoice3.txtChoice.text = "";
mcRef.mcChoice.mcChoice4.txtChoice.text = "";
mcRef.mcChoice._visible = false;
switch (oEvent.sType) {
case "SetEffect" :
oEffect.setState(oEvent.sTarget);
break;
case "ShowImage" :
Main.__get__Instance().oGallery.addImage(oEvent.sTarget);
mcRef.mcLocation.mcBackground.mcImages._visible = true;
mcRef.mcLocation.mcBackground.mcImages.gotoAndStop(oEvent.sTarget);
nextEvent();
break;
case "HideImage" :
mcRef.mcLocation.mcBackground.mcImages._visible = false;
mcRef.mcLocation.mcBackground.mcImages.gotoAndStop(1);
nextEvent();
break;
case "ShowItem" :
oLocationManager.setItem(oEvent.sEvent, "In", Library.Delegate.create(this, nextEvent));
break;
case "HideItem" :
oLocationManager.setItem(oEvent.sEvent, "Out", Library.Delegate.create(this, nextEvent));
break;
case "Dialogue" :
oDialogue.clearDialogue(oEvent.sName, oEvent.nSpeed, oEvent.sCategory);
oDialogue.setState("In");
oChoice.setState("Out");
if (oEvent.sName != "Me") {
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
}
break;
case "Thought" :
oDialogue.clearDialogue(oEvent.sName, oEvent.nSpeed);
oDialogue.setState("In");
oChoice.setState("Out");
break;
case "Narrator" :
oDialogue.clearDialogue(oEvent.sName, oEvent.nSpeed);
oDialogue.setState("In");
oChoice.setState("Out");
break;
case "Choice" :
oDialogue.clearDialogue();
oDialogue.setState("In");
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
setChoices();
if (oEvent.sName != "Me") {
mcRef.mcLocation.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Talk");
}
break;
case "AddItem" :
oHUD.addItems(oEvent.sExplore, oEvent.sName);
oLocationManager.addItems(oEvent.sExplore);
nextEvent();
break;
case "SetInterrogate" :
setInterrogate();
nextEvent();
break;
case "SetLocations" :
setLocations();
nextEvent();
break;
case "SetHud" :
oHUD.setHud();
oDialogue.setState("Out");
sLoadedEvent = oEvent.sLoadedEvent;
nextEvent();
break;
case "UnsetHud" :
oHUD.unsetHud(_sDetail);
oDialogue.setState("Out");
nextEvent();
break;
case "PresentItem" :
oDialogue.setState("Out");
oChoice.setState("Out");
oLocation.setState("Out");
oInterrogate.setState("Out");
oHUD.setPage(HUD.sPAGE_ACCUSE_ITEMS);
oHUD.setState("In");
oHUD.setPresentItem(true, oEvent.sGoodItem, oEvent.sGoodTarget, oEvent.sBadTarget);
nextEvent();
break;
case "Character" :
oLocationManager.setCharacter(oEvent.sCharacter, oEvent.sAction, Library.Delegate.create(this, nextEvent));
break;
case "PresentCharacter" :
oItems.setState("Out");
oDialogue.setState("Out");
oChoice.setState("Out");
oLocation.setState("Out");
oInterrogate.setState("Out");
oHUD.clearChoices();
oHUD.addChoice("Tora", Library.Delegate.create(this, loadScript, Script.getScript("ToraEnding")));
oHUD.addChoice("Bernard", Library.Delegate.create(this, loadScript, Script.getScript("BernardEnding")));
oHUD.addChoice("Saxon", Library.Delegate.create(this, loadScript, Script.getScript("SaxonEnding")));
oHUD.addChoice("Hokinko", Library.Delegate.create(this, loadScript, Script.getScript("HokinkoEnding")));
oHUD.setPage(HUD.sPAGE_ACCUSE);
oHUD.setState("In");
nextEvent();
break;
case "Location" :
oHUD.unsetHud();
oDialogue.setState("Out");
oLocationManager.setLocation(oLocationManager.sLocation, "Out", Library.Delegate.create(this, loadScript, Script.getScript(oEvent.sTarget)));
oLocationManager.nextLocation(oEvent.sTarget);
sCurrentRoom = oEvent.sTarget;
if (oEvent.sCharacter != undefined) {
oLocationManager.nextCharacter(oEvent.sCharacter);
}
nextEvent();
break;
case "MoveToTree" :
loadScript(Script.getScript(oEvent.sTarget));
nextEvent();
break;
case "Timer" :
nLastTimer = getTimer();
nTimer = oEvent.nTimer;
break;
case "FirstLocation" :
oLocationManager.setLocation(oEvent.sTarget, "In", Library.Delegate.create(this, nextEvent));
break;
case "IdleLocation" :
if (oEvent.sCharacter != undefined) {
oLocationManager.nextCharacter(oEvent.sCharacter);
}
oLocationManager.setLocation(oEvent.sTarget, "Idle", Library.Delegate.create(this, nextEvent));
break;
case "ChangeMusic" :
Main.__get__Instance().playSong("loop1");
nextEvent();
break;
case "CloseDialogue" :
oDialogue.setState("Out");
nextEvent();
break;
case "EndTag" :
nEndTags++;
if (nEndTags >= nTOTAL_END_TAGS) {
loadScript(Script.getScript(Script.sENDING));
} else {
nextEvent();
}
break;
case "PlaySFX" :
Library.SoundManager.__get__Instance().playSFX(oEvent.sSFX, this);
nextEvent();
break;
case "StopMusic" :
Library.SoundManager.__get__Instance().playSong("Naught");
nextEvent();
break;
case "PlayMusic" :
Library.SoundManager.__get__Instance().playSong(oEvent.sSong);
nextEvent();
break;
case "SetCondition" :
aEventMemory.push(oEvent.sEvent);
nextEvent();
break;
case "SetLocationCharacter" :
oLocationManager.oLocChars[oEvent.sLocation] = oEvent.sCharacter;
if (oEvent.sMusic != undefined) {
oLocationManager.oLocMusic[oEvent.sLocation] = oEvent.sMusic;
}
nextEvent();
break;
case "PopupBlocker" :
mcPopupBlocker._visible = oEvent.bVisible;
nextEvent();
break;
case "Condition" :
var _local2;
var _local3 = false;
if (oEvent.sEvent != "") {
_local2 = 0;
while (_local2 < aEventMemory.length) {
if (oEvent.sEvent == aEventMemory[_local2]) {
_local3 = true;
break;
}
_local2++;
}
} else if (oEvent.sCulprit != undefined) {
if (oEvent.sCulprit == sCulprit) {
_local3 = true;
}
} else {
_local3 = true;
}
if (oEvent.sCulprit != undefined) {
_local3 = false;
if (oEvent.sCulprit == sCulprit) {
_local3 = true;
}
}
if (oEvent.sEvent != undefined) {
_local3 = false;
_local2 = 0;
while (_local2 < aEventMemory.length) {
if (oEvent.sEvent == aEventMemory[_local2]) {
_local3 = true;
}
_local2++;
}
}
if (oEvent.sItem != undefined) {
_local3 = false;
if (oItems.itemAcquired(undefined, oEvent.sItem)) {
_local3 = true;
}
}
if (_local3) {
loadScript(Script.getScript(oEvent.sTarget));
} else {
nextEvent();
}
break;
case "GoodEnd" :
Main.__get__Instance().gotoEnd("Good");
break;
case "BadEnd" :
Main.__get__Instance().gotoEnd("Bad");
break;
case "HokinkoEnd" :
Main.__get__Instance().gotoEnd("Hokinko");
break;
case "EndTutorial" :
Main.__get__Instance().gotoTitle();
}
}
function soundEnd(_sSFX) {
nextEvent();
}
function set currentRoom(_sCurrentRoom) {
sCurrentRoom = _sCurrentRoom;
oLocationManager.setLocation(sCurrentRoom, "Idle");
//return(__get__currentRoom());
}
static var nTOTAL_END_TAGS = 4;
}
Symbol 621 MovieClip [__Packages.LocationManager] Frame 0
class LocationManager
{
var mcRef, aItems, aCaseItems, oLocChars, oLocMusic, sLocation, sCharacter, sOldCharacter, fCallback, sItem;
function LocationManager (_mcRef) {
mcRef = _mcRef;
aItems = new Array();
aCaseItems = new Array();
oLocChars = new Object();
oLocMusic = new Object();
setItem("Hidden", "Idle");
}
function loadGame() {
mcRef.gotoAndStop(sLocation);
setLocation(sLocation, "In");
}
function setExplore(_bExplore) {
if (_bExplore) {
mcRef.mcBackground.mcChar.gotoAndStop("Out");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.onEnterFrame = Library.Delegate.create(this, enterFrameChar);
sOldCharacter = sCharacter;
sCharacter = "Hidden";
var _local2;
for (_local2 in mcRef.mcBackground.mcExplore) {
if ((mcRef.mcBackground.mcExplore[_local2] != undefined) && (_local2 != undefined)) {
mcRef.mcBackground.mcExplore[_local2].onRelease = Library.Delegate.create(this, explore, _local2);
}
}
} else {
sCharacter = sOldCharacter;
mcRef.mcBackground.mcChar.gotoAndStop("In");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.onEnterFrame = Library.Delegate.create(this, enterFrameChar);
for (var _local2 in mcRef.mcBackground.mcExplore) {
delete mcRef.mcBackground.mcExplore[_local2].onRelease;
}
}
}
function explore(_sLocation) {
Main.__get__Instance().__get__scriptManager().loadScript(Script.getExplore(_sLocation));
}
function addItems(_sExplore) {
aItems.push(_sExplore);
updateItems(mcRef.mcBackground.mcExplore);
}
function addItemsInList(_sItem) {
aCaseItems.push(_sItem);
}
function setLocation(_sLocation, _sState, _fCallback) {
sLocation = _sLocation;
if (_sState != undefined) {
mcRef.gotoAndStop(_sState);
mcRef.mcState.mcBackground.gotoAndStop(_sLocation);
mcRef.mcState.mcBackground.mcChar.gotoAndStop("Idle");
mcRef.mcState.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcState.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
updateItems(mcRef.mcState.mcBackground.mcExplore);
mcRef.onEnterFrame = Library.Delegate.create(this, enterFrameLocation);
mcRef.mcState.mcBackground.mcImages._visible = false;
mcRef.mcState.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcState.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop("Hidden");
} else {
mcRef.gotoAndStop("Idle");
mcRef.mcBackground.gotoAndStop(_sLocation);
mcRef.mcBackground.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
updateItems(mcRef.mcBackground.mcExplore);
mcRef.mcBackground.mcImages._visible = false;
mcRef.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop("Hidden");
}
if (_fCallback != undefined) {
if (mcRef._currentframe != 1) {
fCallback = _fCallback;
} else {
_fCallback();
}
}
}
function nextLocation(_sLocation) {
sLocation = _sLocation;
}
function setCharacter(_sChar, _sState, _fCallback) {
sCharacter = _sChar;
if (_sState != undefined) {
mcRef.mcBackground.mcChar.gotoAndStop(_sState);
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(_sChar);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
if (_sState != "Idle") {
mcRef.mcBackground.mcChar.onEnterFrame = Library.Delegate.create(this, enterFrameChar);
}
if (_sState == "Out") {
sCharacter = "Hidden";
}
} else {
mcRef.mcBackground.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(_sChar);
}
if (_fCallback != undefined) {
if (mcRef.mcBackground.mcChar._currentframe != 1) {
fCallback = _fCallback;
} else {
_fCallback();
}
}
}
function setItem(_sItem, _sState, _fCallback) {
if (_sItem != "") {
sItem = _sItem;
}
if (_sState != undefined) {
mcRef.mcBackground.mcShowItem.gotoAndStop(_sState);
mcRef.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop(_sItem);
mcRef.mcBackground.mcShowItem.mcState.mcChar.mcChar.gotoAndStop("Idle");
if (_sState != "Idle") {
mcRef.mcBackground.mcShowItem.onEnterFrame = Library.Delegate.create(this, enterFrameItem);
}
} else {
mcRef.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop(_sItem);
}
if (_sItem == "") {
sItem = "Hidden";
}
if (_fCallback != undefined) {
if (_sState != "Idle") {
fCallback = _fCallback;
} else {
_fCallback();
}
}
}
function nextCharacter(_sChar) {
sCharacter = _sChar;
}
function enterFrameLocation() {
if ((mcRef._currentframe == 20) && (mcRef.mcState._currentframe == mcRef.mcState._totalframes)) {
mcRef.gotoAndStop("In");
mcRef.mcState.mcBackground.gotoAndStop(sLocation);
mcRef.mcState.mcBackground.mcChar.gotoAndStop("Idle");
sCharacter = oLocChars[sLocation];
Main.__get__Instance().playSong(oLocMusic[sLocation]);
mcRef.mcState.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcState.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
updateItems(mcRef.mcState.mcBackground.mcExplore);
mcRef.mcState.mcBackground.mcImages._visible = false;
mcRef.mcState.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcState.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop("Hidden");
}
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
mcRef.gotoAndStop("Idle");
mcRef.mcBackground.gotoAndStop(sLocation);
mcRef.mcBackground.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
updateItems(mcRef.mcBackground.mcExplore);
delete mcRef.onEnterFrame;
if (fCallback != undefined) {
var _local2 = fCallback;
fCallback();
if (_local2 == fCallback) {
fCallback = undefined;
}
}
mcRef.mcBackground.mcImages._visible = false;
mcRef.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop("Hidden");
}
}
function enterFrameChar() {
if (mcRef.mcBackground.mcChar.mcState._currentframe == mcRef.mcBackground.mcChar.mcState._totalframes) {
mcRef.mcBackground.mcChar.gotoAndStop("Idle");
mcRef.mcBackground.mcChar.mcState.mcChar.gotoAndStop(sCharacter);
mcRef.mcBackground.mcChar.mcState.mcChar.mcChar.gotoAndStop("Idle");
delete mcRef.mcBackground.mcChar.onEnterFrame;
if (fCallback != undefined) {
var _local2 = fCallback;
fCallback();
if (_local2 == fCallback) {
fCallback = undefined;
}
}
}
}
function enterFrameItem() {
if (mcRef.mcBackground.mcShowItem.mcState._currentframe == mcRef.mcBackground.mcShowItem.mcState._totalframes) {
if (mcRef.mcBackground.mcShowItem._currentFrame == 10) {
mcRef.mcBackground.mcShowItem.gotoAndStop("Idle");
mcRef.mcBackground.mcShowItem.mcState.mcChar.gotoAndStop(sItem);
} else {
mcRef.mcBackground.mcShowItem.gotoAndStop("Hidden");
}
delete mcRef.mcBackground.mcShowItem.onEnterFrame;
if (fCallback != undefined) {
var _local2 = fCallback;
fCallback();
if (_local2 == fCallback) {
fCallback = undefined;
}
}
}
}
function updateItems(_mcExplore) {
var _local2;
var _local3;
for (_local2 in _mcExplore) {
if (_local2.substr(0, 4) == "item") {
_local3 = itemInList(_local2);
if (_local3) {
_mcExplore[_local2]._visible = false;
}
}
}
}
function itemInList(_sExplore) {
var _local3 = true;
var _local2;
var _local4 = aCaseItems.length;
_local2 = 0;
while (_local2 < _local4) {
if (aCaseItems[_local2] == _sExplore) {
_local3 = false;
break;
}
_local2++;
}
if (!_local3) {
_local4 = aItems.length;
_local2 = 0;
while (_local2 < _local4) {
if (aItems[_local2] == _sExplore) {
_local3 = true;
break;
}
_local2++;
}
}
return(_local3);
}
}
Symbol 622 MovieClip [__Packages.Library.Delegate] Frame 0
class Library.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local2 = arguments.callee.arg;
_local2 = _local2.concat(arguments);
return(_local4.apply(_local3, _local2));
};
_local2.target = obj;
_local2.func = func;
_local2.arg = arguments.slice(2);
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 623 MovieClip [__Packages.Script] Frame 0
class Script
{
static var oScript;
function Script () {
}
static function getScript(_sPosition) {
return(oScript[_sPosition].slice());
}
static function getAllScript() {
var _local1 = new Array();
var _local2;
for (_local2 in oScript) {
_local1 = _local1.concat(oScript[_local2].slice());
}
return(_local1);
}
static function getExplore(_sItem) {
var _local1 = oEXPLORE[_sItem].slice(0);
return(oEXPLORE[_sItem].slice(0));
}
static var sBEGINNING = "Start";
static var sTUTORIAL = "Tutorial";
static var sENDING = "TransitionToEnd";
static var aCHARACTERS = new Array("Bernard", "Tora", "Saxon");
static var sMUSIC_LIVINGROOM = "Celestial_Moment_5";
static var sMUSIC_GYM = "Greasy_Bass_Beat_1";
static var sMUSIC_KITCHEN = "Rip_Rockin_Piano_Riff_2";
static var sMUSIC_LIBRARY = "library";
static var sMUSIC_ENDING = "EndSequence";
static var sMUSIC_BOOMBOX_ROUGH = "grunge";
static var sMUSIC_BOOMBOX_NICE = "relaxing.mp3";
static var sMUSIC_GOOD_END = "Saving_Grace.mp3";
static var sMUSIC_BAD_END = "badend";
static var nIMAGE_DISPLAY_TIME = 3500;
static var aITEMS = new Array({sName:"Photo", bAlways:true, sClipName:"itemtutorialphoto", oCharacters:new Object({Tora:"ToraPhoto", Bernard:"BernardPhoto", Saxon:"SaxonPhoto", Andy:"AndyPhoto"})}, {sName:"Boombox", sCharacter:"Tora", bGood:true, bBefore:true, sClipName:"itemlivingroomboombox", oCharacters:new Object({Tora:"ToraBoombox", Bernard:"BernardBoombox", Saxon:"SaxonBoombox", Andy:"AndyBoombox"})}, {sName:"Lady Magazine", sCharacter:"Tora", bGood:false, bBefore:true, sClipName:"itemlibrarymagazine", oCharacters:new Object({Tora:"ToraMagazine", Bernard:"BernardMagazine", Saxon:"SaxonMagazine", Andy:"AndyMagazine"})}, {sName:"Fox Plushie", sCharacter:"Saxon", bGood:true, bBefore:false, sClipName:"itemkitchenplushie", oCharacters:new Object({Tora:"ToraPlushie", Bernard:"BernardPlushie", Saxon:"SaxonPlushie", Andy:"AndyPlushie"})}, {sName:"Computer Logs", sCharacter:"Saxon", bGood:false, bBefore:true, sClipName:"itemcomputerlogs", oCharacters:new Object({Tora:"ToraLogs", Bernard:"BernardLogs", Saxon:"SaxonLogs", Andy:"AndyLogs"})}, {sName:"Lotion", sCharacter:"Bernard", bGood:true, bBefore:true, sClipName:"itemlivingroomlotion", oCharacters:new Object({Tora:"ToraLotion", Bernard:"BernardLotion", Saxon:"SaxonLotion", Andy:"AndyLotion"})}, {sName:"Towel", sCharacter:"Bernard", bGood:false, bBefore:false, sClipName:"itemkitchentowel", oCharacters:new Object({Tora:"ToraTowel", Bernard:"BernardTowel", Saxon:"SaxonTowel", Andy:"AndyTowel"})});
static var oEXPLORE = new Object({itemtutorialphoto:new Array({sType:"Condition", sEvent:"TutorialFindPhoto", sTarget:"TutorialFindPhoto"}), livingroomtelevision:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I haven't watched television once since I\narrived at the Inn. Actually, I haven't seen\nanyone use it."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"It looks pretty old, probably only there\nfor decoration. I'll bet they don't have cable\nor satellite either."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Not that it matters, getting away from\nsociety is why I came here in the first place."}, {sType:"CloseDialogue"}), livingroomlamp:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"The lamp is broken, I saw it for myself\nlast night."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"But I guess we don't need it anyways\nsince the fireplace light's up the place\nquite well at night."}, {sType:"CloseDialogue"}), livingroomoutside:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"There was a huge storm last night and the\nroad is still completely blocked. We couldn't\nleave if we wanted to."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Sounds like a horror movie premise. Good\nthing we still have contact with the outside,\nas well as electricity and food."}, {sType:"CloseDialogue"}), livingroomdrawer:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I wonder if there are any clues."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", nSpeed:-5, sDialogue:"..."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"No, I guess not. Not every corner can be\ninteresting I guess."}, {sType:"CloseDialogue"}), livingroomfireplace:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I've not seen the fire die out since I've arrived."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I guess Bernard took it upon himself to keep\nthe fireplace well fed in the absence of\nthe other employees."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I'm very grateful for the warm feeling.\nIt must have set up the mood quite well\nlast night for Andy and that mystery man."}, {sType:"CloseDialogue"}), livingroomleftcouch:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"These are some of the most comfortable\ncouches I've had the pleasure of sitting on."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"Just laying comfortably, reading a\ngood book or even dozing off, is there anything more\nsatisfying in life?"}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"I think not."}, {sType:"CloseDialogue"}), livingroomrightcouch:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"I guess this is where Andy had sex last night.\nThe cussions are very soft and the fireplace\ncreates a good ambiance."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"The perfect setting for an orgasmic evening.\nIf only he knew with whom he had that\nevening."}, {sType:"CloseDialogue"}), livingroompainting:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"A ship, trapped in a storm. Kind of an odd fit\nfor the warmth of the room, yet it's\nalso strangely mesmerizing."}, {sType:"CloseDialogue"}), kitchenflowers:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"These are... flowers, and that's pretty much\nthe extent of my knowledge on them."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"They're not roses, so I don't really know\nwhat kind they are."}, {sType:"Character", sAction:"In", sCharacter:"Bernard"}, {sType:"Dialogue", sName:"Me", sDialogue:"Hey Bernard, what kind of flowers are these?"}, {sType:"Dialogue", sName:"Bernard", sDialogue:"I don't know. The good smelling kind."}, {sType:"Dialogue", sName:"Me", sDialogue:"Right..."}, {sType:"Character", sAction:"Out", sCharacter:"Bernard"}, {sType:"CloseDialogue"}), kitchenoven:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"Looks like the main course for tonight's meal\nis in there, being cooked to perfection."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"I don't dare to look, I'd rather be surprised\nwhen the plate is placed before me tonight."}, {sType:"CloseDialogue"}), kitchentoaster:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"Although this is just a toaster, I don't know\nwhy but I find it kind of interesting."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"It has a slick futuristic design and can toast\nfour pieces at once... I feel like a salesman."}, {sType:"CloseDialogue"}), kitchensoup:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"Some soup is cooking on the stove,\nspeading its aroma across the room."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"I can't quite make out what kind of\nsoup it is, but my mouth is already wathering\nat the thought of eating it."}, {sType:"CloseDialogue"}), kitchenplates:new Array({sType:"Dialogue", sCategory:"Thought", sDialogue:"A pile of plates. Can't say much more\nabout them really."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"..."}, {sType:"Dialogue", sCategory:"Thought", sDialogue:"They're round."}, {sType:"CloseDialogue"}), kitchenwasher:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"The most necessary appliance for any celibate male: a dishwasher."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This one actually isn't that big, but then again this is a small inn so I guess they don't need it."}, {sType:"CloseDialogue"}), kitchenfood:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A series of tasty looking ingredients which\nwill probably be used for supper."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I don't know much about food, but I can see\nhow much care has been put into choosing the very finest for the best of meals."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Maybe if I take just one..."}, {sType:"Character", sAction:"In", sCharacter:"Bernard"}, {sType:"Dialogue", sName:"Bernard", sDialogue:"Hey! No touching. Wait for supper."}, {sType:"Dialogue", sName:"Me", sDialogue:"Awww. Ok... Well, I guess I'll have to go\nsnoop around for more clues then."}, {sType:"Dialogue", sName:"Bernard", sDialogue:"You do that."}, {sType:"Character", sAction:"Out", sCharacter:"Bernard"}, {sType:"Character", sAction:"Idle", sCharacter:"Hidden"}, {sType:"CloseDialogue"}), kitchenwine:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Hey, it's a bottle of wine. Let's see..."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"\"Ch\u00E2teau Montreuil\", 1847. An excellent level\nwith a rich bouquet of floral fragrences and\nhints of tangy spices."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This vintage has a velvety sheen, long legs and has a mildly sweet taste on the palate. A pleasure to discover again and again."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Whenever I read wine labels, I always feel like the wine industry is pulling a century old joke on everyone else."}, {sType:"CloseDialogue"}), kitchenfreezer:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I've eaten some of the best meals ever\nin this place, and every good meal starts\nwith fresh ingredients."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Bernard keeps a large array of meat, cheeses\nand fruit in this freezer, all ready to be\nserved to us, when the time is right."}, {sType:"Character", sAction:"In", sCharacter:"Bernard"}, {sType:"Dialogue", sName:"Bernard", sDialogue:"Get out of there, the next meal is coming up\nsoon. You'll spoil your appetite."}, {sType:"Dialogue", sName:"Me", sDialogue:"Sorry Bernard. I can't wait to see what you\ncome up with."}, {sType:"Character", sAction:"Out", sCharacter:"Bernard"}, {sType:"CloseDialogue"}), libraryscroll:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"It's a wall scroll of some kind, I've seen\nsome in fancy Asian restaurants.\nI'm not sure what it says."}, {sType:"Character", sAction:"In", sCharacter:"Saxon"}, {sType:"Dialogue", sName:"Saxon", sDialogue:"Looks cool, doesn't it."}, {sType:"Dialogue", sName:"Me", sDialogue:"Yeah. Can you read it?"}, {sType:"Dialogue", sName:"Saxon", sDialogue:"I've been taking Japanese classes for a while\nnow, so yeah I can pretty much make it out."}, {sType:"Dialogue", sName:"Saxon", sDialogue:"Through the snow and storm\nThe spirit flies away happy and free\nHe watches and smiles."}, {sType:"Dialogue", sName:"Me", sDialogue:"That's pretty cool. It looks\npretty old. I wonder how much\nit's worth."}, {sType:"Dialogue", sName:"Saxon", sDialogue:"You don't have a good eye for\nthese things. It's clearly only a facsimile."}, {sType:"Dialogue", sName:"Saxon", sDialogue:"The paper doesn't look that old\nand it's not even signed with a\ntraditionnal stamp from the author."}, {sType:"Dialogue", sName:"Me", sDialogue:"I'll defer to your greater knowledge.\nI still think it looks great though."}, {sType:"Character", sAction:"Out", sCharacter:"Saxon"}, {sType:"CloseDialogue"}), librarystatue:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A stragely familiar looking statue of someone\nstanding nobly. He seems to be thinking\nabout something."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"The sight is oddly mesmerizing."}, {sType:"CloseDialogue"}), librarybooks1:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A wide range of books, more than I can count\nand probably more than I will read\nin a lifetime."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Every genre is represented: historical,\nadventure, science fiction, horror, mangas...\n"}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I didn't think a small place like this inn\ncould hold so many. Maybe I'll give it\na closer look once I've cracked the case."}, {sType:"CloseDialogue"}), librarybooks2:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Novels and more novels, of every genre.\nScience-fiction, adventure, dramas, romance..."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"The owners spared no expense for those\nwho're only looking for a simple read in\na remote location, that's for sure."}, {sType:"CloseDialogue"}), librarycouch:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A pair of leather couches, perfect for those\nlong nights reading that nail biting novel."}, {sType:"CloseDialogue"}), libraryfurniture:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A wooden table, with a lamp on it books\non it. There's a drawer on here, but I think\nit's just for show."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"It won't budge no matter how I pull. And the\nbottom cabinet just has a few more random\nbooks. As if this place needed any more."}, {sType:"CloseDialogue"}), librarylamp:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A classy looking vase, bronze colored which\nmatches the tone of the room perfectly."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"The light is bright enough to read,\nbut keeps that cosy feel to the room."}, {sType:"CloseDialogue"}), librarybonzai:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Now this is pretty nice to see, a bonzai tree.\nI can't imagine the time spent to keep it\nlooking so nice."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"In fact, I'm surprised to find it in such a good\nshape, since there are no windows around."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Maybe the owners move it around to gather\nsome sunlight and keep it healthy."}, {sType:"CloseDialogue"}), gymmirror:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"A gleaming mirror reflects the entire room. Not that I want to be judgemental, but I bet Tora spent some time admiring himself in it."}, {sType:"CloseDialogue"}), gymbackmachine:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Another training machine. This might just be\na small Inn, but it makes sure to train every\none of your muscles, should you want to."}, {sType:"CloseDialogue"}), gymstatue:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"How very athletic, perfect for this place. I'll bet it's a good model for those who train here."}, {sType:"CloseDialogue"}), gymspeaker:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"It's a large speaker, which doesn't seem to be\nconnected to anything."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I guess those who want to listen to music\nwhile they train also need to bring their\nown music player."}, {sType:"CloseDialogue"}), gymweights:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I always told myself I should train, but I never got around to it. I wonder if I could lift those weights."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"..."}, {sType:"Dialogue", sName:"Me", sDialogue:"What the hell?! 230 pounds?!"}, {sType:"Character", sAction:"In", sCharacter:"Tora"}, {sType:"Dialogue", sName:"Me", sDialogue:"Be careful with that, kid, you might get hurt."}, {sType:"Dialogue", sName:"Me", sDialogue:"Yeah, yeah."}, {sType:"Character", sAction:"Out", sCharacter:"Tora"}, {sType:"Dialogue", sName:"Me", sCategory:"Thought", sDialogue:"If nothing else, I do have to respect his strength."}, {sType:"CloseDialogue"}), gymfrontmachine:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I always told myself I should train, but I never\ngot around to it. I wonder if I could even lift\nthose weights."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"..."}, {sType:"Dialogue", sName:"Me", sDialogue:"What the hell?! 230 pounds?!"}, {sType:"Character", sAction:"In", sCharacter:"Tora"}, {sType:"Dialogue", sName:"Me", sDialogue:"Be careful with that, kid, you might get hurt."}, {sType:"Dialogue", sName:"Me", sDialogue:"Yeah, yeah."}, {sType:"Character", sAction:"Out", sCharacter:"Tora"}, {sType:"Dialogue", sName:"Me", sCategory:"Thought", sDialogue:"If nothing else, I do have to respect\nhis strength."}, {sType:"CloseDialogue"}), gymseat:new Array({sType:"Dialogue", sName:"Me", sCategory:"Thought", sDialogue:"The small seat feels a little out of place.\nMaybe a trainer could use it to remain at his athlete's side\nat all times."}, {sType:"CloseDialogue"}), gymbag:new Array({sType:"Dialogue", sName:"Me", sCategory:"Thought", sDialogue:"It's Tora's gym bag, filled with clothes\nand a towel."}, {sType:"CloseDialogue"}), itemlivingroomlotion:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This looks a little out of place.\nIt's a bottle of honey based lotion."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I don't remember seeing it last night,\nso someone must have brought it here since."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I think I'll try to figure out\nwho it was."}, {sType:"AddItem", sName:"Lotion", sExplore:"itemlivingroomlotion"}, {sType:"CloseDialogue"}), itemlivingroomboombox:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This looks like one of those portable radio\nsystems. It has a CD player and a cassette\nplayer."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Actually, there is a cassette in there.\nMaybe some music to set the tone for last\nnight?"}, {sType:"PopupBlocker", bVisible:true}, {sType:"CloseDialogue"}, {sType:"PlaySFX", sSFX:"CassetteClick"}, {sType:"Timer", nTimer:1000}, {sType:"StopMusic"}, {sType:"Timer", nTimer:1000}, {sType:"PlayMusic", sSong:sMUSIC_BOOMBOX_ROUGH}, {sType:"Timer", nTimer:6500}, {sType:"PlaySFX", sSFX:"CassetteClick"}, {sType:"Timer", nTimer:1000}, {sType:"StopMusic"}, {sType:"PopupBlocker", bVisible:false}, {sType:"Dialogue", sName:"Me", sCategory:"Thought", sDialogue:"Well that doesn't set a very good mood. Still,\nI'll have to ask Andy if he heard music last\nnight."}, {sType:"PlayMusic", sSong:sMUSIC_LIVINGROOM}, {sType:"AddItem", sName:"Boombox", sExplore:"itemlivingroomboombox"}, {sType:"CloseDialogue"}), itemlibrarymagazine:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Someone left a magazine just laying around."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Wait... this is a male erotica magazine."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This inn might be for relaxing, but I doubt\nthey would be keeping this type of\nmaterial for the guests, which means..."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Someone brought it here. I'm really curious to\nsee who would come and read pornography\ninside the library."}, {sType:"AddItem", sName:"Lady Magazine", sExplore:"itemlibrarymagazine"}, {sType:"CloseDialogue"}), itemkitchenplushie:new Array({sType:"ShowItem", sEvent:"Fox Plushie"}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Aww, how cute. It's a fox plush toy and it's\njust laying around against the counter.\nLooks like someone dropped it."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I wonder who it belongs to. I doubt it would\nrelate to Andy's case, but I'm still curious\nto learn more about it."}, {sType:"HideItem", sEvent:"Fox Plushie"}, {sType:"AddItem", sName:"Fox Plushie", sExplore:"itemkitchenplushie"}, {sType:"CloseDialogue"}), itemkitchentowel:new Array({sType:"ShowItem", sEvent:"Towel"}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"This towel doesn't look like it belongs here.\nActually, this is a bath towel, though\nit doesn't have the the Hokinko logo on it."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Someone must have taken a bath and then\ndropped it here. But why would anyone\ndo that?"}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Does it mean we have a naked person walking\nalong the hallways? I better ask around\nto see if anyone knows who left this here."}, {sType:"HideItem", sEvent:"Towel"}, {sType:"AddItem", sName:"Towel", sExplore:"itemkitchentowel"}, {sType:"CloseDialogue"}), itemcomputerlogs:new Array({sType:"ShowItem", sEvent:"Computer Logs"}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Something seems to be coming out of Tora's\ngym bag. It looks like some computer paper."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Hey, these look like records of an Internet\nconversation. According to the dates,\nthe conversation happened last night."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I wonder why Tora printed these. The user\nnames don't say much: LooseAsAGoose and\nHungLikeAWhale."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"I guess I'll have to ask him what this is all\nabout."}, {sType:"HideItem", sEvent:"Computer Logs"}, {sType:"AddItem", sName:"Computer Logs", sExplore:"itemcomputerlogs"}, {sType:"CloseDialogue"}), statuetest1:new Array({sType:"Condition", sEvent:"StatuePictureFound", sItem:"", sTarget:"statuetestend"}, {sType:"Condition", sEvent:"StatueTestLivingRoom", sItem:"", sTarget:"statuetest2"}, {sType:"CloseDialogue"}), statuetest2:new Array({sType:"Condition", sEvent:"StatueTestKitchen", sItem:"", sTarget:"statuetest3"}, {sType:"CloseDialogue"}), statuetest3:new Array({sType:"Condition", sEvent:"StatueTestGym", sItem:"", sTarget:"statuetest4"}, {sType:"CloseDialogue"}), statuetest4:new Array({sType:"Condition", sEvent:"StatueTestLibrary", sItem:"", sTarget:"statuetest5"}, {sType:"CloseDialogue"}), statuetest5:new Array({sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Hm, there seems to be something stuck behind the statue."}, {sType:"SetCondition", sEvent:"StatuePictureFound"}, {sType:"CloseDialogue"}), statuetestend:new Array({sType:"CloseDialogue"})});
////(new Array({sType:"Character", sAction:"Idle", sCharacter:"Hidden"}, {sType:"FirstLocation", sTarget:"RoomLivingRoom"}, {sType:"UnsetHud"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"SetLocationCharacter", sLocation:"TutorialRoomB", sCharacter:"Andy"}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"FirstLocation", sTarget:"Tutorial"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Hello there friend and welcome to the\nHokinko Inn. The game is about to\nstart but before before we do,"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I just want to help you learn how play\nthe game."}, {sType:"CloseDialogue"}, {sType:"SetInterrogate", aChoices:new Array({sOption:"How are you", sTarget:"TutorialDialogue"})}, {sType:"SetHud", sLoadedEvent:"Tutorial"}, {sType:"Dialogue", sName:"Andy", sCategory:"Small", sDialogue:"You might notice your investigator\nnotepad in the lower right corner."}, {sType:"Dialogue", sName:"Andy", sCategory:"Small", sDialogue:"This is the center of all your operations.\nFrom your notepad, you may\nstart any task."}, {sType:"Dialogue", sName:"Andy", sCategory:"Small", sDialogue:"For exemple, the Interrogate button\nlet's you ask questions to the other\ntenents in the Inn."}, {sType:"Dialogue", sName:"Andy", sCategory:"Small", sDialogue:"Try asking me a question by clicking\non the interrogate button and then\nselecting the question."}, {sType:"CloseDialogue"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I'm wonderful, thanks! Remember to question\neveryone about everything. Only then can\nyou resolve the looming mystery."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Now, lets try to explore this room. Clicking\non the Search Room button puts you in the\nexploration mode."}, {sType:"Dialogue", sName:"Andy", sDialogue:"From here, you can click on objects in the\nroom to get a description of them."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Sometimes, you'll even find a clue which you\ncan bring with you to show to other people."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Try going in exploration mode and find a\npicture of me I've left somewhere\nin the room."}, {sType:"SetCondition", sEvent:"TutorialFindPhoto"}, {sType:"SetHud", sLoadedEvent:"TutorialDialogue"}));// not popped
//(new Array({sType:"SetEffect", sTarget:"BlackIn"}, {sType:"ShowImage", sTarget:"TutorialPhoto"}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Congratulations! You've found my photo.\nSexy, wouldn't you say?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"And each time you see a picture like this, you unlock it in in the gallery mode."}, {sType:"SetEffect", sTarget:"BlackIn"}, {sType:"HideImage"}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"Dialogue", sName:"Andy", sDialogue:"This one wasn't very well hidden, but\nother pictures may be so don't hesitate to\nsearch thoroughly through every room."}, {sType:"Dialogue", sName:"Andy", sDialogue:"You never know what could be useful.\nNow, try presenting the photo to me, by\nusing the show evidence option in the hud."}, {sType:"Character", sAction:"Out", sCharacter:"Andy"}, {sType:"Character", sAction:"Out", sCharacter:"Hidden"}, {sType:"AddItem", sName:"Photo", sExplore:"itemtutorialphoto"}, {sType:"CloseDialogue"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"ShowItem", sEvent:"Photo"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Yup, that's me alright, one sexy fox. Oh don't\nworry, I'm not really that vain, just the\nplayful type."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Presenting items to the right people can\nsometimes give you more informaton\nabout them."}, {sType:"Dialogue", sName:"Andy", sDialogue:"After all, to be a good investigator, you'll need\nto really get to the bottom of things."}, {sType:"HideItem", sEvent:"Photo"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Oh, one last thing before you get going."}, {sType:"Dialogue", sName:"Andy", sDialogue:"The Inn has four areas you may explore:\nthe Living Room, the Gym, the Library and\nthe Kitchen."}, {sType:"Dialogue", sName:"Andy", sDialogue:"You'll find someone different to interrogate in\nevery room and they will all be essencial\nto the investigation."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Try going to the Library using the\nChange Room option from the Hud."}, {sType:"SetLocationCharacter", sLocation:"RoomLibrary", sCharacter:"", sMusic:sMUSIC_LIBRARY}, {sType:"SetLocations", aChoices:new Array({sOption:"Library", sTarget:"TutorialRoomB"})}, {sType:"SetHud", sLoadedEvent:"AndyPhoto"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Tee hee! You found me! I think you're ready\nto go out and crack some cases!"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Oh, I almost forgot! I just have\none last thing to show you:\nthe save feature."}, {sType:"Dialogue", sName:"Andy", sDialogue:"To save your game, simply select the Save\noption from the Hud."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Once it's completed, you may close the game\nand return to it at your convenience."}, {sType:"Dialogue", sName:"Andy", sDialogue:"You only have one save slot however, so use it\nwisely."}, {sType:"Dialogue", sName:"Andy", sDialogue:"But don't worry about the unlocked pictures in\nthe gallery and your completed games, those\nsave automatically."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Be warned however that moving the game\n(downloading it or moving from one folder to\nanother) will make you lose your save."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well, I'm done babbling, I think you're ready\nto\ntake on the mystery. Have fun!"}, {sType:"EndTutorial"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Thought", sName:"Me", sDialogue:"And so the mystery of the Hokinko inn was finally resolved. Andy had what I heard was a very memorable time for the remaining days of our trip. As for me, I was proud that I was able to solve the case. But I still wondered: what brought about the mysterious amnesia Andy was struck with? Was it fatigue maybe? Or an emotionnal impact? Or maybe could it be as Bernard said, a the effects of the Hokinko spirit from which the inn takes its name... I don't think we'll ever know, but it doesn't matter. The mystery of who yiffed my friend is over, Andy is happy, I'm satisfied, all's well that end's well."}, {sType:"GoodEnd"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"HideImage"}, {sType:"Character", sAction:"Idle", sCharacter:"Hidden"}, {sType:"FirstLocation", sTarget:"RoomIntro"}, {sType:"SetLocationCharacter", sLocation:"RoomLivingRoom", sCharacter:"Andy", sMusic:sMUSIC_LIVINGROOM}, {sType:"SetLocationCharacter", sLocation:"RoomGym", sCharacter:"ToraBackground", sMusic:sMUSIC_GYM}, {sType:"SetLocationCharacter", sLocation:"RoomKitchen", sCharacter:"BernardBackground", sMusic:sMUSIC_KITCHEN}, {sType:"SetLocationCharacter", sLocation:"RoomLibrary", sCharacter:"SaxonBackground", sMusic:sMUSIC_LIBRARY}, {sType:"SetLocationCharacter", sLocation:"RoomEnding", sCharacter:"Hidden", sMusic:sMUSIC_ENDING}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"Night, the haven of shadows and mysteries."}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"Nested far from civilization and lost in a\nsnowstorm, lies the finest in relaxation, away\nfrom the stress of daily life: the Hokinko Inn."}, {sType:"SetEffect", sTarget:"BlackIn"}, {sType:"ShowImage", sTarget:"Intro2"}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"But the Inn also holds a secret, so old\nit was forgotten by most... until now."}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"Deep into the night, all five residents of the\nInn are fast asleep. All but one who is\ncreeping closer to his pray with every step."}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"He slowly approaches the Fox, who has fallen\nasleep in the living room in front of a warm\nfire."}, {sType:"CloseDialogue"}, {sType:"Timer", nTimer:400}, {sType:"PlaySFX", sSFX:"woodstep"}, {sType:"Timer", nTimer:1200}, {sType:"Dialogue", sName:"Fox", sDialogue:"Huh? What..."}, {sType:"Dialogue", sName:"Fox", sDialogue:"Oh, it\u2019s you. What are you..."}, {sType:"CloseDialogue"}, {sType:"SetEffect", sTarget:"BlackIn"}, {sType:"ShowImage", sTarget:"IntroShadow"}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"Timer", nTimer:500}, {sType:"Dialogue", sName:"Fox", sDialogue:"Oh yes! Take me, take me hard! I love the\nfeeling of your cock sliding in me! Deeper!\nHARDER!"}, {sType:"Dialogue", sCategory:"Narrator", sName:"", sDialogue:"His shouts are deafened by the howl of the\nwind outside. The rest of the household hears\nnothing."}, {sType:"CloseDialogue"}, {sType:"SetEffect", sTarget:"BlackIn"}, {sType:"ShowImage", sTarget:"IntroFoxStomach"}, {sType:"SetEffect", sTarget:"BlackOut"}, {sType:"Timer", nTimer:500}, {sType:"Dialogue", sName:"Fox", sDialogue:"Ahhhhhhh! AHHHHHHH!!!"}, {sType:"CloseDialogue"}, {sType:"IdleLocation", sTarget:"RoomIntroEnd"}, {sType:"Location", sTarget:"RoomLivingRoom", sCharacter:"Andy"}));// not popped
//(new Array({sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Condition", sEvent:"FirstLivingRoom", sTarget:"RoomLivingRoomAfterFirst"}, {sType:"SetCondition", sEvent:"FirstLivingRoom"}, {sType:"Dialogue", sName:"Andy", sDialogue:"And then I must have fazed out. I came four\ntimes last night. And when I woke up this\nmorning, I was laying on the couch."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I could still feel my bum hole stretched too."}, {sType:"Dialogue", sName:"Me", sDialogue:"Sounds like quite an experience..."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I swear, I never felt anything like it. It was\nsimply magical."}, {sType:"Dialogue", sName:"Me", sDialogue:"So who was it?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"That's the weird part: I don't remember."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I can recall the heat of the fireplace, the\nwind outside and the moving shadows and\nhow ecstatic I felt..."}, {sType:"Dialogue", sName:"Andy", sDialogue:"But not the one who yiffed me."}, {sType:"Dialogue", sName:"Me", sDialogue:"How is that possible?"}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well it was dark... and he grabbed me by\nsurprise. But it was the most intense feeling\nI've ever felt in my entire life."}, {sType:"Dialogue", sName:"Andy", sDialogue:"His grip was so soft and delicate, yet as a\nlover he could be so overwhelming."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I have to find out who it was!\nPlease help me."}, {sType:"Dialogue", sName:"Me", sDialogue:"Now I'm all curious myself. I'll try to look\naround and see what I can find."}, {sType:"Dialogue", sName:"Me", sDialogue:"I'll go talk to the others, maybe they know\nsomething about this."}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Condition", sEvent:"AndyLastNight", sTarget:"RoomLivingRoomAfterAndyLastNight"}, {sType:"SetInterrogate", aChoices:new Array({sOption:"Hokinko Inn", sTarget:"AndyInn"}, {sOption:"Last Night", sTarget:"AndyLastNight"})}, {sType:"SetLocations", aChoices:new Array({sOption:"Gym", sTarget:"RoomGym"}, {sOption:"Library", sTarget:"RoomLibrary"}, {sOption:"Kitchen", sTarget:"RoomKitchen"})}, {sType:"SetHud", sLoadedEvent:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"SetInterrogate", aChoices:new Array({sOption:"Hokinko Inn", sTarget:"AndyInn"}, {sOption:"Last Night", sTarget:"AndyLastNight"}, {sOption:"Bernard", sTarget:"AndyAboutBernard"}, {sOption:"Saxon", sTarget:"AndyAboutSaxon"}, {sOption:"Tora", sTarget:"AndyAboutTora"})}, {sType:"SetLocations", aChoices:new Array({sOption:"Gym", sTarget:"RoomGym"}, {sOption:"Library", sTarget:"RoomLibrary"}, {sOption:"Kitchen", sTarget:"RoomKitchen"})}, {sType:"SetHud", sLoadedEvent:"RoomLivingRoomAfterAndyLastNight"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I still can't believe our luck, winning tickets to\nstay at a place like this."}, {sType:"Dialogue", sName:"Andy", sDialogue:"And in a contest I don't even remember\nentering no less."}, {sType:"Dialogue", sName:"Me", sDialogue:"Yeah, it did sound fishy, but they're real\nalright. And I can't thank you enough\nfor inviting me along."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Hey, what are best friends for after all? And\nbesides, you're doing more than your share to\npay me back by investigating like this."}, {sType:"Dialogue", sName:"Me", sDialogue:"I'm happy to do it. All of this is pretty\nmysterious. I just hope I can find some\nanswers."}, {sType:"Dialogue", sName:"Andy", sDialogue:"You and me both. Last night was amazing. I\nwouldn't want to leave without thanking that\nperson, who ever he is."}, {sType:"Dialogue", sName:"Me", sDialogue:"And possibly relive the experience I'm sure."}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Oh you. You know me too well. I just hope\nhe's a nice guy. I mean, I think he is,\nbut you can never be too sure."}, {sType:"Dialogue", sName:"Me", sDialogue:"Before long, you will know, I promise."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Thanks."}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"CloseDialogue"}, {sType:"Dialogue", sName:"Me", sDialogue:"So at what time did your encounter happen?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Let's see... Well it was around ten when we\nfinished eating and I helped the cook Bernard\nclean up."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Since the place is really small and private, he\ncooks, serves and cleans afterwards."}, {sType:"Dialogue", sName:"Andy", sDialogue:"When we finished, you had already gotten to\nsleep but I wasn't tired. I went to the library\nto see if I couldn't find something to read."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Saxon was there and I felt him looking at me\nall the time I was there. But I didn't mind,\nI was flattered."}, {sType:"Dialogue", sName:"Andy", sDialogue:"And when I chose my book, as I returned\nto the living room, I stopped for a few\nminutes to observe Tora train."}, {sType:"Dialogue", sName:"Andy", sDialogue:"You know, that tiger has one set of gorgeous\nabs."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Once I got back to the living room, I read for a\nbit, but the ambiance was so soothing that\nI fell asleep."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I later woke up when I heard footsteps and..."}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well, you know what happened next."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I know that I saw the face of the fur\nI mated with. I just... don't remember."}, {sType:"Dialogue", sName:"Me", sDialogue:"Ok, well it gives me a starting point at least,\nas faint as it may be."}, {sType:"Dialogue", sName:"Me", sDialogue:"You had contact with all three other members of the household so I'll have to interrogate\nthem all individually."}, {sType:"Dialogue", sName:"Andy", sDialogue:"And if you ask me, I can tell you more about\nthem."}, {sType:"Dialogue", sName:"Me", sDialogue:"That would be very useful, yeah."}, {sType:"SetCondition", sEvent:"AndyLastNight"}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Me", sDialogue:"So you told me you hooked up with Tora\nlast night?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well I wouldn't exactly call it \"hooking up\".\nAll I did was pass in front of the gym and\nI saw him training."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I think I heard him call it \"flexing\" when\nhe was talking to Bernard."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Anyways, he was doing sit-ups at the time. I\nobserved him for maybe five minutes before\nhe noticed me in the doorway."}, {sType:"Dialogue", sName:"Me", sDialogue:"What did he do then?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"He smiled... and made a lewd gesture."}, {sType:"Dialogue", sName:"Me", sDialogue:"He flipped you off?"}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well no, he... He kind of invited me in..."}, {sType:"Dialogue", sName:"Andy", sDialogue:"...to be intimate."}, {sType:"Dialogue", sName:"Me", sDialogue:"Oh... OH!!! So what did you do?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I was really tempted to go but I guess I was\ntoo shy, so I ran away. But that tiger,\nwhat a hunk."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"And you know, I think his personality is more\ncomplex than we might give him credit for.\nHe isn't just some dumb bodybuilder."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I felt a sweet spot inside of him.\nTo be blunt, I wouldn't mind having\nthat tiger for myself for a few nights."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Andy is really blushing about this. I'll have to\nask Tora more details about what happened\nbetween those two."}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Me", sDialogue:"You saw the library last night, how was it?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"It's really impressive. I wouldn't have thought\nan Inn like here would invest so much on\nbooks."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I just think it's amazing how much they cater\nto every type of personality."}, {sType:"Dialogue", sName:"Andy", sDialogue:"Although the books arn't the only things I've\nfound interesting in the library."}, {sType:"Dialogue", sName:"Me", sDialogue:"Care to elaborate a little?"}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Well, you're talking about the library and\nSaxon immediately jumps to mind."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"He seems to be spending a lot of time\namong the books."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I passed in front of the library a few times\nlast night and he was always there. "}, {sType:"Dialogue", sName:"Andy", sDialogue:"He looked so cute too, resting comfortably,\nnested deep in a long chair and reading a\nrather large novel."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I eventually came in, took a book of my own\nand sat on the couch beside him."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I must have I stayed there for maybe half an\nhour, but I don't really remember much about\nthe book itself. I wasn't really interested in it."}, {sType:"Dialogue", sName:"Me", sDialogue:"You were scoping him out I'm guessing."}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Yeah, he was quite a distraction alright."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I kept glancing to the side and once in a while,\ncaught his look as well but he rapidly returned\nto his book. He seemed even shyer than I am."}, {sType:"Dialogue", sName:"Me", sDialogue:"Did you get to talk at all?"}, {sType:"Dialogue", sName:"Andy", sDialogue:"I wanted to, but... I have a hard time making\nconversation like that, and I was afraid I was\nmisinterpreting his looks."}, {sType:"Dialogue", sName:"Andy", sDialogue:"So I left."}, {sType:"Dialogue", sCategory:"Thought", sName:"Me", sDialogue:"Saxon huh? I wonder what he thinks about all of this."}, {sType:"Character", sAction:"Idle", sCharacter:"Andy"}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//(new Array({sType:"UnsetHud"}, {sType:"Dialogue", sName:"Me", sDialogue:"I don't think I've ever eaten as well as I have\nhere. I'll have to tip off my hat to the chef in\nperson."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I already have. Bernard is a really great cook\nand is one of the most jovial people I've\never met."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I helped him clean up last night after we ate\nand we had a nice little chat."}, {sType:"Dialogue", sName:"Andy", sDialogue:"At first glance, he can come across as\nimposing, but he was surprisingly nice."}, {sType:"Dialogue", sName:"Me", sDialogue:"Do you think he could be the one who... you\nknow, last night?"}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"Maybe, I don't know. We did have a really\ngood time last night.\nHe's such a sweet person."}, {sType:"Character", sAction:"Idle", sCharacter:"AndyShy"}, {sType:"Dialogue", sName:"Andy", sDialogue:"And he's really passionate about cooking, he\ntalked a lot about how much he enjoys just\nseeing people eat and appreciate his food."}, {sType:"Dialogue", sName:"Me", sDialogue:"I'll have to met him for myself and thank him\nfor the meals then."}, {sType:"Dialogue", sName:"Me", sDialogue:"And if he's as nice as you say, he probably\nwon't mind answering a few questions either."}, {sType:"Dialogue", sName:"Andy", sDialogue:"I'm sure he has nothing to hide."}, {sType:"Dialogue", sName:"Me", sDialogue:"We'll see."}, {sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"}));// not popped
//({sType:"MoveToTree", sTarget:"RoomLivingRoomAfterFirst"});// not popped
//({sType:"HideItem", sEvent:"Lotion"});// not popped
//({sType:"Dialogue", sName:"Me", sDialogue:"Probably not, but I'm still curious about that\nmassage. And I shouldn't leave any stone\nunturned."});// not popped
//({sType:"Dialogue", sName:"Andy", sDialogue:"Do you really think that it could be related to\nlast night? You think it could be him?"});// not popped
//({sType:"Dialogue", sName:"Me", sDialogue:"Thanks, but I'll let it be for the time being.\nI will keep it mind, but for now I\u2019ll rather\nask him more about this bottle of lotion."});// not popped
//({sType:"Dialogue", sName:"Andy", sDialogue:"If he\u2019s so inclined, I would recommend you\ngetting one from him too. You look a bit tense."});// not popped
//({sType:"Character", sAction:"Idle", sCharacter:"Andy"});// not popped
//({sType:"Dialogue", sName:"Andy", sDialogue:"I did. He gave it to me in here, on the couch.\nBest massage I ever had."});// not popped
//({sType:"Character", sAction:"Idle", sCharacter:"AndyShy"});// not popped
//({sType:"Dialogue", sName:"Me", sDialogue:"And you took him up on the offer?"});// not popped
//({sType:"Dialogue", sName:"Andy", sDialogue:"Hm, honey based? Well I never saw the\nbottle before, so I can\u2019t be sure, but last night,\nBernard did offer to give me a back rub."});// not popped
//({sType:"Dialogue", sName:"Me", sDialogue:"It\u2019s honey based massage oil. I found it\naround here."});// not popped
//({sType:"Dialogue", sName:"Andy", sDialogue:"I\u2019m not sure. It looks like lotion."});// not popped
//({sType:"ShowItem", sEvent:"Lotion"});// not popped
//({sType:"Dialogue", sName:"Me", sDialogue:"Do you recognise this?"});// not popped
}
// swfAction0x01 // Unknown action
toggleHighQuality();
// swfAction0x5E // Unknown action
toggleHighQuality();
var /* Error1011 */ = (() eq ());
stop();
// swfAction0x02 // Unknown action
Symbol 624 MovieClip [__Packages.Popup] Frame 0
class Popup
{
var mcRef, sState;
function Popup (_mcRef) {
mcRef = _mcRef;
setState("Hidden");
}
function stateIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Idle");
}
}
function stateOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
}
}
function setState(_sState) {
if (((sState == "Idle") && (_sState == "In")) || ((sState == "Hidden") && (_sState == "Out"))) {
return(undefined);
}
sState = _sState;
mcRef.gotoAndStop(_sState);
if (this["state" + _sState] != undefined) {
mcRef.onEnterFrame = mx.utils.Delegate.create(this, this["state" + _sState]);
} else {
delete mcRef.onEnterFrame;
}
}
function btnPress(_mcRef) {
_mcRef.gotoAndStop("_down");
}
function btnRollOver(_mcRef) {
_mcRef.gotoAndStop("_over");
}
function btnRollOut(_mcRef) {
_mcRef.gotoAndStop("_up");
}
}
Symbol 625 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 626 MovieClip [__Packages.PopupEffect] Frame 0
class PopupEffect extends Popup
{
var mcRef;
function PopupEffect (_mcRef) {
super(_mcRef);
setState("Hidden");
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function stateBlackIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Black");
Main.__get__Instance().__get__scriptManager().nextEvent();
}
}
function stateBlackOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
Main.__get__Instance().__get__scriptManager().nextEvent();
}
}
}
Symbol 627 MovieClip [__Packages.PopupDialogue] Frame 0
class PopupDialogue extends Popup
{
var mcRef, sType, sName, nSpeed, nCurrentSpeed;
function PopupDialogue (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addDialogue(_sText) {
mcRef.mcDialogue.txtDialogue.text = mcRef.mcDialogue.txtDialogue.text + _sText;
}
function dialogFinished() {
mcRef.mcDialogue.mcCursor._visible = true;
}
function clearDialogue(_sName, _nSpeed, _sType) {
if (_sType != undefined) {
sType = _sType;
} else {
sType = "Normal";
}
mcRef.mcDialogue.gotoAndStop(sType);
if (_sName != undefined) {
sName = _sName;
mcRef.mcDialogue.txtName.text = sName;
}
mcRef.mcDialogue.txtDialogue.text = "";
if (_nSpeed == undefined) {
nSpeed = 1;
} else {
nSpeed = _nSpeed;
}
nCurrentSpeed = nSpeed;
mcRef.mcDialogue.mcCursor._visible = false;
}
function doIn() {
mcRef.btnBlocker.useHandCursor = false;
mcRef.mcState.mcDialogue.gotoAndStop(sType);
mcRef.mcState.mcDialogue.txtName.text = sName;
mcRef.mcState.mcDialogue.mcCursor._visible = false;
}
function doIdle() {
mcRef.btnBlocker.useHandCursor = false;
mcRef.mcDialogue.gotoAndStop(sType);
mcRef.mcDialogue.txtName.text = sName;
mcRef.mcDialogue.mcCursor._visible = false;
}
function doOut() {
mcRef.btnBlocker.useHandCursor = false;
mcRef.mcState.mcDialogue.gotoAndStop(sType);
mcRef.mcState.mcDialogue.txtName.text = sName;
mcRef.mcState.mcDialogue.mcCursor._visible = false;
}
function textSpeed(_nModifSpeed) {
nCurrentSpeed = nCurrentSpeed - _nModifSpeed;
if (nCurrentSpeed == 0) {
nCurrentSpeed = nSpeed;
}
}
function get speed() {
return(nCurrentSpeed);
}
}
Symbol 628 MovieClip [__Packages.PopupChoice] Frame 0
class PopupChoice extends Popup
{
var aChoices, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupChoice (_mcRef) {
super(_mcRef);
aChoices = new Array();
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sText, _fCallback) {
aChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearChoices() {
aChoices = new Array();
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sText;
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = "";
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sText;
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = "";
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doIdle() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sText;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onPress = mx.utils.Delegate.create(this, btnPress, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRelease = aChoices[_local2].fCallback;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onReleaseOutside = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRollOver = mx.utils.Delegate.create(this, btnRollOver, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRollOut = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = "";
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
}
Symbol 629 MovieClip [__Packages.PopupLocation] Frame 0
class PopupLocation extends Popup
{
var aChoices, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupLocation (_mcRef) {
super(_mcRef);
aChoices = new Array();
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sText, _fCallback) {
aChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearChoices() {
aChoices = new Array();
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doIdle() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onPress = mx.utils.Delegate.create(this, btnPress, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRelease = aChoices[_local2].fCallback;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onReleaseOutside = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOver = mx.utils.Delegate.create(this, btnRollOver, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOut = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
}
Symbol 630 MovieClip [__Packages.PopupInterrogate] Frame 0
class PopupInterrogate extends Popup
{
var aChoices, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupInterrogate (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sOption, _fCallback) {
aChoices.push({sOption:_sOption, fCallback:_fCallback});
}
function clearChoices() {
aChoices = new Array();
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sOption;
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 6) {
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sOption;
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 6) {
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doIdle() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].txtChoice.text = aChoices[_local2].sOption;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onPress = mx.utils.Delegate.create(this, btnPress, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRelease = aChoices[_local2].fCallback;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onReleaseOutside = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRollOver = mx.utils.Delegate.create(this, btnRollOver, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].onRollOut = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 6) {
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
}
Symbol 631 MovieClip [__Packages.PopupItems] Frame 0
class PopupItems extends Popup
{
var aItems, bPresentItem, sGoodItem, sGoodTarget, sBadTarget, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupItems (_mcRef) {
super(_mcRef);
aItems = new Array();
bPresentItem = false;
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addItems(_sExplore, _sItems) {
aItems.push({sExplore:_sExplore, sItem:_sItems});
}
function itemAcquired(_sExplore, _sItems) {
var _local5 = false;
var _local2;
var _local6 = aItems.length;
_local2 = 0;
while (_local2 < _local6) {
if (((aItems[_local2].sExplore == _sExplore) && (_sExplore != undefined)) || ((aItems[_local2].sItem == _sItems) && (_sItems != undefined))) {
_local5 = true;
break;
}
_local2++;
}
return(_local5);
}
function setPresentItem(_bPresentItem, _sGoodItem, _sGoodTarget, _sBadTarget) {
bPresentItem = _bPresentItem;
sGoodItem = _sGoodItem;
sGoodTarget = _sGoodTarget;
sBadTarget = _sBadTarget;
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aItems.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aItems[_local2].sItem);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aItems.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aItems.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aItems[_local2].sItem);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aItems.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
}
function doIdle() {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < aItems.length) {
_local2 = mcRef.mcChoice["mcChoice" + (_local3 + 1)];
_local2.gotoAndStop(aItems[_local3].sItem);
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState);
_local2.mcState.onRelease = Library.Delegate.create(this, loadItem, aItems[_local3].sItem);
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState);
btnRollOut(_local2.mcState);
_local3++;
}
_local3 = aItems.length;
while (_local3 < 4) {
mcRef.mcChoice["mcChoice" + (_local3 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcChoice["mcChoice" + (_local3 + 1)].mcState);
_local3++;
}
}
function loadItem(_sItem) {
var _local6 = Main.__get__Instance().__get__scriptManager().oLocationManager.sCharacter;
var _local3;
var _local2;
var _local5 = Script.aITEMS.length;
_local2 = 0;
while (_local2 < _local5) {
if (Script.aITEMS[_local2].sName == _sItem) {
if (bPresentItem) {
if (sGoodItem == _sItem) {
_local3 = sGoodTarget;
} else {
_local3 = sBadTarget;
}
} else {
_local3 = Script.aITEMS[_local2].oCharacters[_local6];
}
}
_local2++;
}
Main.__get__Instance().__get__scriptManager().loadScript(Script.getScript(_local3));
if (!bPresentItem) {
Main.__get__Instance().__get__scriptManager().oHUD.setState("CloseWindowOutNoHud");
}
bPresentItem = false;
}
}
Symbol 632 MovieClip [__Packages.PopupCharacters] Frame 0
class PopupCharacters extends Popup
{
var aChoices, mcRef, btnRollOut, btnPress, btnRollOver;
function PopupCharacters (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sText, _fCallback) {
aChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearChoices() {
aChoices = new Array();
}
function doIn() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doOut() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcState.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
function doIdle() {
var _local2;
_local2 = 0;
while (_local2 < aChoices.length) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop(aChoices[_local2].sText);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onPress = mx.utils.Delegate.create(this, btnPress, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRelease = aChoices[_local2].fCallback;
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onReleaseOutside = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOver = mx.utils.Delegate.create(this, btnRollOver, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState.onRollOut = mx.utils.Delegate.create(this, btnRollOut, mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)].mcState);
_local2++;
}
_local2 = aChoices.length;
while (_local2 < 4) {
mcRef.mcChoice["mcChoice" + (_local2 + 1)].gotoAndStop("Hidden");
btnRollOut(mcRef.mcChoice["mcChoice" + (_local2 + 1)]);
_local2++;
}
}
}
Symbol 633 MovieClip [__Packages.PopupSave] Frame 0
class PopupSave extends Popup
{
function PopupSave (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
setState("Hidden");
}
}
Symbol 634 MovieClip [__Packages.PopupHelp] Frame 0
class PopupHelp extends Popup
{
var mcRef;
function PopupHelp (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
mcRef.mcChoice.btnYes.onRelease = mx.utils.Delegate.create(this, doQuit);
mcRef.mcChoice.btnNo.onRelease = mx.utils.Delegate.create(this, doClose);
}
function doQuit() {
setState("Out");
Main.__get__Instance().gotoTitle();
}
function doClose() {
setState("Out");
}
}
Symbol 635 MovieClip [__Packages.PopupQuit] Frame 0
class PopupQuit extends Popup
{
var mcRef;
function PopupQuit (_mcRef) {
super(_mcRef);
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function doIdle() {
mcRef.mcChoice.btnYes.onRelease = mx.utils.Delegate.create(this, doQuit);
mcRef.mcChoice.btnNo.onRelease = mx.utils.Delegate.create(this, doClose);
}
function doQuit() {
setState("Out");
Main.__get__Instance().gotoTitle();
}
function doClose() {
setState("Out");
}
}
Symbol 636 MovieClip [__Packages.HUD] Frame 0
class HUD extends Popup
{
var aItems, aLocationChoices, sPage, aAccuseChoices, sState, mcRef, aInterrogateChoices, bPresentItem, sGoodItem, sGoodTarget, sBadTarget, bitmapData;
function HUD (_mcRef) {
super(_mcRef);
aItems = new Array();
aLocationChoices = new Array();
sPage = sPAGE_HUD;
}
function setState(_sState) {
super.setState(_sState);
if (this["do" + _sState] != undefined) {
this["do" + _sState]();
}
}
function addChoice(_sText, _fCallback) {
aAccuseChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearChoices() {
aAccuseChoices = new Array();
}
function setPage(_sPage) {
sPage = _sPage;
doIdle();
if (sState == "Idle") {
setState("Flip");
}
}
function setHud() {
if (sState != "Idle") {
setPage("Hud");
setState("In");
} else {
setBitmap();
setPage("Hud");
}
}
function newSetHud() {
setBitmap();
setPage("Hud");
}
function unsetHud(_sState) {
if (sState != "Hidden") {
if (_sState != undefined) {
setState(_sState);
} else {
setState("Out");
}
}
}
function doIn() {
mcRef.mcState.mcState.mcFlip.gotoAndStop(1);
mcRef.mcState.mcState.gotoAndStop(sPage);
switch (sPage) {
case "Location" :
displayLocations(mcRef.mcState.mcState.mcState);
break;
case "Character" :
break;
case "Item" :
displayItems(mcRef.mcState.mcState.mcState);
break;
case "Interrogate" :
displayInterrogate(mcRef.mcState.mcState.mcState);
break;
case "Save" :
break;
case "Quit" :
break;
case "Exit" :
break;
case "Accuse" :
displayAccuse(mcRef.mcState.mcState.mcState);
break;
case "AccuseItems" :
displayAccuseItems(mcRef.mcState.mcState.mcState);
}
}
function doOut() {
mcRef.mcState.mcState.mcFlip.gotoAndStop(1);
mcRef.mcState.mcState.gotoAndStop(sPage);
switch (sPage) {
case "Location" :
displayLocations(mcRef.mcState.mcState.mcState);
break;
case "Character" :
break;
case "Item" :
displayItems(mcRef.mcState.mcState.mcState);
break;
case "Interrogate" :
displayInterrogate(mcRef.mcState.mcState.mcState);
break;
case "Save" :
break;
case "Quit" :
break;
case "Exit" :
break;
case "Accuse" :
displayAccuse(mcRef.mcState.mcState.mcState);
break;
case "AccuseItems" :
displayAccuseItems(mcRef.mcState.mcState.mcState);
}
}
function doIdle() {
mcRef.mcState.mcFlip.gotoAndStop(1);
mcRef.mcState.gotoAndStop(sPage);
switch (sPage) {
case "Hud" :
mcRef.mcState.mcState.btnInterrogate.onRelease = Library.Delegate.create(this, setInterrogate);
mcRef.mcState.mcState.btnItems.onRelease = Library.Delegate.create(this, setItems);
mcRef.mcState.mcState.btnLocation.onRelease = Library.Delegate.create(this, setLocation);
mcRef.mcState.mcState.btnExplore.onRelease = Library.Delegate.create(this, setExplore);
mcRef.mcState.mcState.btnSave.onRelease = Library.Delegate.create(this, setSave);
mcRef.mcState.mcState.btnQuit.onRelease = Library.Delegate.create(this, setQuit);
break;
case "Location" :
displayLocations(mcRef.mcState.mcState);
mcRef.mcState.mcState.btnQuit.onRelease = Library.Delegate.create(this, setHud);
break;
case "Character" :
break;
case "Item" :
displayItems(mcRef.mcState.mcState);
mcRef.mcState.mcState.btnQuit.onRelease = Library.Delegate.create(this, setHud);
break;
case "Interrogate" :
displayInterrogate(mcRef.mcState.mcState);
mcRef.mcState.mcState.btnQuit.onRelease = Library.Delegate.create(this, setHud);
break;
case "Save" :
break;
case "Quit" :
mcRef.mcState.mcState.btnYes.onRelease = Library.Delegate.create(Main.__get__Instance(), Main.__get__Instance().gotoTitle);
mcRef.mcState.mcState.btnNo.onRelease = Library.Delegate.create(this, setHud);
break;
case "Exit" :
break;
case "Accuse" :
displayAccuse(mcRef.mcState.mcState);
break;
case "AccuseItems" :
displayAccuseItems(mcRef.mcState.mcState);
}
}
function doFlip() {
mcRef.mcState.mcFlip.gotoAndPlay(2);
mcRef.mcState.mcState.gotoAndStop(sPage);
}
function setInterrogate() {
setBitmap();
setPage("Interrogate");
}
function addInterrogateChoice(_sOption, _fCallback) {
aInterrogateChoices.push({sOption:_sOption, fCallback:_fCallback});
}
function clearInterrogateChoices() {
aInterrogateChoices = new Array();
}
function displayInterrogate(_mcRef) {
var _local3;
var _local4 = String(aInterrogateChoices[_local3].sOption);
var _local2;
_local3 = 0;
while (_local3 < aInterrogateChoices.length) {
_local2 = _mcRef["mcChoice" + (_local3 + 1)];
_local4 = String(aInterrogateChoices[_local3].sOption.toString());
_local2.gotoAndStop("Element");
_local2.mcState.txtText.text = _local4;
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState, _local4);
_local2.mcState.onDragOver = Library.Delegate.create(this, btnPress, _local2.mcState, _local4);
_local2.mcState.onRelease = aInterrogateChoices[_local3].fCallback;
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local4);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState, _local4);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local4);
_local2.mcState.onDragOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local4);
btnRollOut(_local2.mcState, _local4);
_local3++;
}
_local3 = aInterrogateChoices.length;
while (_local3 < 6) {
_mcRef["mcChoice" + (_local3 + 1)].gotoAndStop("Hidden");
btnRollOut(_mcRef.mcChoice["mcChoice" + (_local3 + 1)].mcState);
_local3++;
}
}
function displayItems(_mcRef) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < aItems.length) {
_local2 = _mcRef["mcChoice" + (_local3 + 1)];
_local2.gotoAndStop(aItems[_local3].sItem);
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState);
_local2.mcState.onDragOver = Library.Delegate.create(this, btnPress, _local2.mcState);
_local2.mcState.onRelease = Library.Delegate.create(this, loadItem, aItems[_local3].sItem);
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState);
_local2.mcState.onDragOut = Library.Delegate.create(this, btnRollOut, _local2.mcState);
btnRollOut(_local2.mcState);
_local3++;
}
_local3 = aItems.length;
while (_local3 < 4) {
_mcRef["mcChoice" + (_local3 + 1)].gotoAndStop("Hidden");
btnRollOut(_mcRef["mcChoice" + (_local3 + 1)].mcState);
_local3++;
}
}
function displayAccuse(_mcRef) {
var _local4;
var _local3 = String(aAccuseChoices[_local4].sText);
var _local2;
_local4 = 0;
while (_local4 < aAccuseChoices.length) {
_local2 = _mcRef["mcChoice" + (_local4 + 1)];
_local3 = String(aAccuseChoices[_local4].sText.toString());
_local2.gotoAndStop("Element");
_local2.mcState.txtText.text = _local3;
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState, _local3);
_local2.mcState.onDragOver = Library.Delegate.create(this, btnPress, _local2.mcState, _local3);
_local2.mcState.onRelease = aAccuseChoices[_local4].fCallback;
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState, _local3);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
_local2.mcState.onDragOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
btnRollOut(_local2.mcState, _local3);
_local4++;
}
}
function displayAccuseItems(_mcRef) {
var _local4;
var _local3 = String(aItems[_local4].sItem);
var _local2;
_local4 = 0;
while (_local4 < aItems.length) {
_local2 = _mcRef["mcChoice" + (_local4 + 1)];
_local3 = String(aItems[_local4].sItem.toString());
_local2.gotoAndStop("Element");
_local2.mcState.txtText.text = _local3;
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState, _local3);
_local2.mcState.onDragOver = Library.Delegate.create(this, btnPress, _local2.mcState, _local3);
_local2.mcState.onRelease = Library.Delegate.create(this, loadItem, aItems[_local4].sItem);
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState, _local3);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
_local2.mcState.onDragOut = Library.Delegate.create(this, btnRollOut, _local2.mcState, _local3);
btnRollOut(_local2.mcState, _local3);
_local4++;
}
}
function accuseChar(_fCallback) {
_fCallback();
}
function setItems() {
setBitmap();
setPage("Item");
}
function addItems(_sExplore, _sItems) {
aItems.push({sExplore:_sExplore, sItem:_sItems});
}
function itemAcquired(_sExplore, _sItems) {
var _local5 = false;
var _local2;
var _local6 = aItems.length;
_local2 = 0;
while (_local2 < _local6) {
if (((aItems[_local2].sExplore == _sExplore) && (_sExplore != undefined)) || ((aItems[_local2].sItem == _sItems) && (_sItems != undefined))) {
_local5 = true;
break;
}
_local2++;
}
return(_local5);
}
function setPresentItem(_bPresentItem, _sGoodItem, _sGoodTarget, _sBadTarget) {
bPresentItem = _bPresentItem;
sGoodItem = _sGoodItem;
sGoodTarget = _sGoodTarget;
sBadTarget = _sBadTarget;
}
function loadItem(_sItem) {
var _local6 = Main.__get__Instance().__get__scriptManager().oLocationManager.sCharacter;
var _local3;
var _local2;
var _local5 = Script.aITEMS.length;
_local2 = 0;
while (_local2 < _local5) {
if (Script.aITEMS[_local2].sName == _sItem) {
if (bPresentItem) {
if (sGoodItem == _sItem) {
_local3 = sGoodTarget;
} else {
_local3 = sBadTarget;
}
} else {
_local3 = Script.aITEMS[_local2].oCharacters[_local6];
}
}
_local2++;
}
Main.__get__Instance().__get__scriptManager().loadScript(Script.getScript(_local3));
if (!bPresentItem) {
setState("Out");
}
bPresentItem = false;
}
function accuseItem() {
}
function setLocation() {
setBitmap();
setPage("Location");
}
function addLocationChoice(_sText, _fCallback) {
aLocationChoices.push({sText:_sText, fCallback:_fCallback});
}
function clearLocationChoices() {
aLocationChoices = new Array();
}
function displayLocations(_mcRef) {
var _local3;
var _local2;
_local3 = 0;
while (_local3 < aLocationChoices.length) {
_local2 = _mcRef["mcChoice" + (_local3 + 1)];
_local2.gotoAndStop(aLocationChoices[_local3].sText);
_local2.mcState.onPress = Library.Delegate.create(this, btnPress, _local2.mcState);
_local2.mcState.onDragOver = Library.Delegate.create(this, btnPress, _local2.mcState);
_local2.mcState.onRelease = aLocationChoices[_local3].fCallback;
_local2.mcState.onReleaseOutside = Library.Delegate.create(this, btnRollOut, _local2.mcState);
_local2.mcState.onRollOver = Library.Delegate.create(this, btnRollOver, _local2.mcState);
_local2.mcState.onRollOut = Library.Delegate.create(this, btnRollOut, _local2.mcState);
_local2.mcState.onDragOut = Library.Delegate.create(this, btnRollOut, _local2.mcState);
btnRollOut(_local2.mcState);
_local3++;
}
_local3 = aLocationChoices.length;
while (_local3 < 4) {
_mcRef["mcChoice" + (_local3 + 1)].gotoAndStop("Hidden");
btnRollOut(_mcRef["mcChoice" + (_local3 + 1)]);
_local3++;
}
}
function setSave() {
setBitmap();
setPage("Save");
}
function setQuit() {
setBitmap();
setPage("Quit");
}
function setBitmap() {
bitmapData = new flash.display.BitmapData(mcRef.mcState.mcState._width, mcRef.mcState.mcState._height, true, 16777215);
bitmapData.draw(mcRef.mcState.mcState);
}
function stateFlip() {
mcRef.mcState.mcFlip.mcState.attachBitmap(bitmapData, mcRef.mcState.mcFlip.mcState.getNextHighestDepth());
if (mcRef.mcState.mcFlip._currentframe == mcRef.mcState.mcFlip._totalframes) {
setState("Idle");
if (!(sPage === "Save")) {
} else {
Main.__get__Instance().save();
setHud();
}
}
}
function btnPress(_mcRef, _nCpt) {
super.btnPress(_mcRef);
_mcRef.gotoAndStop("_down");
_mcRef.txtText.text = _nCpt;
}
function btnRollOver(_mcRef, _sText) {
super.btnRollOver(_mcRef);
_mcRef.gotoAndStop("_over");
_mcRef.txtText.text = _sText;
}
function btnRollOut(_mcRef, _sText) {
super.btnRollOut(_mcRef);
_mcRef.gotoAndStop("_up");
_mcRef.txtText.text = _sText;
}
function stateCloseWindowOutNoHud() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Hidden");
}
}
function doCloseWindowIdle() {
mcRef.mcState.btnCloseWindow.onRelease = Library.Delegate.create(this, closeWindow);
}
function closeWindow() {
Main.__get__Instance().__get__scriptManager().oInterrogate.setState("Out");
Main.__get__Instance().__get__scriptManager().oItems.setState("Out");
Main.__get__Instance().__get__scriptManager().oLocation.setState("Out");
setState("CloseWindowOut");
}
function setExplore() {
setState("EndExploreIn");
}
function stateEndExploreIn() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("EndExploreIdle");
}
}
function stateEndExploreOut() {
if (mcRef.mcState._currentframe == mcRef.mcState._totalframes) {
setState("Idle");
}
}
function doEndExploreIn() {
mcRef.btnBlocker.useHandCursor = false;
Main.__get__Instance().__get__scriptManager().oLocationManager.setExplore(true);
}
function doEndExploreOut() {
mcRef.btnBlocker.useHandCursor = false;
}
function doEndExploreIdle() {
}
function endExplore() {
Main.__get__Instance().__get__scriptManager().oLocationManager.setExplore(false);
setState("EndExploreOut");
}
static var sPAGE_HUD = "Hud";
static var sPAGE_LOCATION = "Location";
static var sPAGE_CHARACTER = "Character";
static var sPAGE_ITEM = "Item";
static var sPAGE_EXIT = "Exit";
static var sPAGE_QUIT = "Quit";
static var sPAGE_SAVE = "Save";
static var sPAGE_ACCUSE = "Accuse";
static var sPAGE_ACCUSE_ITEMS = "AccuseItems";
}
Symbol 637 MovieClip [__Packages.Library.SoundManager] Frame 0
class Library.SoundManager
{
static var oCTRL;
var mcRef, aSFX, oSound, nFade, nMaxVolume, nVolume, sCurrentSong, oSFX;
function SoundManager (_mcRef) {
mcRef = _mcRef;
aSFX = new Array();
oSound = new Sound();
oCTRL = this;
nFade = 0;
nMaxVolume = 100;
nVolume = nMaxVolume;
mcRef.onEnterFrame = Library.Delegate.create(this, enterFrame);
}
function enterFrame() {
if (nFade != 0) {
nVolume = nVolume + nFade;
nVolume = Math.min(nVolume, nMaxVolume);
nVolume = Math.max(nVolume, 0);
oSound.setVolume(nVolume);
if (nVolume <= 0) {
nFade = 6;
oSound.stop();
delete oSound;
oSound = new Sound();
oSound.attachSound(sCurrentSong);
oSound.start(0, 9999);
} else if (nVolume == nMaxVolume) {
nFade = 0;
}
}
}
function playSong(_sCurrentSong) {
if (sCurrentSong != undefined) {
nFade = -6;
} else {
oSound.attachSound(_sCurrentSong);
oSound.start(0, 9999);
}
sCurrentSong = _sCurrentSong;
}
function playSFX(_sSFX, _oScriptManager) {
oSFX = new Sound();
oSFX.attachSound(_sSFX);
oSFX.start(0, 1);
if (_oScriptManager != null) {
oSFX.onSoundComplete = Library.Delegate.create(_oScriptManager, _oScriptManager.soundEnd, _sSFX);
}
}
function set maxVolume(_nMaxVolume) {
nMaxVolume = _nMaxVolume;
nVolume = nMaxVolume;
oSound.setVolume(nMaxVolume);
//return(maxVolume);
}
function get maxVolume() {
return(nMaxVolume);
}
static function get Instance() {
return(oCTRL);
}
}
Symbol 638 MovieClip [__Packages.Gallery] Frame 0
class Gallery
{
var mcRef, nPages, aGallery;
function Gallery (_mcRef) {
mcRef = _mcRef;
nPages = 1;
aGallery = new Array("IntroShadow");
if (Main.__get__Instance().sharedObject.data.aGallery != undefined) {
aGallery = Main.__get__Instance().sharedObject.data.aGallery;
}
updatePage();
mcRef.btnLeave.onRelease = Library.Delegate.create(Main.__get__Instance(), Main.__get__Instance().gotoTitle);
}
function setMc(_mcRef) {
mcRef = _mcRef;
mcRef.mcImages.onRelease = Library.Delegate.create(this, closeImage);
mcRef.mcImages._visible = false;
if (Main.__get__Instance().sharedObject.data.aGallery != undefined) {
aGallery = Main.__get__Instance().sharedObject.data.aGallery;
}
updatePage();
mcRef.btnLeave.onRelease = Library.Delegate.create(Main.__get__Instance(), Main.__get__Instance().gotoTitle);
}
function updatePage() {
if (nPages == 1) {
mcRef.btnBack._visible = false;
mcRef.btnNext._visible = true;
mcRef.btnNext.btnNext.onRelease = Library.Delegate.create(this, changePage, 2);
} else {
mcRef.btnBack._visible = true;
mcRef.btnNext._visible = false;
mcRef.btnBack.btnBack.onRelease = Library.Delegate.create(this, changePage, 1);
}
var _local2;
_local2 = 0;
while (_local2 < nPER_PAGE) {
if (inArray(aGALLERY_COMPLETE[_local2 + ((nPages - 1) * nPER_PAGE)], aGallery)) {
mcRef["mcGallery" + (_local2 + 1)].gotoAndStop(aGALLERY_COMPLETE[_local2 + ((nPages - 1) * nPER_PAGE)]);
mcRef["mcGallery" + (_local2 + 1)].onRelease = Library.Delegate.create(this, clickImage, _local2 + ((nPages - 1) * nPER_PAGE));
} else {
mcRef["mcGallery" + (_local2 + 1)].gotoAndStop("Hidden");
}
_local2++;
}
}
function addImage(_sImage) {
if (!inArray(_sImage, aGallery)) {
aGallery.push(_sImage);
}
}
function changePage(_nPage) {
nPages = _nPage;
updatePage();
}
function clickImage(_nImgPos) {
mcRef.mcImages._visible = true;
mcRef.mcImages.gotoAndStop(aGALLERY_COMPLETE[_nImgPos]);
}
function closeImage() {
mcRef.mcImages._visible = false;
}
function inArray(_oTarget, _aArray) {
var _local3 = false;
var _local1;
_local1 = 0;
while (_local1 < _aArray.length) {
if (_aArray[_local1] == _oTarget) {
_local3 = true;
break;
}
_local1++;
}
return(_local3);
}
var aGALLERY_COMPLETE = new Array("IntroShadow", "IntroFoxStomach", "BTShower", "AndyBernard", "Intro2", "FootFetish", "AndyTora", "AndySaxon", "SaxonSM");
var nPER_PAGE = 8;
}
Symbol 66 MovieClip Frame 1
this._alpha = 0;
Symbol 68 MovieClip Frame 1
this._alpha = 0;
Symbol 70 MovieClip Frame 1
this._alpha = 0;
Symbol 75 MovieClip Frame 1
this._alpha = 0;
Symbol 77 MovieClip Frame 1
this._alpha = 0;
Symbol 79 MovieClip Frame 1
this._alpha = 0;
Symbol 208 MovieClip Frame 1
this._alpha = 0;
Symbol 210 MovieClip Frame 1
this._alpha = 0;
Symbol 215 MovieClip Frame 1
this._alpha = 0;
Symbol 220 MovieClip Frame 1
this._alpha = 0;
Symbol 222 MovieClip Frame 1
this._alpha = 0;
Symbol 224 MovieClip Frame 1
this._alpha = 0;
Symbol 226 MovieClip Frame 1
this._alpha = 0;
Symbol 237 MovieClip Frame 1
this._alpha = 0;
Symbol 239 MovieClip Frame 1
this._alpha = 0;
Symbol 396 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Instance of Symbol 404 MovieClip "btnEndExplore" in Symbol 405 MovieClip Frame 1
on (release) {
Main.__get__Instance().oScriptManager.oHUD.endExplore();
}
Symbol 409 MovieClip Frame 1
stop();
Instance of Symbol 409 MovieClip "btnEndExplore" in Symbol 410 MovieClip Frame 1
on (release) {
Main.__get__Instance().oScriptManager.oHUD.endExplore();
}
Symbol 415 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 595 Button
on (release) {
Main.__get__Instance().gotoGallery();
}
Symbol 596 Button
on (release) {
Main.__get__Instance().gotoGallery();
}
Symbol 598 Button
on (release) {
Main.__get__Instance().gotoGallery();
}