[Scummvm-cvs-logs] SF.net SVN: scummvm: [23613] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jul 27 22:40:03 CEST 2006


Revision: 23613
Author:   lordhoto
Date:     2006-07-27 13:39:52 -0700 (Thu, 27 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23613&view=rev

Log Message:
-----------
Oops it should never be renamed to c1_* but to o1_* changing this now.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra.cpp
    scummvm/trunk/engines/kyra/kyra.h
    scummvm/trunk/engines/kyra/script_v1.cpp
    scummvm/trunk/engines/kyra/staticres.cpp
Modified: scummvm/trunk/engines/kyra/kyra.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra.cpp	2006-07-27 20:30:51 UTC (rev 23612)
+++ scummvm/trunk/engines/kyra/kyra.cpp	2006-07-27 20:39:52 UTC (rev 23613)
@@ -1116,7 +1116,7 @@
 int KyraEngine::runOpcode(ScriptState *script, uint8 opcode) {
 	debugC(9, kDebugLevelMain | kDebugLevelScript, "KyraEngine::runOpcode(%p, %d)", (void *)script, opcode);
 	assert(opcode < _opcodeTableSize);
-	if (_opcodeTable[opcode] == &KyraEngine::c1_dummy)
+	if (_opcodeTable[opcode] == &KyraEngine::o1_dummy)
 		warning("calling unimplemented opcode(0x%.02X)", opcode);
 	int val = (this->*_opcodeTable[opcode])(script);
 	assert(script);

Modified: scummvm/trunk/engines/kyra/kyra.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra.h	2006-07-27 20:30:51 UTC (rev 23612)
+++ scummvm/trunk/engines/kyra/kyra.h	2006-07-27 20:39:52 UTC (rev 23613)
@@ -70,7 +70,7 @@
 // TODO: this is just the start of makeing the debug output of the kyra engine a bit more useable
 // in the future we maybe merge some flags  and/or create new ones
 enum kDebugLevels {
-	kDebugLevelScriptFuncs = 1 << 0,		// prints debug output of c1_* functions
+	kDebugLevelScriptFuncs = 1 << 0,		// prints debug output of o1_* functions
 	kDebugLevelScript = 1 << 1,				// prints debug output of "ScriptHelper" functions
 	kDebugLevelSprites = 1 << 2,			// prints debug output of "Sprites" functions
 	kDebugLevelScreen = 1 << 3,				// prints debug output of "Screen" functions
@@ -332,163 +332,163 @@
 	
 	virtual int runOpcode(ScriptState *script, uint8 opcode);
 protected:
-	int c1_magicInMouseItem(ScriptState *script);
-	int c1_characterSays(ScriptState *script);
-	int c1_pauseTicks(ScriptState *script);
-	int c1_drawSceneAnimShape(ScriptState *script);
-	int c1_queryGameFlag(ScriptState *script);
-	int c1_setGameFlag(ScriptState *script);
-	int c1_resetGameFlag(ScriptState *script);
-	int c1_runNPCScript(ScriptState *script);
-	int c1_setSpecialExitList(ScriptState *script);
-	int c1_blockInWalkableRegion(ScriptState *script);
-	int c1_blockOutWalkableRegion(ScriptState *script);
-	int c1_walkPlayerToPoint(ScriptState *script);
-	int c1_dropItemInScene(ScriptState *script);
-	int c1_drawAnimShapeIntoScene(ScriptState *script);
-	int c1_createMouseItem(ScriptState *script);
-	int c1_savePageToDisk(ScriptState *script);
-	int c1_sceneAnimOn(ScriptState *script);
-	int c1_sceneAnimOff(ScriptState *script);
-	int c1_getElapsedSeconds(ScriptState *script);
-	int c1_mouseIsPointer(ScriptState *script);
-	int c1_destroyMouseItem(ScriptState *script);
-	int c1_runSceneAnimUntilDone(ScriptState *script);
-	int c1_fadeSpecialPalette(ScriptState *script);
-	int c1_playAdlibSound(ScriptState *script);
-	int c1_playAdlibScore(ScriptState *script);
-	int c1_phaseInSameScene(ScriptState *script);
-	int c1_setScenePhasingFlag(ScriptState *script);
-	int c1_resetScenePhasingFlag(ScriptState *script);
-	int c1_queryScenePhasingFlag(ScriptState *script);
-	int c1_sceneToDirection(ScriptState *script);
-	int c1_setBirthstoneGem(ScriptState *script);
-	int c1_placeItemInGenericMapScene(ScriptState *script);
-	int c1_setBrandonStatusBit(ScriptState *script);
-	int c1_pauseSeconds(ScriptState *script);
-	int c1_getCharactersLocation(ScriptState *script);
-	int c1_runNPCSubscript(ScriptState *script);
-	int c1_magicOutMouseItem(ScriptState *script);
-	int c1_internalAnimOn(ScriptState *script);
-	int c1_forceBrandonToNormal(ScriptState *script);
-	int c1_poisonDeathNow(ScriptState *script);
-	int c1_setScaleMode(ScriptState *script);
-	int c1_openWSAFile(ScriptState *script);
-	int c1_closeWSAFile(ScriptState *script);
-	int c1_runWSAFromBeginningToEnd(ScriptState *script);
-	int c1_displayWSAFrame(ScriptState *script);
-	int c1_enterNewScene(ScriptState *script);
-	int c1_setSpecialEnterXAndY(ScriptState *script);
-	int c1_runWSAFrames(ScriptState *script);
-	int c1_popBrandonIntoScene(ScriptState *script);
-	int c1_restoreAllObjectBackgrounds(ScriptState *script);
-	int c1_setCustomPaletteRange(ScriptState *script);
-	int c1_loadPageFromDisk(ScriptState *script);
-	int c1_customPrintTalkString(ScriptState *script);
-	int c1_restoreCustomPrintBackground(ScriptState *script);
-	int c1_hideMouse(ScriptState *script);
-	int c1_showMouse(ScriptState *script);
-	int c1_getCharacterX(ScriptState *script);
-	int c1_getCharacterY(ScriptState *script);
-	int c1_changeCharactersFacing(ScriptState *script);
-	int c1_copyWSARegion(ScriptState *script);
-	int c1_printText(ScriptState *script);
-	int c1_random(ScriptState *script);
-	int c1_loadSoundFile(ScriptState *script);
-	int c1_displayWSAFrameOnHidPage(ScriptState *script);
-	int c1_displayWSASequentialFrames(ScriptState *script);
-	int c1_drawCharacterStanding(ScriptState *script);
-	int c1_internalAnimOff(ScriptState *script);
-	int c1_changeCharactersXAndY(ScriptState *script);
-	int c1_clearSceneAnimatorBeacon(ScriptState *script);
-	int c1_querySceneAnimatorBeacon(ScriptState *script);
-	int c1_refreshSceneAnimator(ScriptState *script);
-	int c1_placeItemInOffScene(ScriptState *script);
-	int c1_wipeDownMouseItem(ScriptState *script);
-	int c1_placeCharacterInOtherScene(ScriptState *script);
-	int c1_getKey(ScriptState *script);
-	int c1_specificItemInInventory(ScriptState *script);
-	int c1_popMobileNPCIntoScene(ScriptState *script);
-	int c1_mobileCharacterInScene(ScriptState *script);
-	int c1_hideMobileCharacter(ScriptState *script);
-	int c1_unhideMobileCharacter(ScriptState *script);
-	int c1_setCharactersLocation(ScriptState *script);
-	int c1_walkCharacterToPoint(ScriptState *script);
-	int c1_specialEventDisplayBrynnsNote(ScriptState *script);
-	int c1_specialEventRemoveBrynnsNote(ScriptState *script);
-	int c1_setLogicPage(ScriptState *script);
-	int c1_fatPrint(ScriptState *script);
-	int c1_preserveAllObjectBackgrounds(ScriptState *script);
-	int c1_updateSceneAnimations(ScriptState *script);
-	int c1_sceneAnimationActive(ScriptState *script);
-	int c1_setCharactersMovementDelay(ScriptState *script);
-	int c1_getCharactersFacing(ScriptState *script);
-	int c1_bkgdScrollSceneAndMasksRight(ScriptState *script);
-	int c1_dispelMagicAnimation(ScriptState *script);
-	int c1_findBrightestFireberry(ScriptState *script);
-	int c1_setFireberryGlowPalette(ScriptState *script);
-	int c1_setDeathHandlerFlag(ScriptState *script);
-	int c1_drinkPotionAnimation(ScriptState *script);
-	int c1_makeAmuletAppear(ScriptState *script);
-	int c1_drawItemShapeIntoScene(ScriptState *script);
-	int c1_setCharactersCurrentFrame(ScriptState *script);
-	int c1_waitForConfirmationMouseClick(ScriptState *script);
-	int c1_pageFlip(ScriptState *script);
-	int c1_setSceneFile(ScriptState *script);
-	int c1_getItemInMarbleVase(ScriptState *script);
-	int c1_setItemInMarbleVase(ScriptState *script);
-	int c1_addItemToInventory(ScriptState *script);
-	int c1_intPrint(ScriptState *script);
-	int c1_shakeScreen(ScriptState *script);
-	int c1_createAmuletJewel(ScriptState *script);
-	int c1_setSceneAnimCurrXY(ScriptState *script);
-	int c1_poisonBrandonAndRemaps(ScriptState *script);
-	int c1_fillFlaskWithWater(ScriptState *script);
-	int c1_getCharactersMovementDelay(ScriptState *script);
-	int c1_getBirthstoneGem(ScriptState *script);
-	int c1_queryBrandonStatusBit(ScriptState *script);
-	int c1_playFluteAnimation(ScriptState *script);
-	int c1_playWinterScrollSequence(ScriptState *script);
-	int c1_getIdolGem(ScriptState *script);
-	int c1_setIdolGem(ScriptState *script);
-	int c1_totalItemsInScene(ScriptState *script);
-	int c1_restoreBrandonsMovementDelay(ScriptState *script);
-	int c1_setMousePos(ScriptState *script);
-	int c1_getMouseState(ScriptState *script);
-	int c1_setEntranceMouseCursorTrack(ScriptState *script);
-	int c1_itemAppearsOnGround(ScriptState *script);
-	int c1_setNoDrawShapesFlag(ScriptState *script);
-	int c1_fadeEntirePalette(ScriptState *script);
-	int c1_itemOnGroundHere(ScriptState *script);
-	int c1_queryCauldronState(ScriptState *script);
-	int c1_setCauldronState(ScriptState *script);
-	int c1_queryCrystalState(ScriptState *script);
-	int c1_setCrystalState(ScriptState *script);
-	int c1_setPaletteRange(ScriptState *script);
-	int c1_shrinkBrandonDown(ScriptState *script);
-	int c1_growBrandonUp(ScriptState *script);
-	int c1_setBrandonScaleXAndY(ScriptState *script);
-	int c1_resetScaleMode(ScriptState *script);
-	int c1_getScaleDepthTableValue(ScriptState *script);
-	int c1_setScaleDepthTableValue(ScriptState *script);
-	int c1_message(ScriptState *script);
-	int c1_checkClickOnNPC(ScriptState *script);
-	int c1_getFoyerItem(ScriptState *script);
-	int c1_setFoyerItem(ScriptState *script);
-	int c1_setNoItemDropRegion(ScriptState *script);
-	int c1_walkMalcolmOn(ScriptState *script);
-	int c1_passiveProtection(ScriptState *script);
-	int c1_setPlayingLoop(ScriptState *script);
-	int c1_brandonToStoneSequence(ScriptState *script);
-	int c1_brandonHealingSequence(ScriptState *script);
-	int c1_protectCommandLine(ScriptState *script);
-	int c1_pauseMusicSeconds(ScriptState *script);
-	int c1_resetMaskRegion(ScriptState *script);
-	int c1_setPaletteChangeFlag(ScriptState *script);
-	int c1_fillRect(ScriptState *script);
-	int c1_dummy(ScriptState *script);
-	int c1_vocUnload(ScriptState *script);
-	int c1_vocLoad(ScriptState *script);
+	int o1_magicInMouseItem(ScriptState *script);
+	int o1_characterSays(ScriptState *script);
+	int o1_pauseTicks(ScriptState *script);
+	int o1_drawSceneAnimShape(ScriptState *script);
+	int o1_queryGameFlag(ScriptState *script);
+	int o1_setGameFlag(ScriptState *script);
+	int o1_resetGameFlag(ScriptState *script);
+	int o1_runNPCScript(ScriptState *script);
+	int o1_setSpecialExitList(ScriptState *script);
+	int o1_blockInWalkableRegion(ScriptState *script);
+	int o1_blockOutWalkableRegion(ScriptState *script);
+	int o1_walkPlayerToPoint(ScriptState *script);
+	int o1_dropItemInScene(ScriptState *script);
+	int o1_drawAnimShapeIntoScene(ScriptState *script);
+	int o1_createMouseItem(ScriptState *script);
+	int o1_savePageToDisk(ScriptState *script);
+	int o1_sceneAnimOn(ScriptState *script);
+	int o1_sceneAnimOff(ScriptState *script);
+	int o1_getElapsedSeconds(ScriptState *script);
+	int o1_mouseIsPointer(ScriptState *script);
+	int o1_destroyMouseItem(ScriptState *script);
+	int o1_runSceneAnimUntilDone(ScriptState *script);
+	int o1_fadeSpecialPalette(ScriptState *script);
+	int o1_playAdlibSound(ScriptState *script);
+	int o1_playAdlibScore(ScriptState *script);
+	int o1_phaseInSameScene(ScriptState *script);
+	int o1_setScenePhasingFlag(ScriptState *script);
+	int o1_resetScenePhasingFlag(ScriptState *script);
+	int o1_queryScenePhasingFlag(ScriptState *script);
+	int o1_sceneToDirection(ScriptState *script);
+	int o1_setBirthstoneGem(ScriptState *script);
+	int o1_placeItemInGenericMapScene(ScriptState *script);
+	int o1_setBrandonStatusBit(ScriptState *script);
+	int o1_pauseSeconds(ScriptState *script);
+	int o1_getCharactersLocation(ScriptState *script);
+	int o1_runNPCSubscript(ScriptState *script);
+	int o1_magicOutMouseItem(ScriptState *script);
+	int o1_internalAnimOn(ScriptState *script);
+	int o1_forceBrandonToNormal(ScriptState *script);
+	int o1_poisonDeathNow(ScriptState *script);
+	int o1_setScaleMode(ScriptState *script);
+	int o1_openWSAFile(ScriptState *script);
+	int o1_closeWSAFile(ScriptState *script);
+	int o1_runWSAFromBeginningToEnd(ScriptState *script);
+	int o1_displayWSAFrame(ScriptState *script);
+	int o1_enterNewScene(ScriptState *script);
+	int o1_setSpecialEnterXAndY(ScriptState *script);
+	int o1_runWSAFrames(ScriptState *script);
+	int o1_popBrandonIntoScene(ScriptState *script);
+	int o1_restoreAllObjectBackgrounds(ScriptState *script);
+	int o1_setCustomPaletteRange(ScriptState *script);
+	int o1_loadPageFromDisk(ScriptState *script);
+	int o1_customPrintTalkString(ScriptState *script);
+	int o1_restoreCustomPrintBackground(ScriptState *script);
+	int o1_hideMouse(ScriptState *script);
+	int o1_showMouse(ScriptState *script);
+	int o1_getCharacterX(ScriptState *script);
+	int o1_getCharacterY(ScriptState *script);
+	int o1_changeCharactersFacing(ScriptState *script);
+	int o1_copyWSARegion(ScriptState *script);
+	int o1_printText(ScriptState *script);
+	int o1_random(ScriptState *script);
+	int o1_loadSoundFile(ScriptState *script);
+	int o1_displayWSAFrameOnHidPage(ScriptState *script);
+	int o1_displayWSASequentialFrames(ScriptState *script);
+	int o1_drawCharacterStanding(ScriptState *script);
+	int o1_internalAnimOff(ScriptState *script);
+	int o1_changeCharactersXAndY(ScriptState *script);
+	int o1_clearSceneAnimatorBeacon(ScriptState *script);
+	int o1_querySceneAnimatorBeacon(ScriptState *script);
+	int o1_refreshSceneAnimator(ScriptState *script);
+	int o1_placeItemInOffScene(ScriptState *script);
+	int o1_wipeDownMouseItem(ScriptState *script);
+	int o1_placeCharacterInOtherScene(ScriptState *script);
+	int o1_getKey(ScriptState *script);
+	int o1_specificItemInInventory(ScriptState *script);
+	int o1_popMobileNPCIntoScene(ScriptState *script);
+	int o1_mobileCharacterInScene(ScriptState *script);
+	int o1_hideMobileCharacter(ScriptState *script);
+	int o1_unhideMobileCharacter(ScriptState *script);
+	int o1_setCharactersLocation(ScriptState *script);
+	int o1_walkCharacterToPoint(ScriptState *script);
+	int o1_specialEventDisplayBrynnsNote(ScriptState *script);
+	int o1_specialEventRemoveBrynnsNote(ScriptState *script);
+	int o1_setLogicPage(ScriptState *script);
+	int o1_fatPrint(ScriptState *script);
+	int o1_preserveAllObjectBackgrounds(ScriptState *script);
+	int o1_updateSceneAnimations(ScriptState *script);
+	int o1_sceneAnimationActive(ScriptState *script);
+	int o1_setCharactersMovementDelay(ScriptState *script);
+	int o1_getCharactersFacing(ScriptState *script);
+	int o1_bkgdScrollSceneAndMasksRight(ScriptState *script);
+	int o1_dispelMagicAnimation(ScriptState *script);
+	int o1_findBrightestFireberry(ScriptState *script);
+	int o1_setFireberryGlowPalette(ScriptState *script);
+	int o1_setDeathHandlerFlag(ScriptState *script);
+	int o1_drinkPotionAnimation(ScriptState *script);
+	int o1_makeAmuletAppear(ScriptState *script);
+	int o1_drawItemShapeIntoScene(ScriptState *script);
+	int o1_setCharactersCurrentFrame(ScriptState *script);
+	int o1_waitForConfirmationMouseClick(ScriptState *script);
+	int o1_pageFlip(ScriptState *script);
+	int o1_setSceneFile(ScriptState *script);
+	int o1_getItemInMarbleVase(ScriptState *script);
+	int o1_setItemInMarbleVase(ScriptState *script);
+	int o1_addItemToInventory(ScriptState *script);
+	int o1_intPrint(ScriptState *script);
+	int o1_shakeScreen(ScriptState *script);
+	int o1_createAmuletJewel(ScriptState *script);
+	int o1_setSceneAnimCurrXY(ScriptState *script);
+	int o1_poisonBrandonAndRemaps(ScriptState *script);
+	int o1_fillFlaskWithWater(ScriptState *script);
+	int o1_getCharactersMovementDelay(ScriptState *script);
+	int o1_getBirthstoneGem(ScriptState *script);
+	int o1_queryBrandonStatusBit(ScriptState *script);
+	int o1_playFluteAnimation(ScriptState *script);
+	int o1_playWinterScrollSequence(ScriptState *script);
+	int o1_getIdolGem(ScriptState *script);
+	int o1_setIdolGem(ScriptState *script);
+	int o1_totalItemsInScene(ScriptState *script);
+	int o1_restoreBrandonsMovementDelay(ScriptState *script);
+	int o1_setMousePos(ScriptState *script);
+	int o1_getMouseState(ScriptState *script);
+	int o1_setEntranceMouseCursorTrack(ScriptState *script);
+	int o1_itemAppearsOnGround(ScriptState *script);
+	int o1_setNoDrawShapesFlag(ScriptState *script);
+	int o1_fadeEntirePalette(ScriptState *script);
+	int o1_itemOnGroundHere(ScriptState *script);
+	int o1_queryCauldronState(ScriptState *script);
+	int o1_setCauldronState(ScriptState *script);
+	int o1_queryCrystalState(ScriptState *script);
+	int o1_setCrystalState(ScriptState *script);
+	int o1_setPaletteRange(ScriptState *script);
+	int o1_shrinkBrandonDown(ScriptState *script);
+	int o1_growBrandonUp(ScriptState *script);
+	int o1_setBrandonScaleXAndY(ScriptState *script);
+	int o1_resetScaleMode(ScriptState *script);
+	int o1_getScaleDepthTableValue(ScriptState *script);
+	int o1_setScaleDepthTableValue(ScriptState *script);
+	int o1_message(ScriptState *script);
+	int o1_checkClickOnNPC(ScriptState *script);
+	int o1_getFoyerItem(ScriptState *script);
+	int o1_setFoyerItem(ScriptState *script);
+	int o1_setNoItemDropRegion(ScriptState *script);
+	int o1_walkMalcolmOn(ScriptState *script);
+	int o1_passiveProtection(ScriptState *script);
+	int o1_setPlayingLoop(ScriptState *script);
+	int o1_brandonToStoneSequence(ScriptState *script);
+	int o1_brandonHealingSequence(ScriptState *script);
+	int o1_protectCommandLine(ScriptState *script);
+	int o1_pauseMusicSeconds(ScriptState *script);
+	int o1_resetMaskRegion(ScriptState *script);
+	int o1_setPaletteChangeFlag(ScriptState *script);
+	int o1_fillRect(ScriptState *script);
+	int o1_dummy(ScriptState *script);
+	int o1_vocUnload(ScriptState *script);
+	int o1_vocLoad(ScriptState *script);
 
 protected:
 

Modified: scummvm/trunk/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v1.cpp	2006-07-27 20:30:51 UTC (rev 23612)
+++ scummvm/trunk/engines/kyra/script_v1.cpp	2006-07-27 20:39:52 UTC (rev 23613)
@@ -35,16 +35,16 @@
 #define stackPos(x) script->stack[script->sp+x]
 #define stackPosString(x) (char*)&script->dataPtr->text[READ_BE_UINT16(&((uint16 *)script->dataPtr->text)[stackPos(x)])]
 
-int KyraEngine::c1_magicInMouseItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_magicInMouseItem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_magicInMouseItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_magicInMouseItem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	magicInMouseItem(stackPos(0), stackPos(1), -1);
 	return 0;
 }
 
-int KyraEngine::c1_characterSays(ScriptState *script) {
+int KyraEngine::o1_characterSays(ScriptState *script) {
 	_skipFlag = false;
 	if (_features & GF_TALKIE) {
-		debugC(3, kDebugLevelScriptFuncs, "c1_characterSays(%p) (%d, '%s', %d, %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2), stackPos(3));
+		debugC(3, kDebugLevelScriptFuncs, "o1_characterSays(%p) (%d, '%s', %d, %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2), stackPos(3));
 		if (speechEnabled()) {
 			snd_voiceWaitForFinish();
 			snd_playVoiceFile(stackPos(0));
@@ -52,17 +52,17 @@
 		if (textEnabled())
 			characterSays(stackPosString(1), stackPos(2), stackPos(3));
 	} else {
-		debugC(3, kDebugLevelScriptFuncs, "c1_characterSays(%p) ('%s', %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2));
+		debugC(3, kDebugLevelScriptFuncs, "o1_characterSays(%p) ('%s', %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2));
 		characterSays(stackPosString(0), stackPos(1), stackPos(2));
 	}
 
 	return 0;
 }
 
-int KyraEngine::c1_pauseTicks(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_pauseTicks(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_pauseTicks(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_pauseTicks(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	if (stackPos(1)) {
-		warning("STUB: special c1_pauseTicks");
+		warning("STUB: special o1_pauseTicks");
 		// delete this after correct implementing
 		delayWithTicks(stackPos(0));
 	} else {
@@ -71,34 +71,34 @@
 	return 0;
 }
 
-int KyraEngine::c1_drawSceneAnimShape(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_drawSceneAnimShape(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_drawSceneAnimShape(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_drawSceneAnimShape(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	_screen->drawShape(stackPos(4), _sprites->_sceneShapes[stackPos(0)], stackPos(1), stackPos(2), 0, (stackPos(3) != 0) ? 1 : 0);
 	return 0;
 }
 
-int KyraEngine::c1_queryGameFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_queryGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
+int KyraEngine::o1_queryGameFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_queryGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
 	return queryGameFlag(stackPos(0));
 }
 
-int KyraEngine::c1_setGameFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setGameFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
 	return setGameFlag(stackPos(0));
 }
 
-int KyraEngine::c1_resetGameFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_resetGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
+int KyraEngine::o1_resetGameFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_resetGameFlag(%p) (0x%X)", (const void *)script, stackPos(0));
 	return resetGameFlag(stackPos(0));
 }
 
-int KyraEngine::c1_runNPCScript(ScriptState *script) {
-	warning("STUB: c1_runNPCScript");
+int KyraEngine::o1_runNPCScript(ScriptState *script) {
+	warning("STUB: o1_runNPCScript");
 	return 0;
 }
 
-int KyraEngine::c1_setSpecialExitList(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setSpecialExitList(%p) (%d, %d, %d, %d, %d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5), stackPos(6), stackPos(7), stackPos(8), stackPos(9));
+int KyraEngine::o1_setSpecialExitList(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setSpecialExitList(%p) (%d, %d, %d, %d, %d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5), stackPos(6), stackPos(7), stackPos(8), stackPos(9));
 	
 	for (int i = 0; i < 10; ++i) {
 		_exitList[i] = stackPos(i);
@@ -108,20 +108,20 @@
 	return 0;
 }
 
-int KyraEngine::c1_blockInWalkableRegion(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_blockInWalkableRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_blockInWalkableRegion(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_blockInWalkableRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	_screen->blockInRegion(stackPos(0), stackPos(1), stackPos(2)-stackPos(0)+1, stackPos(3)-stackPos(1)+1);
 	return 0;
 }
 
-int KyraEngine::c1_blockOutWalkableRegion(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_blockOutWalkableRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_blockOutWalkableRegion(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_blockOutWalkableRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	_screen->blockOutRegion(stackPos(0), stackPos(1), stackPos(2)-stackPos(0)+1, stackPos(3)-stackPos(1)+1);
 	return 0;
 }
 
-int KyraEngine::c1_walkPlayerToPoint(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_walkPlayerToPoint(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_walkPlayerToPoint(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_walkPlayerToPoint(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 
 	int normalTimers = stackPos(2);
 	if (!normalTimers) {
@@ -149,8 +149,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_dropItemInScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_dropItemInScene(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_dropItemInScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_dropItemInScene(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	int item = stackPos(0);
 	int xpos = stackPos(1);
 	int ypos = stackPos(2);
@@ -175,8 +175,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_drawAnimShapeIntoScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_drawAnimShapeIntoScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_drawAnimShapeIntoScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_drawAnimShapeIntoScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	_screen->hideMouse();
 	_animator->restoreAllObjectBackgrounds();
 	int shape = stackPos(0);
@@ -193,51 +193,51 @@
 	return 0;
 }
 
-int KyraEngine::c1_createMouseItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_createMouseItem(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_createMouseItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_createMouseItem(%p) (%d)", (const void *)script, stackPos(0));
 	createMouseItem(stackPos(0));
 	return 0;
 }
 
-int KyraEngine::c1_savePageToDisk(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_savePageToDisk(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
+int KyraEngine::o1_savePageToDisk(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_savePageToDisk(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
 	_screen->savePageToDisk(stackPosString(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_sceneAnimOn(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_sceneAnimOn(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_sceneAnimOn(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_sceneAnimOn(%p) (%d)", (const void *)script, stackPos(0));
 	_sprites->_anims[stackPos(0)].play = true;
 	return 0;
 }
 
-int KyraEngine::c1_sceneAnimOff(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_sceneAnimOff(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_sceneAnimOff(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_sceneAnimOff(%p) (%d)", (const void *)script, stackPos(0));
 	_sprites->_anims[stackPos(0)].play = false;
 	return 0;
 }
 
-int KyraEngine::c1_getElapsedSeconds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getElapsedSeconds(%p) ()", (const void *)script);
+int KyraEngine::o1_getElapsedSeconds(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getElapsedSeconds(%p) ()", (const void *)script);
 	return _system->getMillis() / 1000;
 }
 
-int KyraEngine::c1_mouseIsPointer(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_mouseIsPointer(%p) ()", (const void *)script);
+int KyraEngine::o1_mouseIsPointer(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_mouseIsPointer(%p) ()", (const void *)script);
 	if (_itemInHand == -1) {
 		return 1;
 	}
 	return 0;
 }
 
-int KyraEngine::c1_destroyMouseItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_destroyMouseItem(%p) ()", (const void *)script);
+int KyraEngine::o1_destroyMouseItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_destroyMouseItem(%p) ()", (const void *)script);
 	destroyMouseItem();
 	return 0;
 }
 
-int KyraEngine::c1_runSceneAnimUntilDone(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_runSceneAnimUntilDone(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_runSceneAnimUntilDone(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_runSceneAnimUntilDone(%p) (%d)", (const void *)script, stackPos(0));
 	_screen->hideMouse();
 	_animator->restoreAllObjectBackgrounds();
 	_sprites->_anims[stackPos(0)].play = true;
@@ -254,49 +254,49 @@
 	return 0;
 }
 
-int KyraEngine::c1_fadeSpecialPalette(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_fadeSpecialPalette(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_fadeSpecialPalette(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_fadeSpecialPalette(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	_screen->fadeSpecialPalette(stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	return 0;
 }
 
-int KyraEngine::c1_playAdlibSound(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_playAdlibSound(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_playAdlibSound(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_playAdlibSound(%p) (%d)", (const void *)script, stackPos(0));
 	snd_playSoundEffect(stackPos(0));
 	return 0;
 }
 
-int KyraEngine::c1_playAdlibScore(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_playAdlibScore(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_playAdlibScore(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_playAdlibScore(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	snd_playWanderScoreViaMap(stackPos(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_phaseInSameScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_phaseInSameScene(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_phaseInSameScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_phaseInSameScene(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	transcendScenes(stackPos(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_setScenePhasingFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setScenePhasingFlag(%p) ()", (const void *)script);
+int KyraEngine::o1_setScenePhasingFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setScenePhasingFlag(%p) ()", (const void *)script);
 	_scenePhasingFlag = 1;
 	return 1;
 }
 
-int KyraEngine::c1_resetScenePhasingFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_resetScenePhasingFlag(%p) ()", (const void *)script);
+int KyraEngine::o1_resetScenePhasingFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_resetScenePhasingFlag(%p) ()", (const void *)script);
 	_scenePhasingFlag = 0;
 	return 0;
 }
 
-int KyraEngine::c1_queryScenePhasingFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_queryScenePhasingFlag(%p) ()", (const void *)script);
+int KyraEngine::o1_queryScenePhasingFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_queryScenePhasingFlag(%p) ()", (const void *)script);
 	return _scenePhasingFlag;
 }
 
-int KyraEngine::c1_sceneToDirection(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_sceneToDirection(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_sceneToDirection(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_sceneToDirection(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	assert(stackPos(0) < _roomTableSize);
 	Room *curRoom = &_roomTable[stackPos(0)];
 	uint16 returnValue = 0xFFFF;
@@ -325,8 +325,8 @@
 	return returnValue;
 }
 
-int KyraEngine::c1_setBirthstoneGem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setBirthstoneGem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setBirthstoneGem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setBirthstoneGem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	int index = stackPos(0);
 	if (index < 4 && index >= 0) {
 		_birthstoneGemTable[index] = stackPos(1);
@@ -335,62 +335,62 @@
 	return 0;
 }
 
-int KyraEngine::c1_placeItemInGenericMapScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_placeItemInGenericMapScene(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_placeItemInGenericMapScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_placeItemInGenericMapScene(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	placeItemInGenericMapScene(stackPos(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_setBrandonStatusBit(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setBrandonStatusBit(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setBrandonStatusBit(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setBrandonStatusBit(%p) (%d)", (const void *)script, stackPos(0));
 	_brandonStatusBit |= stackPos(0);
 	return 0;
 }
 
-int KyraEngine::c1_pauseSeconds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_pauseSeconds(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_pauseSeconds(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_pauseSeconds(%p) (%d)", (const void *)script, stackPos(0));
 	if (stackPos(0) > 0 && !_skipFlag)
 		delay(stackPos(0)*1000, true);
 	_skipFlag = false;
 	return 0;
 }
 
-int KyraEngine::c1_getCharactersLocation(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getCharactersLocation(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getCharactersLocation(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getCharactersLocation(%p) (%d)", (const void *)script, stackPos(0));
 	return _characterList[stackPos(0)].sceneId;
 }
 
-int KyraEngine::c1_runNPCSubscript(ScriptState *script) {
-	warning("STUB: c1_runNPCSubscript");
+int KyraEngine::o1_runNPCSubscript(ScriptState *script) {
+	warning("STUB: o1_runNPCSubscript");
 	return 0;
 }
 
-int KyraEngine::c1_magicOutMouseItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_magicOutMouseItem(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_magicOutMouseItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_magicOutMouseItem(%p) (%d)", (const void *)script, stackPos(0));
 	magicOutMouseItem(stackPos(0), -1);
 	return 0;
 }
 
-int KyraEngine::c1_internalAnimOn(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_internalAnimOn(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_internalAnimOn(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_internalAnimOn(%p) (%d)", (const void *)script, stackPos(0));
 	_animator->sprites()[stackPos(0)].active = 1;
 	return 0;
 }
 
-int KyraEngine::c1_forceBrandonToNormal(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_forceBrandonToNormal(%p) ()", (const void *)script);
+int KyraEngine::o1_forceBrandonToNormal(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_forceBrandonToNormal(%p) ()", (const void *)script);
 	checkAmuletAnimFlags();
 	return 0;
 }
 
-int KyraEngine::c1_poisonDeathNow(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_poisonDeathNow(%p) ()", (const void *)script);
+int KyraEngine::o1_poisonDeathNow(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_poisonDeathNow(%p) ()", (const void *)script);
 	seq_poisonDeathNow(1);
 	return 0;
 }
 
-int KyraEngine::c1_setScaleMode(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setScaleMode(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_setScaleMode(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setScaleMode(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	int len = stackPos(0);
 	int setValue1 = stackPos(1);
 	int start2 = stackPos(2);
@@ -410,8 +410,8 @@
 	return _scaleMode;
 }
 
-int KyraEngine::c1_openWSAFile(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_openWSAFile(%p) ('%s', %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_openWSAFile(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_openWSAFile(%p) ('%s', %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3));
 	
 	char *filename = stackPosString(0);
 	int wsaIndex = stackPos(1);
@@ -422,8 +422,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_closeWSAFile(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_closeWSAFile(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_closeWSAFile(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_closeWSAFile(%p) (%d)", (const void *)script, stackPos(0));
 	
 	int wsaIndex = stackPos(0);
 	if (_movieObjects[wsaIndex]) {
@@ -433,8 +433,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_runWSAFromBeginningToEnd(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_runWSAFromBeginningToEnd(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_runWSAFromBeginningToEnd(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_runWSAFromBeginningToEnd(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	
 	_screen->hideMouse();
 	
@@ -474,8 +474,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_displayWSAFrame(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_displayWSAFrame(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_displayWSAFrame(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_displayWSAFrame(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	int frame = stackPos(0);
 	int xpos = stackPos(1);
 	int ypos = stackPos(2);
@@ -501,14 +501,14 @@
 	return 0;
 }
 
-int KyraEngine::c1_enterNewScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_enterNewScene(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_enterNewScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_enterNewScene(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	enterNewScene(stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	return 0;
 }
 
-int KyraEngine::c1_setSpecialEnterXAndY(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setSpecialEnterXAndY(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setSpecialEnterXAndY(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setSpecialEnterXAndY(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	_brandonPosX = stackPos(0);
 	_brandonPosY = stackPos(1);
 	if (_brandonPosX + 1 == 0 && _brandonPosY + 1 == 0)
@@ -516,8 +516,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_runWSAFrames(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_runWSAFrames(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+int KyraEngine::o1_runWSAFrames(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_runWSAFrames(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	int xpos = stackPos(0);
 	int ypos = stackPos(1);
 	int delayTime = stackPos(2);
@@ -543,8 +543,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_popBrandonIntoScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_popBrandonIntoScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_popBrandonIntoScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_popBrandonIntoScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	int changeScaleMode = stackPos(3);
 	int xpos = (int16)(stackPos(0) & 0xFFFC);
 	int ypos = (int16)(stackPos(1) & 0xFFFE);
@@ -593,30 +593,30 @@
 	return 0;
 }
 
-int KyraEngine::c1_restoreAllObjectBackgrounds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_restoreAllObjectBackgrounds(%p) ()", (const void *)script);
+int KyraEngine::o1_restoreAllObjectBackgrounds(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_restoreAllObjectBackgrounds(%p) ()", (const void *)script);
 	_animator->restoreAllObjectBackgrounds();
 	return 0;
 }
 
-int KyraEngine::c1_setCustomPaletteRange(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCustomPaletteRange(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_setCustomPaletteRange(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCustomPaletteRange(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	uint8 *screenPal = _screen->_currentPalette;
 	memcpy(&screenPal[stackPos(1)*3], _specialPalettes[stackPos(0)], stackPos(2)*3);
 	_screen->setScreenPalette(screenPal);
 	return 0;
 }
 
-int KyraEngine::c1_loadPageFromDisk(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_loadPageFromDisk(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
+int KyraEngine::o1_loadPageFromDisk(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_loadPageFromDisk(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
 	_screen->loadPageFromDisk(stackPosString(0), stackPos(1));
 	_animator->_updateScreen = true;
 	return 0;
 }
 
-int KyraEngine::c1_customPrintTalkString(ScriptState *script) {
+int KyraEngine::o1_customPrintTalkString(ScriptState *script) {
 	if (_features & GF_TALKIE) {
-		debugC(3, kDebugLevelScriptFuncs, "c1_customPrintTalkString(%p) (%d, '%s', %d, %d, %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2), stackPos(3), stackPos(4) & 0xFF);
+		debugC(3, kDebugLevelScriptFuncs, "o1_customPrintTalkString(%p) (%d, '%s', %d, %d, %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2), stackPos(3), stackPos(4) & 0xFF);
 
 		if (speechEnabled()) {
 			snd_voiceWaitForFinish();
@@ -626,7 +626,7 @@
 		if (textEnabled())
 			_text->printTalkTextMessage(stackPosString(1), stackPos(2), stackPos(3), stackPos(4) & 0xFF, 0, 2);
 	} else {
-		debugC(3, kDebugLevelScriptFuncs, "c1_customPrintTalkString(%p) ('%s', %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3) & 0xFF);
+		debugC(3, kDebugLevelScriptFuncs, "o1_customPrintTalkString(%p) ('%s', %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3) & 0xFF);
 		_skipFlag = false;
 		_text->printTalkTextMessage(stackPosString(0), stackPos(1), stackPos(2), stackPos(3) & 0xFF, 0, 2);
 	}
@@ -634,36 +634,36 @@
 	return 0;
 }
 
-int KyraEngine::c1_restoreCustomPrintBackground(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_restoreCustomPrintBackground(%p) ()", (const void *)script);
+int KyraEngine::o1_restoreCustomPrintBackground(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_restoreCustomPrintBackground(%p) ()", (const void *)script);
 	_text->restoreTalkTextMessageBkgd(2, 0);
 	return 0;
 }
 
-int KyraEngine::c1_hideMouse(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_hideMouse(%p) ()", (const void *)script);
+int KyraEngine::o1_hideMouse(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_hideMouse(%p) ()", (const void *)script);
 	_screen->hideMouse();
 	return 0;
 }
 
-int KyraEngine::c1_showMouse(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_showMouse(%p) ()", (const void *)script);
+int KyraEngine::o1_showMouse(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_showMouse(%p) ()", (const void *)script);
 	_screen->showMouse();
 	return 0;
 }
 
-int KyraEngine::c1_getCharacterX(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getCharacterX(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getCharacterX(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getCharacterX(%p) (%d)", (const void *)script, stackPos(0));
 	return _characterList[stackPos(0)].x1;
 }
 
-int KyraEngine::c1_getCharacterY(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getCharacterY(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getCharacterY(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getCharacterY(%p) (%d)", (const void *)script, stackPos(0));
 	return _characterList[stackPos(0)].y1;
 }
 
-int KyraEngine::c1_changeCharactersFacing(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_changeCharactersFacing(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_changeCharactersFacing(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_changeCharactersFacing(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	int character = stackPos(0);
 	int facing = stackPos(1);
 	int newAnimFrame = stackPos(2);
@@ -681,8 +681,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_copyWSARegion(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_copyWSARegion(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+int KyraEngine::o1_copyWSARegion(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_copyWSARegion(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	int xpos = stackPos(0);
 	int ypos = stackPos(1);
 	int width = stackPos(2);
@@ -694,26 +694,26 @@
 	return 0;
 }
 
-int KyraEngine::c1_printText(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_printText(%p) ('%s', %d, %d, 0x%X, 0x%X)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_printText(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_printText(%p) ('%s', %d, %d, 0x%X, 0x%X)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	_screen->printText(stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	_screen->updateScreen();
 	return 0;
 }
 
-int KyraEngine::c1_random(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_random(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_random(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_random(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	assert(stackPos(0) < stackPos(1));
 	return _rnd.getRandomNumberRng(stackPos(0), stackPos(1));
 }
 
-int KyraEngine::c1_loadSoundFile(ScriptState *script) {
-	warning("STUB: c1_loadSoundFile");
+int KyraEngine::o1_loadSoundFile(ScriptState *script) {
+	warning("STUB: o1_loadSoundFile");
 	return 0;
 }
 
-int KyraEngine::c1_displayWSAFrameOnHidPage(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_displayWSAFrameOnHidPage(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_displayWSAFrameOnHidPage(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_displayWSAFrameOnHidPage(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	int frame = stackPos(0);
 	int xpos = stackPos(1);
 	int ypos = stackPos(2);
@@ -741,8 +741,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_displayWSASequentialFrames(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_displayWSASequentialFrames(%p) (%d, %d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5), stackPos(6));
+int KyraEngine::o1_displayWSASequentialFrames(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_displayWSASequentialFrames(%p) (%d, %d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5), stackPos(6));
 	int startFrame = stackPos(0);
 	int endFrame = stackPos(1);
 	int xpos = stackPos(2);
@@ -819,8 +819,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_drawCharacterStanding(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_drawCharacterStanding(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_drawCharacterStanding(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_drawCharacterStanding(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	int character = stackPos(0);
 	int animFrame = stackPos(1);
 	int newFacing = stackPos(2);
@@ -836,14 +836,14 @@
 	return 0;
 }
 
-int KyraEngine::c1_internalAnimOff(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_internalAnimOff(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_internalAnimOff(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_internalAnimOff(%p) (%d)", (const void *)script, stackPos(0));
 	_animator->sprites()[stackPos(0)].active = 0;
 	return 0;
 }
 
-int KyraEngine::c1_changeCharactersXAndY(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_changeCharactersXAndY(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_changeCharactersXAndY(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_changeCharactersXAndY(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	Character *ch = &_characterList[stackPos(0)];
 	int16 x = stackPos(1);
 	int16 y = stackPos(2);
@@ -858,26 +858,26 @@
 	return 0;
 }
 
-int KyraEngine::c1_clearSceneAnimatorBeacon(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_clearSceneAnimatorBeacon(%p) ()", (const void *)script);
+int KyraEngine::o1_clearSceneAnimatorBeacon(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_clearSceneAnimatorBeacon(%p) ()", (const void *)script);
 	_sprites->_sceneAnimatorBeaconFlag = 0;
 	return 0;
 }
 
-int KyraEngine::c1_querySceneAnimatorBeacon(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_querySceneAnimatorBeacon(%p) ()", (const void *)script);
+int KyraEngine::o1_querySceneAnimatorBeacon(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_querySceneAnimatorBeacon(%p) ()", (const void *)script);
 	return _sprites->_sceneAnimatorBeaconFlag;
 }
 
-int KyraEngine::c1_refreshSceneAnimator(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_refreshSceneAnimator(%p) ()", (const void *)script);
+int KyraEngine::o1_refreshSceneAnimator(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_refreshSceneAnimator(%p) ()", (const void *)script);
 	_sprites->updateSceneAnims();
 	_animator->updateAllObjectShapes();
 	return 0;
 }
 
-int KyraEngine::c1_placeItemInOffScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_placeItemInOffScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_placeItemInOffScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_placeItemInOffScene(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	int item = stackPos(0);
 	int xpos = stackPos(1);
 	int ypos = stackPos(2);
@@ -895,8 +895,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_wipeDownMouseItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_wipeDownMouseItem(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_wipeDownMouseItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_wipeDownMouseItem(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	_screen->hideMouse();
 	wipeDownMouseItem(stackPos(1), stackPos(2));
 	destroyMouseItem();
@@ -904,8 +904,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_placeCharacterInOtherScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_placeCharacterInOtherScene(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+int KyraEngine::o1_placeCharacterInOtherScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_placeCharacterInOtherScene(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	int id = stackPos(0);
 	int sceneId = stackPos(1);
 	int xpos = (int16)(stackPos(2) & 0xFFFC);
@@ -921,19 +921,19 @@
 	return 0;
 }
 
-int KyraEngine::c1_getKey(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getKey(%p) ()", (const void *)script);
+int KyraEngine::o1_getKey(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getKey(%p) ()", (const void *)script);
 	waitForEvent();
 	return 0;
 }
 
-int KyraEngine::c1_specificItemInInventory(ScriptState *script) {
-	warning("STUB: c1_specificItemInInventory");
+int KyraEngine::o1_specificItemInInventory(ScriptState *script) {
+	warning("STUB: o1_specificItemInInventory");
 	return 0;
 }
 
-int KyraEngine::c1_popMobileNPCIntoScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_popMobileNPCIntoScene(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), (int16)(stackPos(4) & 0xFFFC), (int8)(stackPos(5) & 0xFE));
+int KyraEngine::o1_popMobileNPCIntoScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_popMobileNPCIntoScene(%p) (%d, %d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), (int16)(stackPos(4) & 0xFFFC), (int8)(stackPos(5) & 0xFE));
 	int character = stackPos(0);
 	int sceneId = stackPos(1);
 	int animFrame = stackPos(2);
@@ -953,23 +953,23 @@
 	return 0;
 }
 
-int KyraEngine::c1_mobileCharacterInScene(ScriptState *script) {
-	warning("STUB: c1_mobileCharacterInScene");
+int KyraEngine::o1_mobileCharacterInScene(ScriptState *script) {
+	warning("STUB: o1_mobileCharacterInScene");
 	return 0;
 }
 
-int KyraEngine::c1_hideMobileCharacter(ScriptState *script) {
-	warning("STUB: c1_hideMobileCharacter");
+int KyraEngine::o1_hideMobileCharacter(ScriptState *script) {
+	warning("STUB: o1_hideMobileCharacter");
 	return 0;
 }
 
-int KyraEngine::c1_unhideMobileCharacter(ScriptState *script) {
-	warning("STUB: c1_unhideMobileCharacter");
+int KyraEngine::o1_unhideMobileCharacter(ScriptState *script) {
+	warning("STUB: o1_unhideMobileCharacter");
 	return 0;
 }
 
-int KyraEngine::c1_setCharactersLocation(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCharactersLocation(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setCharactersLocation(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCharactersLocation(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	Character *ch = &_characterList[stackPos(0)];
 	AnimObject *animObj = &_animator->actors()[stackPos(0)];
 	int newScene = stackPos(1);
@@ -985,8 +985,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_walkCharacterToPoint(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_walkCharacterToPoint(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_walkCharacterToPoint(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_walkCharacterToPoint(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	int character = stackPos(0);
 	int toX = stackPos(1);
 	int toY = stackPos(2);
@@ -1068,8 +1068,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_specialEventDisplayBrynnsNote(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_specialEventDisplayBrynnsNote(%p) ()", (const void *)script);
+int KyraEngine::o1_specialEventDisplayBrynnsNote(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_specialEventDisplayBrynnsNote(%p) ()", (const void *)script);
 	_screen->hideMouse();
 	_screen->savePageToDisk("HIDPAGE.TMP", 2);
 	_screen->savePageToDisk("SEENPAGE.TMP", 0);
@@ -1091,8 +1091,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_specialEventRemoveBrynnsNote(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_specialEventRemoveBrynnsNote(%p) ()", (const void *)script);
+int KyraEngine::o1_specialEventRemoveBrynnsNote(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_specialEventRemoveBrynnsNote(%p) ()", (const void *)script);
 	_screen->hideMouse();
 	_screen->loadPageFromDisk("SEENPAGE.TMP", 0);
 	_screen->loadPageFromDisk("HIDPAGE.TMP", 2);
@@ -1102,26 +1102,26 @@
 	return 0;
 }
 
-int KyraEngine::c1_setLogicPage(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setLogicPage(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setLogicPage(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setLogicPage(%p) (%d)", (const void *)script, stackPos(0));
 	_screen->_curPage = stackPos(0);
 	return stackPos(0);
 }
 
-int KyraEngine::c1_fatPrint(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_fatPrint(%p) ('%s', %d, %d, %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+int KyraEngine::o1_fatPrint(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_fatPrint(%p) ('%s', %d, %d, %d, %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	_text->printText(stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	return 0;
 }
 
-int KyraEngine::c1_preserveAllObjectBackgrounds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_preserveAllObjectBackgrounds(%p) ()", (const void *)script);
+int KyraEngine::o1_preserveAllObjectBackgrounds(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_preserveAllObjectBackgrounds(%p) ()", (const void *)script);
 	_animator->preserveAllBackgrounds();
 	return 0;
 }
 
-int KyraEngine::c1_updateSceneAnimations(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_updateSceneAnimations(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_updateSceneAnimations(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_updateSceneAnimations(%p) (%d)", (const void *)script, stackPos(0));
 	if (stackPos(0)) {
 		_sprites->updateSceneAnims();
 		_animator->updateAllObjectShapes();
@@ -1129,24 +1129,24 @@
 	return 0;
 }
 
-int KyraEngine::c1_sceneAnimationActive(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_sceneAnimationActive(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_sceneAnimationActive(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_sceneAnimationActive(%p) (%d)", (const void *)script, stackPos(0));
 	return _sprites->_anims[stackPos(0)].play;
 }
 
-int KyraEngine::c1_setCharactersMovementDelay(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCharactersMovementDelay(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setCharactersMovementDelay(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCharactersMovementDelay(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	setTimerDelay(stackPos(0)+5, stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_getCharactersFacing(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getCharactersFacing(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getCharactersFacing(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getCharactersFacing(%p) (%d)", (const void *)script, stackPos(0));
 	return _characterList[stackPos(0)].facing;
 }
 
-int KyraEngine::c1_bkgdScrollSceneAndMasksRight(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_bkgdScrollSceneAndMasksRight(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_bkgdScrollSceneAndMasksRight(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_bkgdScrollSceneAndMasksRight(%p) (%d)", (const void *)script, stackPos(0));
 	_screen->copyBackgroundBlock(stackPos(0), 2, 0);
 	_screen->copyBackgroundBlock2(stackPos(0));
 	// update the whole screen
@@ -1155,14 +1155,14 @@
 	return 0;
 }
 
-int KyraEngine::c1_dispelMagicAnimation(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_dispelMagicAnimation(%p) ()", (const void *)script);
+int KyraEngine::o1_dispelMagicAnimation(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_dispelMagicAnimation(%p) ()", (const void *)script);
 	seq_dispelMagicAnimation();
 	return 0;
 }
 
-int KyraEngine::c1_findBrightestFireberry(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_findBrightestFireberry(%p) ()", (const void *)script);
+int KyraEngine::o1_findBrightestFireberry(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_findBrightestFireberry(%p) ()", (const void *)script);
 	if (_currentCharacter->sceneId >= 187 && _currentCharacter->sceneId <= 198) {
 		return 29;
 	}
@@ -1204,8 +1204,8 @@
 	return brightestFireberry;
 }
 
-int KyraEngine::c1_setFireberryGlowPalette(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setFireberryGlowPalette(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setFireberryGlowPalette(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setFireberryGlowPalette(%p) (%d)", (const void *)script, stackPos(0));
 	int palIndex = 0;
 	switch (stackPos(0)) {
 	case 0x1E:
@@ -1242,20 +1242,20 @@
 	return 0;
 }
 
-int KyraEngine::c1_setDeathHandlerFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setDeathHandlerFlag(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setDeathHandlerFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setDeathHandlerFlag(%p) (%d)", (const void *)script, stackPos(0));
 	_deathHandler = stackPos(0);
 	return 0;
 }
 
-int KyraEngine::c1_drinkPotionAnimation(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_drinkPotionAnimation(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_drinkPotionAnimation(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_drinkPotionAnimation(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	seq_playDrinkPotionAnim(stackPos(0), stackPos(1), stackPos(2));
 	return 0;
 }
 
-int KyraEngine::c1_makeAmuletAppear(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_makeAmuletAppear(%p) ()", (const void *)script);
+int KyraEngine::o1_makeAmuletAppear(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_makeAmuletAppear(%p) ()", (const void *)script);
 	WSAMovieV1 amulet(this);
 	amulet.open("AMULET.WSA", 1, 0);
 	amulet.setX(224);
@@ -1299,8 +1299,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_drawItemShapeIntoScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_drawItemShapeIntoScene(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_drawItemShapeIntoScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_drawItemShapeIntoScene(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	int item = stackPos(0);
 	int x = stackPos(1);
 	int y = stackPos(2);
@@ -1323,14 +1323,14 @@
 	return 0;
 }
 
-int KyraEngine::c1_setCharactersCurrentFrame(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCharactersCurrentFrame(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setCharactersCurrentFrame(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCharactersCurrentFrame(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	_characterList[stackPos(0)].currentAnimFrame = stackPos(1);
 	return 0;
 }
 
-int KyraEngine::c1_waitForConfirmationMouseClick(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_waitForConfirmationMouseClick(%p) ()", (const void *)script);
+int KyraEngine::o1_waitForConfirmationMouseClick(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_waitForConfirmationMouseClick(%p) ()", (const void *)script);
 	// if (mouseEnabled) {
 	while (!_mousePressFlag) {
 		updateMousePointer();
@@ -1353,40 +1353,40 @@
 	return 0;
 }
 
-int KyraEngine::c1_pageFlip(ScriptState *script) {
-	warning("STUB: c1_pageFlip");
+int KyraEngine::o1_pageFlip(ScriptState *script) {
+	warning("STUB: o1_pageFlip");
 	return 0;
 }
 
-int KyraEngine::c1_setSceneFile(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setSceneFile(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setSceneFile(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setSceneFile(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	setSceneFile(stackPos(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_getItemInMarbleVase(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getItemInMarbleVase(%p) ()", (const void *)script);
+int KyraEngine::o1_getItemInMarbleVase(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getItemInMarbleVase(%p) ()", (const void *)script);
 	return _marbleVaseItem;
 }
 
-int KyraEngine::c1_setItemInMarbleVase(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setItemInMarbleVase(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setItemInMarbleVase(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setItemInMarbleVase(%p) (%d)", (const void *)script, stackPos(0));
 	_marbleVaseItem = stackPos(0);
 	return 0;
 }
 
-int KyraEngine::c1_addItemToInventory(ScriptState *script) {
-	warning("STUB: c1_addItemToInventory");
+int KyraEngine::o1_addItemToInventory(ScriptState *script) {
+	warning("STUB: o1_addItemToInventory");
 	return 0;
 }
 
-int KyraEngine::c1_intPrint(ScriptState *script) {
-	warning("STUB: c1_intPrint");
+int KyraEngine::o1_intPrint(ScriptState *script) {
+	warning("STUB: o1_intPrint");
 	return 0;
 }
 
-int KyraEngine::c1_shakeScreen(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_shakeScreen(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_shakeScreen(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_shakeScreen(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	int waitTicks = stackPos(1);
 	int times = stackPos(0);
 
@@ -1398,60 +1398,60 @@
 	return 0;
 }
 
-int KyraEngine::c1_createAmuletJewel(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_createAmuletJewel(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_createAmuletJewel(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_createAmuletJewel(%p) (%d)", (const void *)script, stackPos(0));
 	seq_createAmuletJewel(stackPos(0), 0, 0, 0);
 	return 0;
 }
 
-int KyraEngine::c1_setSceneAnimCurrXY(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setSceneAnimCurrXY(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_setSceneAnimCurrXY(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setSceneAnimCurrXY(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	_sprites->_anims[stackPos(0)].x = stackPos(1);
 	_sprites->_anims[stackPos(0)].y = stackPos(2);
 	return 0;
 }
 
-int KyraEngine::c1_poisonBrandonAndRemaps(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_poisonBrandonAndRemaps(%p) ()", (const void *)script);
+int KyraEngine::o1_poisonBrandonAndRemaps(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_poisonBrandonAndRemaps(%p) ()", (const void *)script);
 	setBrandonPoisonFlags(1);
 	return 0;
 }
 
-int KyraEngine::c1_fillFlaskWithWater(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_fillFlaskWithWater(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_fillFlaskWithWater(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_fillFlaskWithWater(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	seq_fillFlaskWithWater(stackPos(0), stackPos(1));
 	return 0;
 }
 
-int KyraEngine::c1_getCharactersMovementDelay(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getCharactersMovementDelay(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getCharactersMovementDelay(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getCharactersMovementDelay(%p) (%d)", (const void *)script, stackPos(0));
 	return getTimerDelay(stackPos(0)+5);
 }
 
-int KyraEngine::c1_getBirthstoneGem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getBirthstoneGem(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getBirthstoneGem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getBirthstoneGem(%p) (%d)", (const void *)script, stackPos(0));
 	if (stackPos(0) < 4) {
 		return _birthstoneGemTable[stackPos(0)];
 	}
 	return 0;
 }
 
-int KyraEngine::c1_queryBrandonStatusBit(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_queryBrandonStatusBit(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_queryBrandonStatusBit(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_queryBrandonStatusBit(%p) (%d)", (const void *)script, stackPos(0));
 	if (_brandonStatusBit & stackPos(0)) {
 		return 1;
 	}
 	return 0;
 }
 
-int KyraEngine::c1_playFluteAnimation(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_playFluteAnimation(%p) ()", (const void *)script);
+int KyraEngine::o1_playFluteAnimation(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_playFluteAnimation(%p) ()", (const void *)script);
 	seq_playFluteAnimation();
 	return 0;
 }
 
-int KyraEngine::c1_playWinterScrollSequence(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_playWinterScrollSequence(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_playWinterScrollSequence(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_playWinterScrollSequence(%p) (%d)", (const void *)script, stackPos(0));
 	if (!stackPos(0)) {
 		seq_winterScroll2();
 	} else {
@@ -1460,43 +1460,43 @@
 	return 0;
 }
 
-int KyraEngine::c1_getIdolGem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getIdolGem(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getIdolGem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getIdolGem(%p) (%d)", (const void *)script, stackPos(0));
 	return _idolGemsTable[stackPos(0)];;
 }
 
-int KyraEngine::c1_setIdolGem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setIdolGem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setIdolGem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setIdolGem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	_idolGemsTable[stackPos(0)] = stackPos(1);
 	return 0;
 }
 
-int KyraEngine::c1_totalItemsInScene(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_totalItemsInScene(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_totalItemsInScene(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_totalItemsInScene(%p) (%d)", (const void *)script, stackPos(0));
 	return countItemsInScene(stackPos(0));
 }
 
-int KyraEngine::c1_restoreBrandonsMovementDelay(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_restoreBrandonsMovementDelay(%p) ()", (const void *)script);
+int KyraEngine::o1_restoreBrandonsMovementDelay(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_restoreBrandonsMovementDelay(%p) ()", (const void *)script);
 	setWalkspeed(_configWalkspeed);	
 	return 0;
 }
 
-int KyraEngine::c1_setMousePos(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setMousePos(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setMousePos(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setMousePos(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	_system->warpMouse(stackPos(0), stackPos(1));
 	_mouseX = stackPos(0);
 	_mouseY = stackPos(1);
 	return 0;
 }
 
-int KyraEngine::c1_getMouseState(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getMouseState(%p) ()", (const void *)script);
+int KyraEngine::o1_getMouseState(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getMouseState(%p) ()", (const void *)script);
 	return _mouseState;
 }
 
-int KyraEngine::c1_setEntranceMouseCursorTrack(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setEntranceMouseCursorTrack(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
+int KyraEngine::o1_setEntranceMouseCursorTrack(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setEntranceMouseCursorTrack(%p) (%d, %d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4));
 	_entranceMouseCursorTracks[0] = stackPos(0);
 	_entranceMouseCursorTracks[1] = stackPos(1);
 	_entranceMouseCursorTracks[2] = stackPos(0) + stackPos(2) - 1;
@@ -1505,20 +1505,20 @@
 	return 0;
 }
 
-int KyraEngine::c1_itemAppearsOnGround(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_itemAppearsOnGround(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
+int KyraEngine::o1_itemAppearsOnGround(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_itemAppearsOnGround(%p) (%d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2));
 	processItemDrop(_currentCharacter->sceneId, stackPos(0), stackPos(1), stackPos(2), 2, 0);
 	return 0;
 }
 
-int KyraEngine::c1_setNoDrawShapesFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setNoDrawShapesFlag(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setNoDrawShapesFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setNoDrawShapesFlag(%p) (%d)", (const void *)script, stackPos(0));
 	_animator->_noDrawShapesFlag = stackPos(0);
 	return 0;
 }
 
-int KyraEngine::c1_fadeEntirePalette(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_fadeEntirePalette(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_fadeEntirePalette(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_fadeEntirePalette(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	int cmd = stackPos(0);
 	uint8 *fadePal = 0;
 	if (cmd == 0) {
@@ -1530,7 +1530,7 @@
 		memset(fadePal, 0, sizeof(uint8)*768);
 	} else if (cmd == 1) {
 		//fadePal = _screen->getPalette(3);
-		warning("unimplemented c1_fadeEntirePalette function");
+		warning("unimplemented o1_fadeEntirePalette function");
 		return 0;
 	} else if (cmd == 2) {
 		// HACK
@@ -1543,8 +1543,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_itemOnGroundHere(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_itemOnGroundHere(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_itemOnGroundHere(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_itemOnGroundHere(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	assert(stackPos(0) < _roomTableSize);
 	Room *curRoom = &_roomTable[stackPos(0)];
 	for (int i = 0; i < 12; ++i) {
@@ -1554,19 +1554,19 @@
 	return 0;
 }
 
-int KyraEngine::c1_queryCauldronState(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_queryCauldronState(%p) ()", (const void *)script);
+int KyraEngine::o1_queryCauldronState(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_queryCauldronState(%p) ()", (const void *)script);
 	return _cauldronState;
 }
 
-int KyraEngine::c1_setCauldronState(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCauldronState(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setCauldronState(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCauldronState(%p) (%d)", (const void *)script, stackPos(0));
 	_cauldronState = stackPos(0);
 	return _cauldronState;
 }
 
-int KyraEngine::c1_queryCrystalState(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_queryCrystalState(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_queryCrystalState(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_queryCrystalState(%p) (%d)", (const void *)script, stackPos(0));
 	if (!stackPos(0)) {
 		return _crystalState[0];
 	} else if (stackPos(0) == 1) {
@@ -1575,8 +1575,8 @@
 	return -1;
 }
 
-int KyraEngine::c1_setCrystalState(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setCrystalState(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setCrystalState(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setCrystalState(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	if (!stackPos(0)) {
 		_crystalState[0] = stackPos(1);
 	} else if (stackPos(0) == 1) {
@@ -1585,13 +1585,13 @@
 	return stackPos(1);
 }
 
-int KyraEngine::c1_setPaletteRange(ScriptState *script) {
-	warning("STUB: c1_setPaletteRange");
+int KyraEngine::o1_setPaletteRange(ScriptState *script) {
+	warning("STUB: o1_setPaletteRange");
 	return 0;
 }
 
-int KyraEngine::c1_shrinkBrandonDown(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_shrinkBrandonDown(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_shrinkBrandonDown(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_shrinkBrandonDown(%p) (%d)", (const void *)script, stackPos(0));
 	int delayTime = stackPos(0);
 	checkAmuletAnimFlags();
 	int scaleValue = _scaleTable[_currentCharacter->y1];
@@ -1615,8 +1615,8 @@
 	return 0;
 }
 
-int KyraEngine::c1_growBrandonUp(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_growBrandonUp(%p) ()", (const void *)script);
+int KyraEngine::o1_growBrandonUp(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_growBrandonUp(%p) ()", (const void *)script);
 	int scaleValue = _scaleTable[_currentCharacter->y1];
 	int scale = 0;
 	if (_scaleMode) {
@@ -1636,123 +1636,123 @@
 	return 0;
 }
 
-int KyraEngine::c1_setBrandonScaleXAndY(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setBrandonScaleXAndY(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setBrandonScaleXAndY(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setBrandonScaleXAndY(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	_animator->_brandonScaleX = stackPos(0);
 	_animator->_brandonScaleY = stackPos(1);
 	return 0;
 }
 
-int KyraEngine::c1_resetScaleMode(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_resetScaleMode(%p) ()", (const void *)script);
+int KyraEngine::o1_resetScaleMode(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_resetScaleMode(%p) ()", (const void *)script);
 	_scaleMode = 0;
 	return 0;
 }
 
-int KyraEngine::c1_getScaleDepthTableValue(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getScaleDepthTableValue(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getScaleDepthTableValue(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getScaleDepthTableValue(%p) (%d)", (const void *)script, stackPos(0));
 	assert(stackPos(0) < ARRAYSIZE(_scaleTable));
 	return _scaleTable[stackPos(0)];
 }
 
-int KyraEngine::c1_setScaleDepthTableValue(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setScaleDepthTableValue(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setScaleDepthTableValue(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setScaleDepthTableValue(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	assert(stackPos(0) < ARRAYSIZE(_scaleTable));
 	_scaleTable[stackPos(0)] = stackPos(1);
 	return stackPos(1);
 }
 
-int KyraEngine::c1_message(ScriptState *script) {
+int KyraEngine::o1_message(ScriptState *script) {
 	if (_features & GF_TALKIE) {
-		debugC(3, kDebugLevelScriptFuncs, "c1_message(%p) (%d, '%s', %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2));
+		debugC(3, kDebugLevelScriptFuncs, "o1_message(%p) (%d, '%s', %d)", (const void *)script, stackPos(0), stackPosString(1), stackPos(2));
 		drawSentenceCommand(stackPosString(1), stackPos(2));
 	} else {
-		debugC(3, kDebugLevelScriptFuncs, "c1_message(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
+		debugC(3, kDebugLevelScriptFuncs, "o1_message(%p) ('%s', %d)", (const void *)script, stackPosString(0), stackPos(1));
 		drawSentenceCommand(stackPosString(0), stackPos(1));
 	}
 
 	return 0;
 }
 
-int KyraEngine::c1_checkClickOnNPC(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_checkClickOnNPC(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_checkClickOnNPC(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_checkClickOnNPC(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	return checkForNPCScriptRun(stackPos(0), stackPos(1));
 }
 
-int KyraEngine::c1_getFoyerItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_getFoyerItem(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_getFoyerItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_getFoyerItem(%p) (%d)", (const void *)script, stackPos(0));
 	assert(stackPos(0) < ARRAYSIZE(_foyerItemTable));
 	return _foyerItemTable[stackPos(0)];
 }
 
-int KyraEngine::c1_setFoyerItem(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setFoyerItem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+int KyraEngine::o1_setFoyerItem(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setFoyerItem(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
 	assert(stackPos(0) < ARRAYSIZE(_foyerItemTable));
 	_foyerItemTable[stackPos(0)] = stackPos(1);
 	return stackPos(1);
 }
 
-int KyraEngine::c1_setNoItemDropRegion(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setNoItemDropRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
+int KyraEngine::o1_setNoItemDropRegion(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setNoItemDropRegion(%p) (%d, %d, %d, %d)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	addToNoDropRects(stackPos(0), stackPos(1), stackPos(2), stackPos(3));
 	return 0;
 }
 
-int KyraEngine::c1_walkMalcolmOn(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_walkMalcolmOn(%p) ()", (const void *)script);
+int KyraEngine::o1_walkMalcolmOn(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_walkMalcolmOn(%p) ()", (const void *)script);
 	if (!_malcolmFlag)
 		_malcolmFlag = 1;
 	return 0;
 }
 
-int KyraEngine::c1_passiveProtection(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_passiveProtection(%p) ()", (const void *)script);
+int KyraEngine::o1_passiveProtection(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_passiveProtection(%p) ()", (const void *)script);
 	return 1;
 }
 
-int KyraEngine::c1_setPlayingLoop(ScriptState *script) {
-	warning("STUB: c1_setPlayingLoop");
+int KyraEngine::o1_setPlayingLoop(ScriptState *script) {
+	warning("STUB: o1_setPlayingLoop");
 	return 0;
 }
 
-int KyraEngine::c1_brandonToStoneSequence(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_brandonToStoneSequence(%p) ()", (const void *)script);
+int KyraEngine::o1_brandonToStoneSequence(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_brandonToStoneSequence(%p) ()", (const void *)script);
 	seq_brandonToStone();
 	return 0;
 }
 
-int KyraEngine::c1_brandonHealingSequence(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_brandonHealingSequence(%p) ()", (const void *)script);
+int KyraEngine::o1_brandonHealingSequence(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_brandonHealingSequence(%p) ()", (const void *)script);
 	seq_brandonHealing();
 	return 0;
 }
 
-int KyraEngine::c1_protectCommandLine(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_protectCommandLine(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_protectCommandLine(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_protectCommandLine(%p) (%d)", (const void *)script, stackPos(0));
 	return stackPos(0);
 }
 
-int KyraEngine::c1_pauseMusicSeconds(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_pauseMusicSeconds(%p) ()", (const void *)script);
+int KyraEngine::o1_pauseMusicSeconds(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_pauseMusicSeconds(%p) ()", (const void *)script);
 	// if music disabled
 	//     return
-	c1_pauseSeconds(script);
+	o1_pauseSeconds(script);
 	return 0;
 }
 
-int KyraEngine::c1_resetMaskRegion(ScriptState *script) {
-	warning("STUB: c1_resetMaskRegion");
+int KyraEngine::o1_resetMaskRegion(ScriptState *script) {
+	warning("STUB: o1_resetMaskRegion");
 	return 0;
 }
 
-int KyraEngine::c1_setPaletteChangeFlag(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_setPaletteChangeFlag(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_setPaletteChangeFlag(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_setPaletteChangeFlag(%p) (%d)", (const void *)script, stackPos(0));
 	_paletteChanged = stackPos(0);
 	return _paletteChanged;
 }
 
-int KyraEngine::c1_fillRect(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_fillRect(%p) (%d, %d, %d, %d, %d, 0x%X)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
+int KyraEngine::o1_fillRect(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_fillRect(%p) (%d, %d, %d, %d, %d, 0x%X)", (const void *)script, stackPos(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
 	int videoPageBackup = _screen->_curPage;
 	_screen->_curPage = stackPos(0);
 	_screen->fillRect(stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5));
@@ -1760,20 +1760,20 @@
 	return 0;
 }
 
-int KyraEngine::c1_vocUnload(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_vocUnload(%p) ()", (const void *)script);
+int KyraEngine::o1_vocUnload(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_vocUnload(%p) ()", (const void *)script);
 	// this should unload all voc files (not needed)
 	return 0;
 }
 
-int KyraEngine::c1_vocLoad(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_vocLoad(%p) (%d)", (const void *)script, stackPos(0));
+int KyraEngine::o1_vocLoad(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_vocLoad(%p) (%d)", (const void *)script, stackPos(0));
 	// this should load the specified voc file (not needed)
 	return 0;
 }
 
-int KyraEngine::c1_dummy(ScriptState *script) {
-	debugC(3, kDebugLevelScriptFuncs, "c1_dummy(%p) ()", (const void *)script);
+int KyraEngine::o1_dummy(ScriptState *script) {
+	debugC(3, kDebugLevelScriptFuncs, "o1_dummy(%p) ()", (const void *)script);
 	return 0;
 }
 

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2006-07-27 20:30:51 UTC (rev 23612)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2006-07-27 20:39:52 UTC (rev 23613)
@@ -815,201 +815,201 @@
 void KyraEngine::setupOpcodeTable() {
 	static OpcodeProc opcodeTable[] = {
 		// 0x00
-		Opcode(c1_magicInMouseItem),
-		Opcode(c1_characterSays),
-		Opcode(c1_pauseTicks),
-		Opcode(c1_drawSceneAnimShape),
+		Opcode(o1_magicInMouseItem),
+		Opcode(o1_characterSays),
+		Opcode(o1_pauseTicks),
+		Opcode(o1_drawSceneAnimShape),
 		// 0x04
-		Opcode(c1_queryGameFlag),
-		Opcode(c1_setGameFlag),
-		Opcode(c1_resetGameFlag),
-		Opcode(c1_runNPCScript),
+		Opcode(o1_queryGameFlag),
+		Opcode(o1_setGameFlag),
+		Opcode(o1_resetGameFlag),
+		Opcode(o1_runNPCScript),
 		// 0x08
-		Opcode(c1_setSpecialExitList),
-		Opcode(c1_blockInWalkableRegion),
-		Opcode(c1_blockOutWalkableRegion),
-		Opcode(c1_walkPlayerToPoint),
+		Opcode(o1_setSpecialExitList),
+		Opcode(o1_blockInWalkableRegion),
+		Opcode(o1_blockOutWalkableRegion),
+		Opcode(o1_walkPlayerToPoint),
 		// 0x0c
-		Opcode(c1_dropItemInScene),
-		Opcode(c1_drawAnimShapeIntoScene),
-		Opcode(c1_createMouseItem),
-		Opcode(c1_savePageToDisk),
+		Opcode(o1_dropItemInScene),
+		Opcode(o1_drawAnimShapeIntoScene),
+		Opcode(o1_createMouseItem),
+		Opcode(o1_savePageToDisk),
 		// 0x10
-		Opcode(c1_sceneAnimOn),
-		Opcode(c1_sceneAnimOff),
-		Opcode(c1_getElapsedSeconds),
-		Opcode(c1_mouseIsPointer),
+		Opcode(o1_sceneAnimOn),
+		Opcode(o1_sceneAnimOff),
+		Opcode(o1_getElapsedSeconds),
+		Opcode(o1_mouseIsPointer),
 		// 0x14
-		Opcode(c1_destroyMouseItem),
-		Opcode(c1_runSceneAnimUntilDone),
-		Opcode(c1_fadeSpecialPalette),
-		Opcode(c1_playAdlibSound),
+		Opcode(o1_destroyMouseItem),
+		Opcode(o1_runSceneAnimUntilDone),
+		Opcode(o1_fadeSpecialPalette),
+		Opcode(o1_playAdlibSound),
 		// 0x18
-		Opcode(c1_playAdlibScore),
-		Opcode(c1_phaseInSameScene),
-		Opcode(c1_setScenePhasingFlag),
-		Opcode(c1_resetScenePhasingFlag),
+		Opcode(o1_playAdlibScore),
+		Opcode(o1_phaseInSameScene),
+		Opcode(o1_setScenePhasingFlag),
+		Opcode(o1_resetScenePhasingFlag),
 		// 0x1c
-		Opcode(c1_queryScenePhasingFlag),
-		Opcode(c1_sceneToDirection),
-		Opcode(c1_setBirthstoneGem),
-		Opcode(c1_placeItemInGenericMapScene),
+		Opcode(o1_queryScenePhasingFlag),
+		Opcode(o1_sceneToDirection),
+		Opcode(o1_setBirthstoneGem),
+		Opcode(o1_placeItemInGenericMapScene),
 		// 0x20
-		Opcode(c1_setBrandonStatusBit),
-		Opcode(c1_pauseSeconds),
-		Opcode(c1_getCharactersLocation),
-		Opcode(c1_runNPCSubscript),
+		Opcode(o1_setBrandonStatusBit),
+		Opcode(o1_pauseSeconds),
+		Opcode(o1_getCharactersLocation),
+		Opcode(o1_runNPCSubscript),
 		// 0x24
-		Opcode(c1_magicOutMouseItem),
-		Opcode(c1_internalAnimOn),
-		Opcode(c1_forceBrandonToNormal),
-		Opcode(c1_poisonDeathNow),
+		Opcode(o1_magicOutMouseItem),
+		Opcode(o1_internalAnimOn),
+		Opcode(o1_forceBrandonToNormal),
+		Opcode(o1_poisonDeathNow),
 		// 0x28
-		Opcode(c1_setScaleMode),
-		Opcode(c1_openWSAFile),
-		Opcode(c1_closeWSAFile),
-		Opcode(c1_runWSAFromBeginningToEnd),
+		Opcode(o1_setScaleMode),
+		Opcode(o1_openWSAFile),
+		Opcode(o1_closeWSAFile),
+		Opcode(o1_runWSAFromBeginningToEnd),
 		// 0x2c
-		Opcode(c1_displayWSAFrame),
-		Opcode(c1_enterNewScene),
-		Opcode(c1_setSpecialEnterXAndY),
-		Opcode(c1_runWSAFrames),
+		Opcode(o1_displayWSAFrame),
+		Opcode(o1_enterNewScene),
+		Opcode(o1_setSpecialEnterXAndY),
+		Opcode(o1_runWSAFrames),
 		// 0x30
-		Opcode(c1_popBrandonIntoScene),
-		Opcode(c1_restoreAllObjectBackgrounds),
-		Opcode(c1_setCustomPaletteRange),
-		Opcode(c1_loadPageFromDisk),
+		Opcode(o1_popBrandonIntoScene),
+		Opcode(o1_restoreAllObjectBackgrounds),
+		Opcode(o1_setCustomPaletteRange),
+		Opcode(o1_loadPageFromDisk),
 		// 0x34
-		Opcode(c1_customPrintTalkString),
-		Opcode(c1_restoreCustomPrintBackground),
-		Opcode(c1_hideMouse),
-		Opcode(c1_showMouse),
+		Opcode(o1_customPrintTalkString),
+		Opcode(o1_restoreCustomPrintBackground),
+		Opcode(o1_hideMouse),
+		Opcode(o1_showMouse),
 		// 0x38
-		Opcode(c1_getCharacterX),
-		Opcode(c1_getCharacterY),
-		Opcode(c1_changeCharactersFacing),
-		Opcode(c1_copyWSARegion),
+		Opcode(o1_getCharacterX),
+		Opcode(o1_getCharacterY),
+		Opcode(o1_changeCharactersFacing),
+		Opcode(o1_copyWSARegion),
 		// 0x3c
-		Opcode(c1_printText),
-		Opcode(c1_random),
-		Opcode(c1_loadSoundFile),
-		Opcode(c1_displayWSAFrameOnHidPage),
+		Opcode(o1_printText),
+		Opcode(o1_random),
+		Opcode(o1_loadSoundFile),
+		Opcode(o1_displayWSAFrameOnHidPage),
 		// 0x40
-		Opcode(c1_displayWSASequentialFrames),
-		Opcode(c1_drawCharacterStanding),
-		Opcode(c1_internalAnimOff),
-		Opcode(c1_changeCharactersXAndY),
+		Opcode(o1_displayWSASequentialFrames),
+		Opcode(o1_drawCharacterStanding),
+		Opcode(o1_internalAnimOff),
+		Opcode(o1_changeCharactersXAndY),
 		// 0x44
-		Opcode(c1_clearSceneAnimatorBeacon),
-		Opcode(c1_querySceneAnimatorBeacon),
-		Opcode(c1_refreshSceneAnimator),
-		Opcode(c1_placeItemInOffScene),
+		Opcode(o1_clearSceneAnimatorBeacon),
+		Opcode(o1_querySceneAnimatorBeacon),
+		Opcode(o1_refreshSceneAnimator),
+		Opcode(o1_placeItemInOffScene),
 		// 0x48
-		Opcode(c1_wipeDownMouseItem),
-		Opcode(c1_placeCharacterInOtherScene),
-		Opcode(c1_getKey),
-		Opcode(c1_specificItemInInventory),
+		Opcode(o1_wipeDownMouseItem),
+		Opcode(o1_placeCharacterInOtherScene),
+		Opcode(o1_getKey),
+		Opcode(o1_specificItemInInventory),
 		// 0x4c
-		Opcode(c1_popMobileNPCIntoScene),
-		Opcode(c1_mobileCharacterInScene),
-		Opcode(c1_hideMobileCharacter),
-		Opcode(c1_unhideMobileCharacter),
+		Opcode(o1_popMobileNPCIntoScene),
+		Opcode(o1_mobileCharacterInScene),
+		Opcode(o1_hideMobileCharacter),
+		Opcode(o1_unhideMobileCharacter),
 		// 0x50
-		Opcode(c1_setCharactersLocation),
-		Opcode(c1_walkCharacterToPoint),
-		Opcode(c1_specialEventDisplayBrynnsNote),
-		Opcode(c1_specialEventRemoveBrynnsNote),
+		Opcode(o1_setCharactersLocation),
+		Opcode(o1_walkCharacterToPoint),
+		Opcode(o1_specialEventDisplayBrynnsNote),
+		Opcode(o1_specialEventRemoveBrynnsNote),
 		// 0x54
-		Opcode(c1_setLogicPage),
-		Opcode(c1_fatPrint),
-		Opcode(c1_preserveAllObjectBackgrounds),
-		Opcode(c1_updateSceneAnimations),
+		Opcode(o1_setLogicPage),
+		Opcode(o1_fatPrint),
+		Opcode(o1_preserveAllObjectBackgrounds),
+		Opcode(o1_updateSceneAnimations),
 		// 0x58
-		Opcode(c1_sceneAnimationActive),
-		Opcode(c1_setCharactersMovementDelay),
-		Opcode(c1_getCharactersFacing),
-		Opcode(c1_bkgdScrollSceneAndMasksRight),
+		Opcode(o1_sceneAnimationActive),
+		Opcode(o1_setCharactersMovementDelay),
+		Opcode(o1_getCharactersFacing),
+		Opcode(o1_bkgdScrollSceneAndMasksRight),
 		// 0x5c
-		Opcode(c1_dispelMagicAnimation),
-		Opcode(c1_findBrightestFireberry),
-		Opcode(c1_setFireberryGlowPalette),
-		Opcode(c1_setDeathHandlerFlag),
+		Opcode(o1_dispelMagicAnimation),
+		Opcode(o1_findBrightestFireberry),
+		Opcode(o1_setFireberryGlowPalette),
+		Opcode(o1_setDeathHandlerFlag),
 		// 0x60
-		Opcode(c1_drinkPotionAnimation),
-		Opcode(c1_makeAmuletAppear),
-		Opcode(c1_drawItemShapeIntoScene),
-		Opcode(c1_setCharactersCurrentFrame),
+		Opcode(o1_drinkPotionAnimation),
+		Opcode(o1_makeAmuletAppear),
+		Opcode(o1_drawItemShapeIntoScene),
+		Opcode(o1_setCharactersCurrentFrame),
 		// 0x64
-		Opcode(c1_waitForConfirmationMouseClick),
-		Opcode(c1_pageFlip),
-		Opcode(c1_setSceneFile),
-		Opcode(c1_getItemInMarbleVase),
+		Opcode(o1_waitForConfirmationMouseClick),
+		Opcode(o1_pageFlip),
+		Opcode(o1_setSceneFile),
+		Opcode(o1_getItemInMarbleVase),
 		// 0x68
-		Opcode(c1_setItemInMarbleVase),
-		Opcode(c1_addItemToInventory),
-		Opcode(c1_intPrint),
-		Opcode(c1_shakeScreen),
+		Opcode(o1_setItemInMarbleVase),
+		Opcode(o1_addItemToInventory),
+		Opcode(o1_intPrint),
+		Opcode(o1_shakeScreen),
 		// 0x6c
-		Opcode(c1_createAmuletJewel),
-		Opcode(c1_setSceneAnimCurrXY),
-		Opcode(c1_poisonBrandonAndRemaps),
-		Opcode(c1_fillFlaskWithWater),
+		Opcode(o1_createAmuletJewel),
+		Opcode(o1_setSceneAnimCurrXY),
+		Opcode(o1_poisonBrandonAndRemaps),
+		Opcode(o1_fillFlaskWithWater),
 		// 0x70
-		Opcode(c1_getCharactersMovementDelay),
-		Opcode(c1_getBirthstoneGem),
-		Opcode(c1_queryBrandonStatusBit),
-		Opcode(c1_playFluteAnimation),
+		Opcode(o1_getCharactersMovementDelay),
+		Opcode(o1_getBirthstoneGem),
+		Opcode(o1_queryBrandonStatusBit),
+		Opcode(o1_playFluteAnimation),
 		// 0x74
-		Opcode(c1_playWinterScrollSequence),
-		Opcode(c1_getIdolGem),
-		Opcode(c1_setIdolGem),
-		Opcode(c1_totalItemsInScene),
+		Opcode(o1_playWinterScrollSequence),
+		Opcode(o1_getIdolGem),
+		Opcode(o1_setIdolGem),
+		Opcode(o1_totalItemsInScene),
 		// 0x78
-		Opcode(c1_restoreBrandonsMovementDelay),
-		Opcode(c1_setMousePos),
-		Opcode(c1_getMouseState),
-		Opcode(c1_setEntranceMouseCursorTrack),
+		Opcode(o1_restoreBrandonsMovementDelay),
+		Opcode(o1_setMousePos),
+		Opcode(o1_getMouseState),
+		Opcode(o1_setEntranceMouseCursorTrack),
 		// 0x7c
-		Opcode(c1_itemAppearsOnGround),
-		Opcode(c1_setNoDrawShapesFlag),
-		Opcode(c1_fadeEntirePalette),
-		Opcode(c1_itemOnGroundHere),
+		Opcode(o1_itemAppearsOnGround),
+		Opcode(o1_setNoDrawShapesFlag),
+		Opcode(o1_fadeEntirePalette),
+		Opcode(o1_itemOnGroundHere),
 		// 0x80
-		Opcode(c1_queryCauldronState),
-		Opcode(c1_setCauldronState),
-		Opcode(c1_queryCrystalState),
-		Opcode(c1_setCrystalState),
+		Opcode(o1_queryCauldronState),
+		Opcode(o1_setCauldronState),
+		Opcode(o1_queryCrystalState),
+		Opcode(o1_setCrystalState),
 		// 0x84
-		Opcode(c1_setPaletteRange),
-		Opcode(c1_shrinkBrandonDown),
-		Opcode(c1_growBrandonUp),
-		Opcode(c1_setBrandonScaleXAndY),
+		Opcode(o1_setPaletteRange),
+		Opcode(o1_shrinkBrandonDown),
+		Opcode(o1_growBrandonUp),
+		Opcode(o1_setBrandonScaleXAndY),
 		// 0x88
-		Opcode(c1_resetScaleMode),
-		Opcode(c1_getScaleDepthTableValue),
-		Opcode(c1_setScaleDepthTableValue),
-		Opcode(c1_message),
+		Opcode(o1_resetScaleMode),
+		Opcode(o1_getScaleDepthTableValue),
+		Opcode(o1_setScaleDepthTableValue),
+		Opcode(o1_message),
 		// 0x8c
-		Opcode(c1_checkClickOnNPC),
-		Opcode(c1_getFoyerItem),
-		Opcode(c1_setFoyerItem),
-		Opcode(c1_setNoItemDropRegion),
+		Opcode(o1_checkClickOnNPC),
+		Opcode(o1_getFoyerItem),
+		Opcode(o1_setFoyerItem),
+		Opcode(o1_setNoItemDropRegion),
 		// 0x90
-		Opcode(c1_walkMalcolmOn),
-		Opcode(c1_passiveProtection),
-		Opcode(c1_setPlayingLoop),
-		Opcode(c1_brandonToStoneSequence),
+		Opcode(o1_walkMalcolmOn),
+		Opcode(o1_passiveProtection),
+		Opcode(o1_setPlayingLoop),
+		Opcode(o1_brandonToStoneSequence),
 		// 0x94
-		Opcode(c1_brandonHealingSequence),
-		Opcode(c1_protectCommandLine),
-		Opcode(c1_pauseMusicSeconds),
-		Opcode(c1_resetMaskRegion),
+		Opcode(o1_brandonHealingSequence),
+		Opcode(o1_protectCommandLine),
+		Opcode(o1_pauseMusicSeconds),
+		Opcode(o1_resetMaskRegion),
 		// 0x98
-		Opcode(c1_setPaletteChangeFlag),
-		Opcode(c1_fillRect),
-		Opcode(c1_vocUnload),
-		Opcode(c1_vocLoad),
-		Opcode(c1_dummy)
+		Opcode(o1_setPaletteChangeFlag),
+		Opcode(o1_fillRect),
+		Opcode(o1_vocUnload),
+		Opcode(o1_vocLoad),
+		Opcode(o1_dummy)
 	};
 	
 	_opcodeTable = opcodeTable;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list