aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/bellbot_script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/true_talk/bellbot_script.cpp')
-rw-r--r--engines/titanic/true_talk/bellbot_script.cpp130
1 files changed, 65 insertions, 65 deletions
diff --git a/engines/titanic/true_talk/bellbot_script.cpp b/engines/titanic/true_talk/bellbot_script.cpp
index 9f9b6fa267..c51c918a2e 100644
--- a/engines/titanic/true_talk/bellbot_script.cpp
+++ b/engines/titanic/true_talk/bellbot_script.cpp
@@ -239,11 +239,11 @@ int BellbotScript::process(const TTroomScript *roomScript, const TTsentence *sen
if (processEntries(&_entries, _entryCount, roomScript, sentence) == 2)
return 2;
- if ((sentence->_field2C == 4 && sentence->localWord("am") && sentence->localWord("i"))
+ if ((sentence->_category == 4 && sentence->localWord("am") && sentence->localWord("i"))
|| (sentence->localWord("are") && sentence->localWord("we"))
- || (sentence->_field2C == 3 && sentence->localWord("room")
+ || (sentence->_category == 3 && sentence->localWord("room")
&& sentence->localWord("we") && sentence->localWord("in"))
- || (sentence->_field2C == 3 && sentence->localWord("rom")
+ || (sentence->_category == 3 && sentence->localWord("rom")
&& sentence->localWord("is") && sentence->localWord("this"))
) {
uint id = getRangeValue(getRoomDialogueId(roomScript));
@@ -795,22 +795,22 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
bool applyFlag = false, stateFlag = true;
switch (getValue(23)) {
case 1:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200818));
applyFlag = true;
}
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200817));
applyFlag = true;
}
break;
case 2:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200835));
addResponse(getDialogueId(200830));
applyFlag = true;
- } else if (sentence->_field2C == 12) {
+ } else if (sentence->_category == 12) {
addResponse(getDialogueId(200834));
addResponse(getDialogueId(200830));
applyFlag = true;
@@ -818,7 +818,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 3:
- if (sentence->_field2C >= 11 && sentence->_field2C <= 13) {
+ if (sentence->_category >= 11 && sentence->_category <= 13) {
addResponse(getDialogueId(200831));
addResponse(getDialogueId(200833));
applyFlag = true;
@@ -826,36 +826,36 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 4:
- if (sentence->_field2C == 11) {
+ if (sentence->_category == 11) {
addResponse(getDialogueId(200872));
applyFlag = true;
}
- if (sentence->_field2C == 12 || sentence->_field2C == 13) {
+ if (sentence->_category == 12 || sentence->_category == 13) {
addResponse(getDialogueId(200873));
applyFlag = true;
}
break;
case 5:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200492));
applyFlag = true;
}
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200491));
applyFlag = true;
}
break;
case 6:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200496));
applyResponse();
setState(0);
CTrueTalkManager::setFlags(23, 7);
return 2;
}
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200127));
applyFlag = true;
}
@@ -880,7 +880,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 10:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200317));
applyResponse();
setState(0);
@@ -888,14 +888,14 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
return 2;
}
- addResponse(getDialogueId(sentence->_field2C == 12 ? 200316 : 200315));
+ addResponse(getDialogueId(sentence->_category == 12 ? 200316 : 200315));
applyFlag = true;
break;
case 11:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200055));
- } else if (sentence->_field2C == 12) {
+ } else if (sentence->_category == 12) {
addResponse(getDialogueId(200318));
} else {
addResponse(getDialogueId(200315));
@@ -905,30 +905,30 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 12:
- if (sentence->_field2C == 6) {
+ if (sentence->_category == 6) {
addResponse(getDialogueId(200259));
applyFlag = true;
}
break;
case 13:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200207));
applyFlag = true;
- } else if (sentence->_field2C == 12) {
+ } else if (sentence->_category == 12) {
addResponse(getDialogueId(200206));
applyFlag = true;
}
break;
case 14:
- if (sentence->_field2C == 6) {
+ if (sentence->_category == 6) {
addResponse(getDialogueId(200349));
applyFlag = true;
}
case 15:
- if (sentence->_field2C == 6) {
+ if (sentence->_category == 6) {
addResponse(getDialogueId(200130));
applyResponse();
setState(0);
@@ -945,7 +945,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 17:
- if ((sentence->_field2C == 3 && sentence->localWord("code"))
+ if ((sentence->_category == 3 && sentence->localWord("code"))
|| (sentence->localWord("which") && sentence->localWord("is"))
|| sentence->localWord("remember")
|| sentence->localWord("know")
@@ -957,7 +957,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 19:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200223));
applyFlag = true;
}
@@ -1042,12 +1042,12 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 31:
- addResponse(getDialogueId(sentence->_field2C == 11 ? 200810 : 200811));
+ addResponse(getDialogueId(sentence->_category == 11 ? 200810 : 200811));
applyFlag = true;
break;
case 32:
- addResponse(getDialogueId(sentence->_field2C == 11 ? 200810 : 200812));
+ addResponse(getDialogueId(sentence->_category == 11 ? 200810 : 200812));
applyFlag = true;
break;
@@ -1062,7 +1062,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 35:
- if (sentence->_field2C == 3 && sentence->localWord("it")
+ if (sentence->_category == 3 && sentence->localWord("it")
&& (sentence->localWord("for") || sentence->localWord("do"))) {
addResponse(getDialogueId(200768));
applyFlag = true;
@@ -1070,7 +1070,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 36:
- if (sentence->_field2C == 11) {
+ if (sentence->_category == 11) {
CTrueTalkManager::triggerAction(14, 0);
addResponse(getDialogueId(200761));
applyFlag = true;
@@ -1083,14 +1083,14 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 38:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200631));
applyFlag = true;
}
break;
case 39:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200632));
stateFlag = false;
} else {
@@ -1124,7 +1124,7 @@ int BellbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
break;
case 43:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200643));
applyFlag = true;
}
@@ -1157,7 +1157,7 @@ case44:
goto case44;
case 47:
- if (sentence->_field2C == 12)
+ if (sentence->_category == 12)
addResponse(getDialogueId(200368));
addResponse(getDialogueId(200366));
applyFlag = true;
@@ -1177,7 +1177,7 @@ case44:
break;
case 49:
- if (sentence->_field2C >= 11 && sentence->_field2C <= 13) {
+ if (sentence->_category >= 11 && sentence->_category <= 13) {
addResponse(getDialogueId(200407));
applyFlag = true;
stateFlag = false;
@@ -1185,7 +1185,7 @@ case44:
break;
case 50:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200408));
stateFlag = false;
} else {
@@ -1204,24 +1204,24 @@ case44:
break;
case 52:
- if (sentence->_field2C >= 11 && sentence->_field2C <= 13) {
+ if (sentence->_category >= 11 && sentence->_category <= 13) {
addResponse(getDialogueId(200872));
applyFlag = true;
}
break;
case 53:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200525));
applyFlag = true;
- } else if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ } else if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200526));
applyFlag = true;
}
break;
case 54:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200095));
applyFlag = true;
stateFlag = false;
@@ -1229,7 +1229,7 @@ case44:
break;
case 55:
- if (sentence->_field2C == 6) {
+ if (sentence->_category == 6) {
addResponse(getDialogueId(200112));
applyFlag = true;
}
@@ -1258,7 +1258,7 @@ case44:
case 58:
if (sentence->localWord("more")
|| (sentence->localWord("go") && sentence->localWord("on"))
- || (sentence->_field2C == 11 && sentence->localWord("really"))) {
+ || (sentence->_category == 11 && sentence->localWord("really"))) {
addResponse(getDialogueId(200650));
applyFlag = true;
stateFlag = false;
@@ -1274,7 +1274,7 @@ case44:
break;
case 60:
- if (sentence->_field2C == 3 && sentence->localWord("they") && sentence->localWord("do")) {
+ if (sentence->_category == 3 && sentence->localWord("they") && sentence->localWord("do")) {
addResponse(getDialogueId(200652));
applyFlag = true;
stateFlag = false;
@@ -1351,7 +1351,7 @@ stateFlag = false;
break;
case 70:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(201012));
applyFlag = true;
stateFlag = false;
@@ -1366,10 +1366,10 @@ stateFlag = false;
break;
case 72:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(200921));
applyFlag = true;
- } else if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ } else if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(200920));
applyFlag = true;
}
@@ -1384,7 +1384,7 @@ stateFlag = false;
break;
case 74:
- if (sentence->_field2C == 6) {
+ if (sentence->_category == 6) {
addResponse(getDialogueId(201022));
applyFlag = true;
stateFlag = false;
@@ -1392,7 +1392,7 @@ stateFlag = false;
break;
case 75:
- if (sentence->_field2C == 3) {
+ if (sentence->_category == 3) {
if (sentence->localWord("that") || sentence->localWord("worb")) {
addResponse(getDialogueId(201802));
applyFlag = true;
@@ -1401,7 +1401,7 @@ stateFlag = false;
break;
case 76:
- if (sentence->_field2C == 2 && (sentence->localWord("that") || sentence->localWord("gat"))) {
+ if (sentence->_category == 2 && (sentence->localWord("that") || sentence->localWord("gat"))) {
addResponse(getDialogueId(201034));
applyFlag = true;
stateFlag = false;
@@ -1409,7 +1409,7 @@ stateFlag = false;
break;
case 77:
- if (sentence->_field2C == 4 || sentence->_field2C == 3) {
+ if (sentence->_category == 4 || sentence->_category == 3) {
if (sentence->localWord("that") || sentence->localWord("blerontis")) {
addResponse(getDialogueId(201035));
applyFlag = true;
@@ -1418,11 +1418,11 @@ stateFlag = false;
break;
case 78:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(201034));
applyFlag = true;
stateFlag = false;
- } else if (sentence->_field2C == 11) {
+ } else if (sentence->_category == 11) {
addResponse(getDialogueId(201040));
applyFlag = true;
} else if ((sentence->localWord("not") && sentence->localWord("remember"))
@@ -1438,12 +1438,12 @@ stateFlag = false;
break;
case 79:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(201052));
CTrueTalkManager::triggerAction(14, 0);
applyFlag = true;
stateFlag = false;
- } else if (sentence->_field2C == 12) {
+ } else if (sentence->_category == 12) {
addResponse(getDialogueId(202119));
addResponse(getDialogueId(200256));
applyFlag = true;
@@ -1454,7 +1454,7 @@ stateFlag = false;
if ((!sentence->localWord("what") && sentence->localWord("how"))
|| sentence->localWord("about")
|| sentence->localWord("you")) {
- if (sentence->_field2C != 3 && sentence->_field2C != 4 && sentence->_field2C != 7) {
+ if (sentence->_category != 3 && sentence->_category != 4 && sentence->_category != 7) {
addResponse(getDialogueId(201694));
applyFlag = true;
stateFlag = false;
@@ -1477,7 +1477,7 @@ stateFlag = false;
break;
case 82:
- if ((sentence->_field2C == 3 && sentence->localWord("mean"))
+ if ((sentence->_category == 3 && sentence->localWord("mean"))
|| sentence->localWord("surf")
|| (sentence->localWord("what") && sentence->localWord("talk")
&& sentence->localWord("about"))) {
@@ -1488,14 +1488,14 @@ stateFlag = false;
break;
case 83:
- if (sentence->_field2C != 3 && sentence->_field2C != 4 && sentence->_field2C != 7) {
+ if (sentence->_category != 3 && sentence->_category != 4 && sentence->_category != 7) {
addResponse(getDialogueId(201083));
applyFlag = true;
}
break;
case 84:
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(202119));
switch (getValue(1)) {
@@ -1511,7 +1511,7 @@ stateFlag = false;
default:
break;
}
- } else if (sentence->_field2C == 11) {
+ } else if (sentence->_category == 11) {
addResponse(getDialogueId(201060));
addResponse(getDialogueId(201079));
applyFlag = true;
@@ -1520,22 +1520,22 @@ stateFlag = false;
break;
case 85:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(201814));
applyFlag = true;
}
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(201813));
applyFlag = true;
}
break;
case 86:
- if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ if (sentence->_category == 11 || sentence->_category == 13) {
addResponse(getDialogueId(202109));
applyFlag = true;
}
- if (sentence->_field2C == 12) {
+ if (sentence->_category == 12) {
addResponse(getDialogueId(202108));
applyFlag = true;
}
@@ -1548,14 +1548,14 @@ stateFlag = false;
break;
case 88:
- if (sentence->_field2C == 6 || sentence->contains("upside down")) {
+ if (sentence->_category == 6 || sentence->contains("upside down")) {
addResponse(getDialogueId(202142));
applyFlag = true;
}
break;
case 89:
- if (sentence->_field2C == 2) {
+ if (sentence->_category == 2) {
addResponse(getDialogueId(200739));
applyFlag = true;
stateFlag = false;
@@ -1710,7 +1710,7 @@ bool BellbotScript::checkCommonWords(const TTroomScript *roomScript, const TTsen
if (!roomScript || !sentence)
return 0;
CTrueTalkManager::setFlags(23, 0);
- if (sentence->_field2C != 4)
+ if (sentence->_category != 4)
return 0;
if (sentence->localWord("garage")) {