/* 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 3 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, see = -1) { ws_walk(_G(my_walker), 115, 350, nullptr, 2, 9); } else if (lookFlag && player_said("SITTING ROOM")) { switch (_G(kernel).trigger) { case -1: ws_walk(_G(my_walker), 115, 350, nullptr, 2, 9); break; default: digi_play("404r09", 1); break; } } else if (lookFlag && _G(walker).ripley_said(SAID)) { // No implementation } else if (lookFlag && player_said(" ")) { switch (_G(kernel).trigger) { case -1: player_set_commands_allowed(false); digi_play("404r07", 1, 255, 2); break; case 2: player_set_commands_allowed(true); break; default: break; } } else if (player_said("journal") && !takeFlag && !lookFlag && !inv_player_has(_G(player).noun)) { if (_G(flags)[kCastleCartoon]) { digi_play("com016", 1); } else if (_G(kernel).trigger == 6) { _G(flags)[kCastleCartoon] = 1; sketchInJournal("com015"); } else { sketchInJournal(""); } } else { return; } _G(player).command_ready = false; } void Room404::conv404a() { const int who = conv_whos_talking(); _currentNode = conv_current_node(); const char *sound = conv_sound_to_play(); if (sound) { if (who <= 0) _val8 = 2101; else if (who == 1) _val6 = 1102; digi_play(sound, 1, 255, 1); } else { conv_resume(); } } } // namespace Rooms } // namespace Riddle } // namespace M4