2017-06-21 05:31:35 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "kingdom/kingdom.h"
|
|
|
|
|
|
|
|
namespace Kingdom {
|
|
|
|
|
|
|
|
void KingdomGame::GPLogic3() {
|
|
|
|
switch(_StatPlay) {
|
2017-06-25 12:35:10 +00:00
|
|
|
case 510:
|
|
|
|
_NodeNum = 51;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
PlayMovie(129);
|
|
|
|
_CurrMap = 10;
|
|
|
|
PlaySound(6);
|
|
|
|
_StatPlay = 511;
|
|
|
|
break;
|
|
|
|
case 512:
|
|
|
|
ProcessMapInput(51);
|
|
|
|
break;
|
|
|
|
case 520:
|
|
|
|
_NodeNum = 52;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
if (word_2D7AE == 0)
|
|
|
|
word_2D7AE = 1;
|
|
|
|
else {
|
|
|
|
_Sound = true;
|
|
|
|
word_2D7AE = false;
|
|
|
|
}
|
|
|
|
PlayMovie(130);
|
|
|
|
_CurrMap = 111;
|
|
|
|
_StatPlay = 521;
|
|
|
|
PlaySound(31);
|
|
|
|
break;
|
|
|
|
case 521:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x404:
|
|
|
|
_StatPlay = 550;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 522;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(52, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-25 10:23:03 +00:00
|
|
|
case 522:
|
|
|
|
ProcessMapInput(52);
|
|
|
|
break;
|
|
|
|
case 530:
|
|
|
|
_NodeNum = 53;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
_FstFwd = false;
|
|
|
|
if (_Inventory[7] <= 0 && _Wizard)
|
|
|
|
_TSIconOnly = false;
|
|
|
|
else {
|
|
|
|
_FrameStop = 24;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
}
|
|
|
|
_Eye = false;
|
|
|
|
PlayMovie(70);
|
|
|
|
_CurrMap = 99;
|
|
|
|
PlaySound(8);
|
|
|
|
_StatPlay = 531;
|
|
|
|
break;
|
2017-06-25 12:35:10 +00:00
|
|
|
case 531:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x428:
|
|
|
|
if (word_2D7B0 == 0) {
|
|
|
|
PlayMovie(71);
|
|
|
|
InventoryAdd(14);
|
|
|
|
InventoryDel(0);
|
|
|
|
_TSIconOnly = true;
|
|
|
|
PlaySound(25);
|
|
|
|
}
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_FstFwd = false;
|
|
|
|
if (_Inventory[7] > 0 && _PMovie == 70)
|
|
|
|
_FrameStop = 24;
|
|
|
|
if (!_Wizard && _PMovie == 70)
|
|
|
|
_FrameStop = 24;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_NodeNum = 56;
|
|
|
|
_UserInput = 0;
|
|
|
|
_FrameStop = 50;
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(135);
|
|
|
|
_CurrMap = 106;
|
|
|
|
word_2D7B6 = 1;
|
|
|
|
PlaySound(8);
|
|
|
|
_TSIconOnly = true;
|
|
|
|
_StatPlay = 561;
|
|
|
|
break;
|
|
|
|
case 0x452:
|
|
|
|
_StatPlay = 630;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 540:
|
|
|
|
_NodeNum = 54;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
if (!_Wizard) {
|
|
|
|
_Sound = true;
|
|
|
|
_CurrMap = 55;
|
|
|
|
} else {
|
|
|
|
if (!word_2D7B2)
|
|
|
|
word_2D7B2 = 1;
|
|
|
|
else {
|
|
|
|
_Sound = true;
|
|
|
|
word_2D7B2 = 0;
|
|
|
|
}
|
|
|
|
_CurrMap = 112;
|
|
|
|
}
|
|
|
|
|
|
|
|
PlayMovie(132);
|
|
|
|
ShowPic(432);
|
|
|
|
_StatPlay = 541;
|
|
|
|
PlaySound(22);
|
|
|
|
break;
|
|
|
|
case 541:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x404:
|
|
|
|
_StatPlay = 550;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 542;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(54, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
ShowPic(432);
|
|
|
|
break;
|
|
|
|
case 0x453:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(131);
|
|
|
|
PlaySound(32);
|
|
|
|
FShowPic(432);
|
|
|
|
// Useless, but present in the original
|
|
|
|
// _CurrMap = 10;
|
|
|
|
_CurrMap = 55;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 542:
|
|
|
|
ProcessMapInput(54);
|
|
|
|
break;
|
|
|
|
case 550:
|
|
|
|
_NodeNum = 55;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
PlayMovie(133);
|
|
|
|
if (word_2D7B4 != 9)
|
|
|
|
word_2D7B4 = 0;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
_CurrMap = 104;
|
|
|
|
_StatPlay = 551;
|
|
|
|
PlaySound(8);
|
|
|
|
break;
|
|
|
|
case 551:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
_ATimer = 0;
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(134);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x42C:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (word_2D7B4 == 1) {
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(183);
|
|
|
|
FShowPic(433);
|
|
|
|
PlaySound(8);
|
|
|
|
word_2D7B4 = 9;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
|
|
|
if (word_2D7B4 == 1) {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(134);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
} else {
|
|
|
|
_StatPlay = 552;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(55, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_ATimer = 0;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
if (_PMovie == 183)
|
|
|
|
FShowPic(433);
|
|
|
|
break;
|
|
|
|
case 0x452:
|
|
|
|
_ATimer = 0;
|
|
|
|
switch(word_2D7B4) {
|
|
|
|
case 0:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(69);
|
|
|
|
_TSIconOnly = false;
|
|
|
|
word_2D7B4 = 1;
|
|
|
|
SetATimer();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(134);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
_StatPlay = 560;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-24 22:34:49 +00:00
|
|
|
case 552:
|
|
|
|
ProcessMapInput(55);
|
|
|
|
if (!word_2D7B4 && _StatPlay == 560) {
|
|
|
|
_StatPlay = 551;
|
|
|
|
_UserInput = 0x190;
|
|
|
|
_LoopFlag = true;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-25 09:40:59 +00:00
|
|
|
case 560:
|
|
|
|
_NodeNum = 56;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
if (_Wizard) {
|
|
|
|
_FrameStop = 50;
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(135);
|
|
|
|
ShowPic(435);
|
|
|
|
word_2D7B6 = 1;
|
|
|
|
PlaySound(8);
|
|
|
|
_StatPlay = 561;
|
|
|
|
_CurrMap = 106;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
} else {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(135);
|
|
|
|
_CurrMap = 10;
|
|
|
|
SetATimer();
|
|
|
|
word_2D7B6 = 0;
|
|
|
|
_StatPlay = 561;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 561:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
_ATimer = 0;
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(136);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (!word_2D7B6) {
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
_UserInput = 753;
|
|
|
|
_LoopFlag = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x42C:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (!word_2D7B6) {
|
|
|
|
_FstFwd = false;
|
|
|
|
_Replay = true;
|
|
|
|
PlayMovie(138);
|
|
|
|
EnAll();
|
|
|
|
PlaySound(8);
|
|
|
|
word_2D7B6 = 1;
|
|
|
|
InventoryDel(4);
|
|
|
|
word_2D772 = 0;
|
|
|
|
_CurrMap = 88;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x438:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (!word_2D7B6) {
|
|
|
|
EnAll();
|
|
|
|
_FstFwd = false;
|
|
|
|
_Replay = true;
|
|
|
|
PlayMovie(137);
|
|
|
|
EnAll();
|
|
|
|
PlaySound(8);
|
|
|
|
word_2D7B6 = 1;
|
|
|
|
_CurrMap = 106;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 562;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(56, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_FstFwd = false;
|
|
|
|
if (_PMovie == 135 && word_2D7B6) {
|
|
|
|
_FrameStop = 50;
|
|
|
|
PlayMovie(135);
|
|
|
|
} else if (word_2D7B6)
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
else {
|
|
|
|
_UserInput = 753;
|
|
|
|
_ATimer = 0;
|
|
|
|
_LoopFlag = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 530;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
_StatPlay = 620;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x452:
|
|
|
|
_StatPlay = 550;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 562:
|
|
|
|
ProcessMapInput(56);
|
|
|
|
break;
|
|
|
|
case 570:
|
|
|
|
if (word_2D7B8) {
|
|
|
|
if (_RtnNode != 34)
|
|
|
|
_Sound = true;
|
|
|
|
_NodeNum = 57;
|
|
|
|
DrawLocation();
|
|
|
|
word_2D7B8 = 0;
|
|
|
|
_UserInput = 0;
|
|
|
|
PlayMovie(139);
|
|
|
|
PlaySound(27);
|
|
|
|
_CurrMap = 10;
|
|
|
|
_StatPlay = 571;
|
|
|
|
} else {
|
|
|
|
_StatPlay = 740;
|
|
|
|
_LoopFlag = true;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 571:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 572;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(57, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 572:
|
|
|
|
ProcessMapInput(57);
|
|
|
|
break;
|
|
|
|
case 580:
|
|
|
|
_NodeNum = 58;
|
|
|
|
DrawLocation();
|
|
|
|
_IconsClosed = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
switch(word_2D7BA) {
|
|
|
|
case 0:
|
|
|
|
_Sound = true;
|
|
|
|
PlayMovie(140);
|
|
|
|
_CurrMap = 113;
|
|
|
|
word_2D7BA = 1;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
PlayMovie(140);
|
|
|
|
_CurrMap = 113;
|
|
|
|
word_2D7BA = 0;
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
_TSIconOnly = true;
|
|
|
|
PlayMovie(143);
|
|
|
|
_CurrMap = 10;
|
|
|
|
word_2D7BA = 9;
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
_TSIconOnly = true;
|
|
|
|
_Sound = true;
|
|
|
|
PlayMovie(143);
|
|
|
|
_CurrMap = 10;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
PlaySound(27);
|
|
|
|
_StatPlay = 581;
|
|
|
|
break;
|
|
|
|
case 581:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x430:
|
|
|
|
PlayMovie(141);
|
|
|
|
word_2D7BA = 8;
|
|
|
|
InventoryAdd(13);
|
|
|
|
_TSIconOnly = true;
|
|
|
|
_CurrMap = 10;
|
|
|
|
PlaySound(30);
|
|
|
|
// No break on purpose
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
if (word_2D7BA < 8) {
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
}
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x435:
|
|
|
|
if (word_2D7BA >= 8)
|
|
|
|
DisplayIcon(143);
|
|
|
|
else {
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(142);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
}
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 582;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(58, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-24 22:34:49 +00:00
|
|
|
case 582:
|
|
|
|
ProcessMapInput(58);
|
|
|
|
break;
|
2017-06-25 10:06:03 +00:00
|
|
|
case 590:
|
|
|
|
_NodeNum = 59;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
if (word_2D7BC == 0)
|
|
|
|
word_2D7BC = 1;
|
|
|
|
else {
|
|
|
|
_Sound = true;
|
|
|
|
word_2D7BC = 0;
|
|
|
|
}
|
|
|
|
PlayMovie(144);
|
|
|
|
ShowPic(144);
|
|
|
|
_CurrMap = 114;
|
|
|
|
PlaySound(21);
|
|
|
|
_StatPlay = 591;
|
|
|
|
break;
|
2017-06-25 10:23:03 +00:00
|
|
|
case 591:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43A:
|
|
|
|
_StatPlay = 592;
|
|
|
|
_Zoom = 2;
|
|
|
|
ProcessMap(59, _Zoom);
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
ShowPic(444);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 592:
|
|
|
|
ProcessMapInput(59);
|
|
|
|
break;
|
2017-06-25 09:40:59 +00:00
|
|
|
case 600:
|
|
|
|
SetMouse();
|
|
|
|
EraseCursor();
|
|
|
|
FadeToBlack2();
|
|
|
|
ShowPic(106);
|
|
|
|
DrawIcon(4, 0, 12 - _HealthOld);
|
|
|
|
_ASMode = false;
|
|
|
|
_NodeNum = 60;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(145);
|
|
|
|
_StatPlay = 992;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 610:
|
|
|
|
_NodeNum = 61;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
word_2D7D6 = 0;
|
|
|
|
word_2D7D8 = 0;
|
|
|
|
if (word_2D7C0 == 0)
|
|
|
|
word_2D7C0 = 1;
|
|
|
|
else
|
|
|
|
_Sound = true;
|
|
|
|
|
|
|
|
PlayMovie(146);
|
|
|
|
if (word_2D7D0 == 9) {
|
|
|
|
_ItemInhibit = true;
|
|
|
|
_TSIconOnly = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
_CurrMap = 115;
|
|
|
|
PlaySound(36);
|
|
|
|
_StatPlay = 611;
|
|
|
|
_Eye = false;
|
|
|
|
break;
|
2017-06-25 10:06:03 +00:00
|
|
|
case 611:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(148);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x432:
|
|
|
|
PlayMovie(147);
|
|
|
|
_Inventory[5] = -1;
|
|
|
|
word_2D780 = 0;
|
|
|
|
_CurrMap = 116;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x441:
|
|
|
|
// Cascade on purpose
|
|
|
|
case 0x448:
|
|
|
|
_CurrMap = 10;
|
|
|
|
_ItemInhibit = true;
|
|
|
|
_StatPlay = 730;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44B:
|
|
|
|
_CurrMap = 10;
|
|
|
|
_StatPlay = 680;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x451:
|
|
|
|
_CurrMap = 10;
|
|
|
|
_StatPlay = 690;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 620:
|
|
|
|
_NodeNum = 62;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
if (word_2D7C2 == 0) {
|
|
|
|
PlayMovie(149);
|
|
|
|
_CurrMap = 122;
|
|
|
|
} else {
|
|
|
|
_FrameStop = 24;
|
|
|
|
PlayMovie(202);
|
|
|
|
_CurrMap = 121;
|
|
|
|
word_2D7C2 = 9;
|
|
|
|
}
|
|
|
|
_TSIconOnly = true;
|
|
|
|
PlaySound(8);
|
|
|
|
_StatPlay = 621;
|
|
|
|
break;
|
2017-06-21 05:31:35 +00:00
|
|
|
case 621:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x430:
|
|
|
|
PlayMovie(150);
|
|
|
|
InventoryAdd(8);
|
|
|
|
word_2D7C2 = 1;
|
|
|
|
PlaySound(25);
|
|
|
|
_CurrMap = 121;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
switch (word_2D7C2) {
|
|
|
|
case 0:
|
|
|
|
PlayMovie(149);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
PlayMovie(150);
|
|
|
|
break;
|
|
|
|
case 9:
|
|
|
|
_FrameStop = 24;
|
|
|
|
PlayMovie(202);
|
|
|
|
_CurrMap = 121;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_NodeNum = 56;
|
|
|
|
_UserInput = 0;
|
|
|
|
_FrameStop = 50;
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(135);
|
|
|
|
word_2D7B6 = 1;
|
|
|
|
PlaySound(8);
|
|
|
|
_StatPlay = 561;
|
|
|
|
_CurrMap = 106;
|
|
|
|
if (_Inventory[16] < 1 && _Wizard)
|
|
|
|
_CurrMap = 88;
|
|
|
|
break;
|
|
|
|
case 0x452:
|
|
|
|
_StatPlay = 630;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-24 22:07:08 +00:00
|
|
|
case 661:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 700;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
_LoopFlag = true;
|
|
|
|
_StatPlay = (word_2D7CC == 1) ? 650 : 790;
|
|
|
|
break;
|
|
|
|
case 0x447:
|
|
|
|
if (!_Wizard || word_2D7CC)
|
|
|
|
_StatPlay = 650;
|
|
|
|
else
|
|
|
|
_StatPlay = 670;
|
|
|
|
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 670:
|
|
|
|
_NodeNum = 67;
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
word_2D7CC = 1;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(155);
|
|
|
|
_CurrMap = 127;
|
|
|
|
_StatPlay = 671;
|
|
|
|
break;
|
|
|
|
case 671:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 650;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 680:
|
|
|
|
_NodeNum = 68;
|
|
|
|
_UserInput = 0;
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(156);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 690:
|
|
|
|
_ItemInhibit = false;
|
|
|
|
EnAll();
|
|
|
|
if (word_2D7D0 == 9) {
|
|
|
|
_StatPlay = 640;
|
|
|
|
word_2D7D6 = 0;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
} else {
|
|
|
|
_NodeNum = 69;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
_CurrMap = 119;
|
|
|
|
_FrameStop = 40;
|
|
|
|
PlayMovie(157);
|
|
|
|
PlaySound(12);
|
|
|
|
_StatPlay = 691;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 691:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 0x439:
|
|
|
|
if (word_2D7D0 == 9)
|
|
|
|
DisplayIcon(147);
|
|
|
|
else {
|
|
|
|
_FrameStop = 108;
|
|
|
|
PlayMovie(158);
|
|
|
|
_ItemInhibit = false;
|
|
|
|
InventoryAdd(17);
|
|
|
|
word_2D7D0 = 9;
|
|
|
|
PlaySound(23);
|
|
|
|
_UserInput = 0;
|
|
|
|
_CurrMap = 120;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
if (_PMovie == 157)
|
|
|
|
_FrameStop = 40;
|
|
|
|
else if (_PMovie == 158)
|
|
|
|
_FrameStop = 108;
|
|
|
|
|
|
|
|
if (_PMovie == 178) {
|
|
|
|
SaveAS();
|
|
|
|
PlayMovie(178);
|
|
|
|
RestoreAS();
|
|
|
|
} else
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 0x441:
|
|
|
|
_ItemInhibit = false;
|
|
|
|
_StatPlay = 640;
|
|
|
|
word_2D7D6 = 0;
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-21 05:49:21 +00:00
|
|
|
case 701:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 650;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
_StatPlay = 780;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x447:
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-22 06:18:23 +00:00
|
|
|
case 710:
|
|
|
|
_NodeNum = 71;
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
if (_Inventory[8] && _Inventory[14])
|
|
|
|
_Sound = true;
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(165);
|
|
|
|
_CurrMap = 10;
|
|
|
|
SetATimer();
|
|
|
|
_StatPlay = _Wizard ? 712 : 711;
|
|
|
|
break;
|
2017-06-23 05:15:43 +00:00
|
|
|
case 711:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
_Replay = false;
|
|
|
|
PlayMovie(166);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
_Replay = false;
|
|
|
|
_ATimer = 0;
|
|
|
|
PlayMovie(178);
|
|
|
|
PlayMovie(166);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x430:
|
|
|
|
_ATimer = 0;
|
|
|
|
_NodeNum = 0;
|
|
|
|
_IconsClosed = true;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(167);
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(170);
|
|
|
|
PlaySound(25);
|
|
|
|
EndCredits();
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-24 15:54:19 +00:00
|
|
|
case 712:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
_Replay = false;
|
|
|
|
PlayMovie(166);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
_Replay = false;
|
|
|
|
_ATimer = 0;
|
|
|
|
PlayMovie(178);
|
|
|
|
PlayMovie(166);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x430:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (word_2D7D4 != 2) {
|
|
|
|
PlayMovie(57);
|
|
|
|
_StatPlay = 993;
|
|
|
|
} else {
|
|
|
|
_NodeNum = 0;
|
|
|
|
_IconsClosed = true;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(55);
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(184);
|
|
|
|
PlaySound(25);
|
|
|
|
EndCredits();
|
|
|
|
}
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x432:
|
|
|
|
_ATimer = 0;
|
|
|
|
_Replay = false;
|
|
|
|
PlayMovie(168);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x433:
|
|
|
|
if ((_Inventory[8] > 0 && _Inventory[14] > 0) || word_2D7D4 == 2) {
|
|
|
|
_Replay = false;
|
|
|
|
PlayMovie(166);
|
|
|
|
_StatPlay = 993;
|
|
|
|
} else {
|
|
|
|
_ATimer = 0;
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(169);
|
|
|
|
_StatPlay = 580;
|
|
|
|
InventoryDel(11);
|
|
|
|
word_2D7AA = 0;
|
|
|
|
}
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x436:
|
|
|
|
_ATimer = 0;
|
|
|
|
PlaySound(0);
|
|
|
|
PlayMovie(193);
|
|
|
|
ShowPic(128);
|
|
|
|
InventoryDel(14);
|
|
|
|
word_2D7D4 = 2;
|
|
|
|
SetATimer();
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 0x437:
|
|
|
|
_ATimer = 0;
|
|
|
|
if (word_2D7D4 == 2) {
|
|
|
|
_NodeNum = 0;
|
|
|
|
_IconsClosed = true;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(56);
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(184);
|
|
|
|
PlaySound(25);
|
|
|
|
EndCredits();
|
|
|
|
_quit = true;
|
|
|
|
//-- _QuitFlag = true;
|
|
|
|
} else {
|
|
|
|
PlayMovie(58);
|
|
|
|
_StatPlay = 993;
|
|
|
|
}
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-22 06:18:23 +00:00
|
|
|
case 720:
|
|
|
|
_NodeNum = 72;
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
switch (word_2D7D6) {
|
|
|
|
case 0:
|
|
|
|
word_2D7D6 = 1;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
_FrameStop = 24;
|
|
|
|
word_2D7D6 = 2;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_FrameStop = 24;
|
|
|
|
word_2D7D6 = 3;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
PlayMovie(175);
|
|
|
|
_CurrMap = 118;
|
|
|
|
PlaySound(12);
|
|
|
|
_StatPlay = 721;
|
|
|
|
break;
|
2017-06-24 22:07:08 +00:00
|
|
|
case 721:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
if (word_2D7D6 > 1)
|
|
|
|
_FrameStop = 24;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x441:
|
|
|
|
if (word_2D7D6 == 1) {
|
|
|
|
_ItemInhibit = false;
|
|
|
|
_StatPlay = 640;
|
|
|
|
} else
|
|
|
|
_StatPlay = 680;
|
|
|
|
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x448:
|
|
|
|
_StatPlay = (word_2D7D6 == 2) ? 730 : 680;
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44B:
|
|
|
|
_StatPlay = (word_2D7D6 == 1) ? 730 : 680;
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44C:
|
|
|
|
if (word_2D7D6 == 1) {
|
|
|
|
_StatPlay = 730;
|
|
|
|
word_2D7D8 = 3;
|
|
|
|
} else
|
|
|
|
_StatPlay = 680;
|
|
|
|
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-24 15:54:19 +00:00
|
|
|
case 730:
|
|
|
|
_NodeNum = 73;
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
switch(word_2D7D8) {
|
|
|
|
case 0:
|
|
|
|
word_2D7D8 = 1;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
_Sound = true;
|
|
|
|
word_2D7D8 = 2;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
_FrameStop = 23;
|
|
|
|
word_2D7D8 = 3;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_FrameStop = 23;
|
|
|
|
word_2D7D8 = 4;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
PlayMovie(176);
|
|
|
|
_CurrMap = 117;
|
|
|
|
PlaySound(36);
|
|
|
|
_StatPlay = 731;
|
|
|
|
break;
|
2017-06-23 05:15:43 +00:00
|
|
|
case 731:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
if (word_2D7D8 > 2)
|
|
|
|
_FrameStop = 23;
|
2017-06-24 22:34:49 +00:00
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
2017-06-23 05:15:43 +00:00
|
|
|
break;
|
|
|
|
case 0x441:
|
|
|
|
switch (word_2D7D8) {
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
_StatPlay = 720;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
_StatPlay = 720;
|
|
|
|
word_2D7D6 = 1;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_StatPlay = 680;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x448:
|
|
|
|
switch(word_2D7D8) {
|
|
|
|
case 3:
|
|
|
|
_StatPlay = 690;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
_StatPlay = 720;
|
|
|
|
word_2D7D6 = 1;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_StatPlay = 680;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x44B:
|
|
|
|
switch(word_2D7D8) {
|
|
|
|
case 1:
|
|
|
|
_StatPlay = 720;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
case 4:
|
|
|
|
_StatPlay = 720;
|
|
|
|
word_2D7D6 = 1;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_StatPlay= 680;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
_CurrMap = 10;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44C:
|
|
|
|
switch(word_2D7D8) {
|
|
|
|
case 1:
|
|
|
|
case 2:
|
|
|
|
_StatPlay = 720;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
_StatPlay = 720;
|
|
|
|
word_2D7D6 = 1;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
_StatPlay = 680;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-22 05:14:14 +00:00
|
|
|
case 740:
|
|
|
|
_RtnNode = _NodeNum;
|
|
|
|
_NodeNum = 74;
|
|
|
|
DrawLocation();
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(185);
|
|
|
|
_CurrMap = 10;
|
|
|
|
SetATimer();
|
|
|
|
_StatPlay = 741;
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
2017-06-22 06:18:23 +00:00
|
|
|
case 741:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(188);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x428:
|
|
|
|
case 0x429:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
_ATimer = 0;
|
|
|
|
PlayMovie(178);
|
|
|
|
_LoopFlag = true;
|
|
|
|
_UserInput = 753;
|
|
|
|
break;
|
|
|
|
case 0x432:
|
|
|
|
if (word_2D7DA) {
|
|
|
|
_Sound = false;
|
|
|
|
word_2D7DA = false;
|
|
|
|
} else
|
|
|
|
word_2D7DA = true;
|
|
|
|
break;
|
|
|
|
case 0x437:
|
|
|
|
_LoopFlag = true;
|
|
|
|
if (Wound()) {
|
|
|
|
_FrameStop = 88;
|
|
|
|
PlayMovie(187);
|
|
|
|
_StatPlay = 570;
|
|
|
|
word_2D7B8 = 1;
|
|
|
|
} else {
|
|
|
|
_FrameStop = 78;
|
|
|
|
PlayMovie(187);
|
|
|
|
_StatPlay = 993;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 760:
|
|
|
|
_NodeNum = 76;
|
|
|
|
_Eye = false;
|
|
|
|
_UserInput = 0;
|
|
|
|
PlayMovie(189);
|
|
|
|
_CurrMap = 126;
|
|
|
|
PlaySound(21);
|
|
|
|
_StatPlay = 761;
|
|
|
|
break;
|
|
|
|
case 761:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44D:
|
|
|
|
PlayMovie(191);
|
|
|
|
word_2D7CC = 2;
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x44E:
|
|
|
|
PlayMovie(192);
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x458:
|
|
|
|
PlayMovie(190);
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-22 05:14:14 +00:00
|
|
|
case 780:
|
|
|
|
_NodeNum = 78;
|
|
|
|
DrawLocation();
|
|
|
|
_UserInput = 0;
|
|
|
|
_Eye = false;
|
|
|
|
PlayMovie(171);
|
|
|
|
_CurrMap = 124;
|
|
|
|
PlaySound(40);
|
|
|
|
_StatPlay = 781;
|
|
|
|
break;
|
|
|
|
case 781:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x428:
|
|
|
|
case 0x42A:
|
|
|
|
InventoryDel(_UserInput - 0x428);
|
|
|
|
_FrameStop = 64;
|
|
|
|
PlayMovie(173);
|
|
|
|
ShowPic(471);
|
|
|
|
_CurrMap = 124;
|
|
|
|
break;
|
|
|
|
case 0x429:
|
|
|
|
if (_Wizard) {
|
|
|
|
_FrameStop = 64;
|
|
|
|
PlayMovie(173);
|
|
|
|
InventoryDel(1);
|
|
|
|
} else {
|
|
|
|
_FrameStop = 66;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(172);
|
|
|
|
_FstFwd = true;
|
|
|
|
PlayMovie(201);
|
|
|
|
}
|
|
|
|
|
|
|
|
FShowPic(471);
|
|
|
|
_CurrMap = 124;
|
|
|
|
break;
|
|
|
|
case 0x439:
|
|
|
|
_FrameStop = 59;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(174);
|
|
|
|
_FstFwd = true;
|
|
|
|
PlayMovie(201);
|
|
|
|
FShowPic(471);
|
|
|
|
_CurrMap = 124;
|
|
|
|
break;
|
|
|
|
case 0x43E:
|
|
|
|
_Sound = _LastSound;
|
|
|
|
if (_PMovie == 173)
|
|
|
|
_FrameStop = 64;
|
|
|
|
if (_PMovie == 201) {
|
|
|
|
_FrameStop = 59;
|
|
|
|
_FstFwd = false;
|
|
|
|
PlayMovie(174);
|
|
|
|
_FstFwd = true;
|
|
|
|
PlayMovie(201);
|
|
|
|
} else {
|
|
|
|
PlayMovie(_PMovie);
|
|
|
|
}
|
|
|
|
if (_PMovie != 171) {
|
|
|
|
FShowPic(471);
|
|
|
|
_CurrMap = 124;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
_StatPlay = 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
_StatPlay = (word_2D7CC == 1) ? 760 : 660;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 790:
|
|
|
|
_NodeNum = 79;
|
|
|
|
DrawLocation();
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(4);
|
|
|
|
_CurrMap = 8;
|
|
|
|
_StatPlay = 791;
|
|
|
|
SetATimer();
|
|
|
|
_UserInput = 0;
|
|
|
|
break;
|
|
|
|
case 791:
|
|
|
|
switch(_UserInput) {
|
|
|
|
case 0x2F1:
|
|
|
|
DsAll();
|
|
|
|
PlayMovie(204);
|
|
|
|
_StatPlay = 993;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x445:
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(10);
|
|
|
|
_StatPlay = 50;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
case 0x446:
|
|
|
|
EnAll();
|
|
|
|
PlayMovie(10);
|
|
|
|
_StatPlay = 520;
|
|
|
|
_LoopFlag = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if (_UserInput)
|
|
|
|
debug("Skipped UserInput %d(0x%04X) for _StatPlay %d", _UserInput, _UserInput, _StatPlay);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2017-06-21 05:31:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-23 05:15:43 +00:00
|
|
|
void KingdomGame::EndCredits() {
|
|
|
|
debug("STUB: EndCredits");
|
|
|
|
}
|
2017-06-21 05:31:35 +00:00
|
|
|
} // NameSpace
|