[Scummvm-git-logs] scummvm master -> 38667b78fee75b4ae842281fedf3f6ad4f07fdee

neuromancer noreply at scummvm.org
Sat Nov 28 10:47:52 UTC 2026


This automated email contains information about 4 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
1c5994cb44 HOLLYWOOD: RUNAWAY: perfected animation code when picking up some items
9156a4e601 HOLLYWOOD: RUNAWAY: complete the museum safe interaction
1e26246652 HOLLYWOOD: RUNAWAY: animate scripted body turns
38667b78fe HOLLYWOOD: RUNAWAY: fixed some missing sound positions


Commit: 1c5994cb4401fd8660d49a7a90bd14a1bcbfb17c
    https://github.com/scummvm/scummvm/commit/1c5994cb4401fd8660d49a7a90bd14a1bcbfb17c
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-28T11:45:44+01:00

Commit Message:
HOLLYWOOD: RUNAWAY: perfected animation code when picking up some items

Changed paths:
    engines/hollywood/runaway/desert.cpp
    engines/hollywood/runaway/dialogue.cpp
    engines/hollywood/runaway/hospital.cpp
    engines/hollywood/runaway/inventory.cpp
    engines/hollywood/runaway/inventory.h
    engines/hollywood/runaway/museum.cpp
    engines/hollywood/runaway/scene.cpp
    engines/hollywood/runaway/scene.h
    engines/hollywood/runaway/scene2020.cpp
    engines/hollywood/runaway/scene2060.cpp
    engines/hollywood/runaway/scene2080.cpp
    engines/hollywood/runaway/scene4030.cpp
    engines/hollywood/runaway/scene4050.cpp
    engines/hollywood/runaway/scene4060.cpp
    engines/hollywood/runaway/scene4070.cpp
    engines/hollywood/runaway/scene4090.cpp
    engines/hollywood/runaway/scene4100.cpp
    engines/hollywood/runaway/scene5020.cpp
    engines/hollywood/runaway/scene5030.cpp
    engines/hollywood/runaway/scene5030.h
    engines/hollywood/runaway/scene5050.cpp
    engines/hollywood/runaway/scene5060.cpp
    engines/hollywood/runaway/scene5080.cpp
    engines/hollywood/runaway/scene5100.cpp
    engines/hollywood/runaway/scene5110.cpp
    engines/hollywood/runaway/scene5160.cpp
    engines/hollywood/runaway/scene5170.cpp
    engines/hollywood/runaway/scene6080.cpp
    engines/hollywood/runaway/scene6090.cpp
    engines/hollywood/runaway/scene6130.cpp
    engines/hollywood/runaway/scene6180.cpp
    engines/hollywood/runaway/scene6190.cpp
    engines/hollywood/runaway/scene6200.cpp
    engines/hollywood/runaway/scene6210.cpp
    engines/hollywood/runaway/scene6220.cpp
    engines/hollywood/runaway/scene6226.cpp
    engines/hollywood/runaway/scene6240.cpp
    engines/hollywood/runaway/scene6250.cpp
    engines/hollywood/runaway/scene6260.cpp
    engines/hollywood/runaway/scene6280.cpp
    engines/hollywood/runaway/scene6290.cpp
    engines/hollywood/runaway/scene6300.cpp
    engines/hollywood/runaway/scene7010.cpp
    engines/hollywood/runaway/scene7020.cpp
    engines/hollywood/runaway/scene7040.cpp
    engines/hollywood/runaway/scene7050.cpp
    engines/hollywood/runaway/scene8200.cpp
    engines/hollywood/runaway/scene8210.cpp
    engines/hollywood/runaway/scene8240.cpp
    engines/hollywood/runaway/scene8260.cpp
    engines/hollywood/runaway/scene8370.cpp
    engines/hollywood/runaway/scene8380.cpp
    engines/hollywood/runaway/scene8400.cpp
    engines/hollywood/runaway/scene8410.cpp
    engines/hollywood/runaway/ui.cpp
    engines/hollywood/runaway/ui.h


diff --git a/engines/hollywood/runaway/desert.cpp b/engines/hollywood/runaway/desert.cpp
index 2e3adbed63c..c27917f4b96 100644
--- a/engines/hollywood/runaway/desert.cpp
+++ b/engines/hollywood/runaway/desert.cpp
@@ -61,6 +61,8 @@ void RunawayRoomScene::updateDesert(uint elapsed) {
 		return;
 	}
 	updateRoomAnimation();
+	if (presentingPickup())
+		return;
 	updateConversation();
 	advanceCustomGameplayLoop(elapsed);
 	if (_roomAction && _actionFrames.empty() && !speaking() && !_walkPath.active()) {
@@ -68,7 +70,7 @@ void RunawayRoomScene::updateDesert(uint elapsed) {
 		_roomAction = 0;
 		execute(action);
 	}
-	if (_hospitalExit.scene && !speaking() && !_roomAction && !_walkPath.active()) {
+	if (_hospitalExit.scene && !speaking() && !presentingPickup() && !_roomAction && !_walkPath.active()) {
 		_transition = _hospitalExit;
 	}
 }
@@ -92,7 +94,7 @@ void RunawayRoomScene::deferDesertAction(uint16 action) {
 
 void RunawayRoomScene::reviewDesertPlan(byte variation) {
 	_desert.planKnown = 1;
-	_inventory.add(23);
+	pickUp(23);
 	_reviewingDesertPlan = true;
 	say(174, 0, true);
 	if (variation) {
diff --git a/engines/hollywood/runaway/dialogue.cpp b/engines/hollywood/runaway/dialogue.cpp
index 5a6275371f1..2c7fc46b2ee 100644
--- a/engines/hollywood/runaway/dialogue.cpp
+++ b/engines/hollywood/runaway/dialogue.cpp
@@ -111,7 +111,7 @@ void RunawayRoomScene::chooseDialogue(uint choice) {
 }
 
 void RunawayRoomScene::updateConversation() {
-	if (!_conversation || _roomAction || speaking() || !_choices.empty()) {
+	if (!_conversation || _roomAction || speaking() || presentingPickup() || !_choices.empty()) {
 		return;
 	}
 	if (_dialogueIntro) {
diff --git a/engines/hollywood/runaway/hospital.cpp b/engines/hollywood/runaway/hospital.cpp
index 2d16efeecde..fbdd767884e 100644
--- a/engines/hollywood/runaway/hospital.cpp
+++ b/engines/hollywood/runaway/hospital.cpp
@@ -45,7 +45,7 @@ void RunawayRoomScene::updateHospital(uint elapsed) {
 	if (!updateCustomSequence()) {
 		updateRoomAnimation();
 	}
-	if (_sequence.active() || _transition.scene) {
+	if (_sequence.active() || _transition.scene || presentingPickup()) {
 		return;
 	}
 	updateHospitalAudio();
diff --git a/engines/hollywood/runaway/inventory.cpp b/engines/hollywood/runaway/inventory.cpp
index 406e66d6e3b..8c743b01976 100644
--- a/engines/hollywood/runaway/inventory.cpp
+++ b/engines/hollywood/runaway/inventory.cpp
@@ -88,6 +88,7 @@ void RunawayInventory::captureState(RunawaySaveState &state) const {
 void RunawayInventory::restoreState(const RunawaySaveState &state) {
 	assert(state.valid());
 	clearHandling();
+	finishPickup();
 	_chapter = state.chapter();
 	_items.clear();
 	for (uint i = 0; i < state.itemCount; ++i)
@@ -109,6 +110,7 @@ void RunawayInventory::restoreState(const RunawaySaveState &state) {
 
 void RunawayInventory::startChapter(byte chapter) {
 	clearHandling();
+	finishPickup();
 	_chapter = chapter;
 	_items.clear();
 	_selected = _newItem = 0;
@@ -171,6 +173,12 @@ bool RunawayInventory::add(byte item, bool animate) {
 	return true;
 }
 
+void RunawayInventory::beginPickup(byte item, uint16 effect) {
+	assert(!pickingUp());
+	_pickupItem = _newItem = item;
+	_pickupEffect = effect;
+}
+
 void RunawayInventory::remove(byte item) {
 	for (uint i = 0; i < size(); ++i) {
 		if (_items[i] == item) {
diff --git a/engines/hollywood/runaway/inventory.h b/engines/hollywood/runaway/inventory.h
index ffbd8cf0949..326d04e3d6e 100644
--- a/engines/hollywood/runaway/inventory.h
+++ b/engines/hollywood/runaway/inventory.h
@@ -81,6 +81,10 @@ public:
 	void select(byte item) { _selected = contains(item) ? item : 0; }
 	bool isPlan(byte item) const { return _chapter == 3 && item == 23; }
 	byte takeNewItem() { const byte item = _newItem; _newItem = 0; return item; }
+	void beginPickup(byte item, uint16 effect = 0);
+	bool pickingUp() const { return _pickupItem != 0; }
+	uint16 pickupEffect() const { return _pickupEffect; }
+	void finishPickup() { _pickupItem = 0; _pickupEffect = 0; }
 	Common::U32String name(byte item) const;
 	Common::U32String combinationCaption(byte item, byte target) const;
 	static Reply randomReply(Common::RandomSource &random, bool museumDemo = false);
@@ -144,6 +148,8 @@ private:
 	RunawaySaveState::FinaleItems _finale;
 	Common::Array<byte> _items;
 	byte _selected = 0, _newItem = 0, _clothState = 0;
+	byte _pickupItem = 0;
+	uint16 _pickupEffect = 0;
 	byte _water = 0;
 	byte _markerInk = 0, _syringeFilled = 0, _chartWritten = 0, _headWig = 0;
 	Common::Array<HandlingStep> _handlingSteps;
diff --git a/engines/hollywood/runaway/museum.cpp b/engines/hollywood/runaway/museum.cpp
index 5222a5ccf0e..2b4501d8be8 100644
--- a/engines/hollywood/runaway/museum.cpp
+++ b/engines/hollywood/runaway/museum.cpp
@@ -69,7 +69,7 @@ void RunawayRoomScene::leaveMuseumRoom(uint16 scene, Common::Point position, byt
 void RunawayRoomScene::updateMuseum(uint elapsed) {
 	advanceCustomGameplayLoop(elapsed);
 	updateRoomAnimation();
-	if (_sequence.active() || _transition.scene) {
+	if (_sequence.active() || _transition.scene || presentingPickup()) {
 		return;
 	}
 	updateConversation();
@@ -203,9 +203,10 @@ bool RunawayRoomScene::updateMuseumInventory() {
 	const uint16 cue = _roomAction;
 	_roomAction = 0;
 	if (cue == 117) {
-		_inventory.add(12);
+		pickUp(12, cue, 1, true);
+	} else {
+		say(cue, cue == 121 ? 2 : 1, true);
 	}
-	say(cue, cue == 121 ? 2 : 1, true);
 	return true;
 }
 
diff --git a/engines/hollywood/runaway/scene.cpp b/engines/hollywood/runaway/scene.cpp
index c7cdc744f63..6e2d904e941 100644
--- a/engines/hollywood/runaway/scene.cpp
+++ b/engines/hollywood/runaway/scene.cpp
@@ -568,12 +568,53 @@ void RunawayRoomScene::click(Common::Point mouse, RunawayVerb verb, byte item) {
 }
 
 void RunawayRoomScene::showLine() {
+	while (_lineIndex < _lines.size() && _lines[_lineIndex].pickup && !_lines[_lineIndex].animatePickup) {
+		_inventory.add(_lines[_lineIndex].pickup, false);
+		++_lineIndex;
+	}
+	if (_lineIndex == _lines.size()) {
+		_lines.clear();
+		_lineIndex = 0;
+		_caption.clear();
+		return;
+	}
 	const SpeechLine &line = _lines[_lineIndex];
-	_speech.start(line.text, line.sample, line.global, _now, line.color);
+	if (line.pickup)
+		_inventory.beginPickup(line.pickup, line.pickupEffect);
+	else
+		_speech.start(line.text, line.sample, line.global, _now, line.color);
 	_idleHead.reset(_now);
 	_idleBody.reset(_now);
 }
 
+void RunawayRoomScene::pickUp(byte item, uint16 cue, byte variation, bool global, byte before, uint16 effect) {
+	const uint firstLine = _lines.size();
+	if (before != 0xff)
+		say(cue, before, global);
+	if (!_inventory.contains(item)) {
+		SpeechLine line;
+		line.inventory = true;
+		line.pickup = item;
+		line.pickupEffect = effect;
+		_lines.push_back(line);
+		if (_lineIndex == _lines.size() - 1)
+			showLine();
+	}
+	if (cue != 0xffff && variation != 0xff)
+		say(cue, variation, global);
+	for (uint i = firstLine; i < _lines.size(); ++i)
+		_lines[i].inventory = true;
+}
+
+void RunawayRoomScene::addInventoryItem(byte item) {
+	SpeechLine line;
+	line.pickup = item;
+	line.animatePickup = false;
+	_lines.push_back(line);
+	if (_lineIndex == _lines.size() - 1)
+		showLine();
+}
+
 void RunawayRoomScene::say(uint16 cue, byte variation, bool global, byte speaker, byte color) {
 	SceneSpeechCue speech;
 	if (global)
@@ -605,7 +646,7 @@ void RunawayRoomScene::say(const SceneTextStore &text, const SceneSpeechCue &spe
 		if (!line.text.empty())
 			_lines.push_back(line);
 	}
-	if (!speaking() && _lineIndex < _lines.size())
+	if (!speaking() && !_inventory.pickingUp() && _lineIndex < _lines.size())
 		showLine();
 }
 
@@ -650,6 +691,10 @@ void RunawayRoomScene::skipSpeech() {
 	if (!speaking())
 		return;
 	_speech.stop();
+	advanceLine();
+}
+
+void RunawayRoomScene::advanceLine() {
 	if (++_lineIndex < _lines.size()) {
 		showLine();
 	} else {
@@ -964,7 +1009,13 @@ void RunawayRoomScene::update(uint32 now, int scrollDirection, bool inventoryOpe
 	}
 	if (speaking() && _speech.finished(now))
 		skipSpeech();
+	if (_lineIndex < _lines.size() && _lines[_lineIndex].pickup && !_inventory.pickingUp())
+		advanceLine();
 	updateAmbientMusic();
+	if (presentingPickup()) {
+		_actionStarted = now;
+		return;
+	}
 	if (_inventory.handling()) {
 		const RunawayInventory::Reply line = _inventory.updateHandling(now, _audio, speaking());
 		if (line.closeup || line.stage) {
@@ -1014,7 +1065,7 @@ void RunawayRoomScene::updateGameplay(uint32 delta) {
 		return;
 	}
 	updateRoomAnimation();
-	if (_sequence.active() || _transition.scene) {
+	if (_sequence.active() || _transition.scene || presentingPickup()) {
 		return;
 	}
 	updateConversation();
@@ -1023,7 +1074,7 @@ void RunawayRoomScene::updateGameplay(uint32 delta) {
 		_roomAction = 0;
 		execute(action);
 	}
-	if (_hospitalExit.scene && !speaking() && !_roomAction && !_walkPath.active()) {
+	if (_hospitalExit.scene && !speaking() && !presentingPickup() && !_roomAction && !_walkPath.active()) {
 		_transition = _hospitalExit;
 	}
 }
@@ -1064,7 +1115,7 @@ void RunawayRoomScene::leaveRoom(uint16 scene) {
 }
 
 void RunawayRoomScene::updateActor(uint elapsed, int scrollDirection, bool inventoryOpen) {
-	if (inventoryOpen)
+	if (inventoryOpen || presentingPickup())
 		return;
 	if (!shouldUpdateActor()) {
 		_idleHead.reset(_now);
diff --git a/engines/hollywood/runaway/scene.h b/engines/hollywood/runaway/scene.h
index c84b52ec3d6..b96a0d01d6c 100644
--- a/engines/hollywood/runaway/scene.h
+++ b/engines/hollywood/runaway/scene.h
@@ -133,8 +133,8 @@ public:
 	const Common::U32String &committedCaption() const override { return _caption; }
 	const Common::U32String &subtitle() const override;
 	byte subtitleColor() const override { return _sequence.active() ? _sequence.subtitleColor() : _speech.subtitleColor(); }
-	bool busy() const override { return _sequence.active() || _inventory.handling() || _headMovement.active() || _pendingHotspot != 0 || _transition.scene || _hospitalExit.scene || _arrivalFacing != 0xff || _roomAction || _conversation || _reviewingDesertPlan || speaking(); }
-	bool inventoryPresentation() const override { return _reviewingDesertPlan; }
+	bool busy() const override { return _sequence.active() || _inventory.handling() || presentingPickup() || _headMovement.active() || _pendingHotspot != 0 || _transition.scene || _hospitalExit.scene || _arrivalFacing != 0xff || _roomAction || _conversation || _reviewingDesertPlan || speaking(); }
+	bool inventoryPresentation() const override { return _reviewingDesertPlan || presentingPickup(); }
 	byte inventoryFrame() const override;
 	byte inventorySpeechPose() const override { return _lineIndex < _lines.size() ? _lines[_lineIndex].inventoryPose : 0; }
 	bool speaking() const override { return _sequence.active() ? !_sequence.subtitle().empty() : !_speech.subtitle().empty(); }
@@ -230,6 +230,10 @@ protected:
 	void say(uint16 cue, byte variation = 0, bool global = false, byte speaker = 0, byte color = 0);
 	void say(const SceneTextStore &text, const SceneSpeechCue &speech, bool global, byte speaker = 0, byte color = 0);
 	void showLine();
+	void advanceLine();
+	void pickUp(byte item, uint16 cue = 0xffff, byte variation = 0, bool global = false, byte before = 0xff, uint16 effect = 0);
+	void addInventoryItem(byte item);
+	bool presentingPickup() const { return _lineIndex < _lines.size() && _lines[_lineIndex].inventory; }
 	void changeFloor(bool upper, Common::Point position);
 	void updateCamera();
 	void followCamera(Common::Point camera);
@@ -340,10 +344,14 @@ protected:
 	RunawayCamera _cameraFollow;
 	struct SpeechLine {
 		Common::U32String text;
-		uint16 sample;
-		bool global;
-		byte speaker, color;
+		uint16 sample = 0;
+		bool global = false;
+		byte speaker = 0, color = 11;
 		byte inventoryPose = 0;
+		bool inventory = false;
+		byte pickup = 0;
+		bool animatePickup = true;
+		uint16 pickupEffect = 0;
 	};
 	Common::Array<SpeechLine> _lines;
 	// Local animation speaker IDs map to the original font palette.
diff --git a/engines/hollywood/runaway/scene2020.cpp b/engines/hollywood/runaway/scene2020.cpp
index 11129aebe22..970b1a03ecb 100644
--- a/engines/hollywood/runaway/scene2020.cpp
+++ b/engines/hollywood/runaway/scene2020.cpp
@@ -411,23 +411,19 @@ RunawayRoomScene::ActionResult Scene2020::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	case 305: // Take the glass.
 		_hospital.glassTaken = 1;
-		_inventory.add(13);
-		say(62, 0, true);
+		pickUp(13, 62, 0, true);
 		return kBackgroundChanged;
 	case 307: // Take the sleeping pills.
 		_hospital.pillsTaken = 1;
-		_inventory.add(8);
-		say(57, 0, true);
+		pickUp(8, 57, 0, true);
 		return kBackgroundChanged;
 	case 309: // Take the sheet.
 		_hospital.sheetTaken = 1;
-		_inventory.add(7);
-		say(18, _random.getRandomNumber(2), true);
+		pickUp(7, 18, _random.getRandomNumber(2), true);
 		return kBackgroundChanged;
 	case 313: // Take Gina's bag.
 		_hospital.bagTaken = 1;
-		_inventory.add(5);
-		say(9, 1);
+		pickUp(5, 9, 1);
 		return kBackgroundChanged;
 	case 330: // Read the emergency exit map.
 		if (!_hospital.exitMapRead) {
@@ -845,8 +841,7 @@ void Scene2020::finishCustomAnimation(uint16 action) {
 	case 339: // Finish replacing Gina's chart.
 		_hospital.chartReplaced = 1;
 		_inventory.remove(16);
-		_inventory.add(6);
-		say(35);
+		pickUp(6, 35);
 		break;
 	case 351: // Return from peeking through the hallway door.
 		walkTo(Common::Point(313, 532), 4, true);
diff --git a/engines/hollywood/runaway/scene2060.cpp b/engines/hollywood/runaway/scene2060.cpp
index 487f79423c7..c55b855ae5c 100644
--- a/engines/hollywood/runaway/scene2060.cpp
+++ b/engines/hollywood/runaway/scene2060.cpp
@@ -157,14 +157,12 @@ RunawayRoomScene::ActionResult Scene2060::dispatchCustomSceneAction(uint16 actio
 			say(3, 3);
 		} else {
 			say(3, 2);
-			_inventory.add(15);
-			say(64, 0, true);
+			pickUp(15, 64, 0, true);
 		}
 		return kHandled;
 	case 309: // Take the spray can.
 		_hospital.sprayTaken = 1;
-		_inventory.add(18);
-		say(18, _random.getRandomNumber(2), true);
+		pickUp(18, 18, _random.getRandomNumber(2), true);
 		return kBackgroundChanged;
 	case 310: // Look at the medical reference book.
 		say(5, _hospital.book != 0);
@@ -172,8 +170,7 @@ RunawayRoomScene::ActionResult Scene2060::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	case 311: // Take the medical reference book.
 		_hospital.book = 2;
-		_inventory.add(19);
-		say(18, _random.getRandomNumber(2), true);
+		pickUp(19, 18, _random.getRandomNumber(2), true);
 		return kBackgroundChanged;
 	case 312: // Look at the blank medical chart.
 		say(6, _hospital.blankChart != 0);
@@ -181,8 +178,7 @@ RunawayRoomScene::ActionResult Scene2060::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	case 313: // Take the blank medical chart.
 		_hospital.blankChart = 2;
-		_inventory.add(16);
-		say(65, 0, true);
+		pickUp(16, 65, 0, true);
 		return kBackgroundChanged;
 	case 314: // Look at the anatomical model.
 		say(7, _hospital.headTaken ? 2 : _random.getRandomBit());
@@ -194,14 +190,12 @@ RunawayRoomScene::ActionResult Scene2060::dispatchCustomSceneAction(uint16 actio
 		}
 		say(7, 3);
 		_hospital.headTaken = 1;
-		_inventory.add(17);
-		say(66, 0, true);
+		pickUp(17, 66, 0, true);
 		return kBackgroundChanged;
 	case 328: // Take the pillows.
 		say(15, 1);
 		_hospital.pillowsTaken = 1;
-		_inventory.add(14);
-		say(63, 0, true);
+		pickUp(14, 63, 0, true);
 		return kBackgroundChanged;
 	default:
 		return kUnhandled;
diff --git a/engines/hollywood/runaway/scene2080.cpp b/engines/hollywood/runaway/scene2080.cpp
index 365b991db5e..a5cb82fbec0 100644
--- a/engines/hollywood/runaway/scene2080.cpp
+++ b/engines/hollywood/runaway/scene2080.cpp
@@ -150,8 +150,7 @@ RunawayRoomScene::ActionResult Scene2080::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	case 306: // Take the alcohol bottle.
 		_hospital.alcohol = 1;
-		_inventory.add(12);
-		say(18, _random.getRandomNumber(2), true);
+		pickUp(12, 18, _random.getRandomNumber(2), true);
 		return kBackgroundChanged;
 	case 307: // Fill the glass at the faucet.
 		if (_inventory.water() == 1) {
@@ -220,8 +219,7 @@ bool Scene2080::updateCustomSequence() {
 				_roomAction = 0;
 				if (!_hospital.markerTaken) {
 					_hospital.markerTaken = 1;
-					_inventory.add(11);
-					say(1, 1);
+					pickUp(11, 1, 1);
 				}
 			}
 		}
@@ -235,8 +233,7 @@ bool Scene2080::updateCustomSequence() {
 			_roomAction = 0;
 			_inventory.setWater(1);
 			_inventory.remove(13);
-			_inventory.add(13);
-			say(4);
+			pickUp(13, 4);
 		}
 	} else if ((_roomAction == 311 || _roomAction == 320) && !speaking()) {
 		_facing = 4;
diff --git a/engines/hollywood/runaway/scene4030.cpp b/engines/hollywood/runaway/scene4030.cpp
index ab2ad9c9839..2aa01d1e203 100644
--- a/engines/hollywood/runaway/scene4030.cpp
+++ b/engines/hollywood/runaway/scene4030.cpp
@@ -207,8 +207,7 @@ RunawayRoomScene::ActionResult Scene4030::dispatchCustomSceneAction(uint16 actio
 			say(1);
 		}
 		_books = kTaken;
-		_inventory.add(16);
-		say(2);
+		pickUp(16, 2);
 		say(2, 1);
 		_discoveringKeyhole = true;
 		return kBackgroundChanged;
@@ -229,9 +228,8 @@ RunawayRoomScene::ActionResult Scene4030::dispatchCustomSceneAction(uint16 actio
 			say(9);
 		}
 		_recorder = kTaken;
-		_inventory.add(5);
 		say(10);
-		say(10, 1);
+		pickUp(5, 10, 1);
 		return kBackgroundChanged;
 	case 311: // Look at the right shelves.
 		say(11, _museum.shelfBooksSeen ? _random.getRandomBit() : 0);
diff --git a/engines/hollywood/runaway/scene4050.cpp b/engines/hollywood/runaway/scene4050.cpp
index 7aa2ff9c544..63d1440608a 100644
--- a/engines/hollywood/runaway/scene4050.cpp
+++ b/engines/hollywood/runaway/scene4050.cpp
@@ -517,9 +517,8 @@ RunawayRoomScene::ActionResult Scene4050::dispatchCustomSceneAction(uint16 actio
 		}
 		_museum.varnishSeen = 1;
 		_varnishTaken = true;
-		_inventory.add(9);
 		say(19);
-		say(19, 1);
+		pickUp(9, 19, 1);
 		return kHandled;
 	case 338: // Take the talcum powder.
 		if (!museumChapter() || !_museum.talcSeen) {
@@ -527,10 +526,7 @@ RunawayRoomScene::ActionResult Scene4050::dispatchCustomSceneAction(uint16 actio
 		}
 		_museum.talcSeen = 1;
 		_talcTaken = true;
-		_inventory.add(10);
-		if (museumChapter()) {
-			say(18, _random.getRandomNumber(2), true);
-		}
+		pickUp(10, museumChapter() ? 18 : 0xffff, _random.getRandomNumber(2), true);
 		return kBackgroundChanged;
 	default:
 		break;
@@ -546,9 +542,8 @@ void Scene4050::finishCustomAnimation(uint16 action) {
 		break;
 	case 326: // Leave the crucifix and collect the Mayan object.
 		_inventory.remove(7);
-		_inventory.add(8);
+		pickUp(8, 22, 1);
 		_museum.restoration = 1;
-		say(22, 1);
 		break;
 	case 328: // Ask Susan to say her name.
 		say(24);
@@ -591,7 +586,10 @@ void Scene4050::finishCustomAnimation(uint16 action) {
 		beginRoomAnimation(450, 23, 95, nullptr, 0, false);
 		return;
 	case 405: // Collect the restored crucifix.
-		_inventory.add(7);
+		pickUp(7);
+		deferMuseumAction(406);
+		return;
+	case 406:
 		startMuseumFilm(kCrucifixFilm);
 		return;
 	case 456: // Finish installing the ruby and approach Susan.
diff --git a/engines/hollywood/runaway/scene4060.cpp b/engines/hollywood/runaway/scene4060.cpp
index cca06453556..7f027ff917f 100644
--- a/engines/hollywood/runaway/scene4060.cpp
+++ b/engines/hollywood/runaway/scene4060.cpp
@@ -356,8 +356,7 @@ RunawayRoomScene::ActionResult Scene4060::dispatchCustomSceneAction(uint16 actio
 			} else {
 				_coffeeTaken = true;
 				say(7, 2);
-				_inventory.add(19);
-				say(114, 0, true);
+				pickUp(19, 114, 0, true);
 			}
 			return kHandled;
 		case 317: // Look at the security door.
@@ -482,8 +481,7 @@ RunawayRoomScene::ActionResult Scene4060::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	}
 	_coffeeTaken = true;
-	_inventory.add(19);
-	say(6);
+	pickUp(19, 6);
 	say(6, 1);
 	return kHandled;
 }
@@ -530,8 +528,7 @@ void Scene4060::finishCustomAnimation(uint16 action) {
 		break;
 	case 313: // Collect the demo's coffee package after examining the basket.
 		_coffeeTaken = true;
-		_inventory.add(19);
-		say(6, 1);
+		pickUp(19, 6, 1);
 		break;
 	case 316: // Enter the restoration laboratory after opening the door.
 		leaveMuseumRoom(4050, Common::Point(382, 529), 3, true);
@@ -652,8 +649,7 @@ void Scene4060::finishCustomAnimation(uint16 action) {
 		break;
 	case 322: // Collect the cup of coffee.
 		_museum.coffeeMachine = 2;
-		_inventory.add(15);
-		say(12, 2);
+		pickUp(15, 12, 2);
 		break;
 	case 325: // Start the telephone conversation.
 		startMuseumFilm(kPhoneFilm);
diff --git a/engines/hollywood/runaway/scene4070.cpp b/engines/hollywood/runaway/scene4070.cpp
index f30bde0fc90..0093170bcf3 100644
--- a/engines/hollywood/runaway/scene4070.cpp
+++ b/engines/hollywood/runaway/scene4070.cpp
@@ -245,9 +245,8 @@ void Scene4070::handleCustomDialogueChoice(byte effect) {
 }
 
 void Scene4070::runCustomDialogueIntro() {
-	_inventory.add(13);
+	pickUp(13, 50);
 	_inventory.museum().businessCardExamined = 1;
-	say(50);
 	say(80, 4);
 }
 
diff --git a/engines/hollywood/runaway/scene4090.cpp b/engines/hollywood/runaway/scene4090.cpp
index 5ff55593960..af62095b21f 100644
--- a/engines/hollywood/runaway/scene4090.cpp
+++ b/engines/hollywood/runaway/scene4090.cpp
@@ -110,9 +110,8 @@ RunawayRoomScene::ActionResult Scene4090::dispatchCustomSceneAction(uint16 actio
 			say(action == 307 ? 5 : 6, action == 307 ? 2 : 3);
 		} else if (_museum.susan == 1 && _museum.coffeeSeen) {
 			say(6, 1);
-			_inventory.add(14);
+			pickUp(14, 6, 2);
 			_museum.coffeeBeansTaken = 1;
-			say(6, 2);
 			return kBackgroundChanged;
 		} else {
 			say(action == 307 ? 5 : 6, action == 307 ? _museum.mayanObjectsSeen : 0);
diff --git a/engines/hollywood/runaway/scene4100.cpp b/engines/hollywood/runaway/scene4100.cpp
index 9b5d2caeb06..144b3adde0b 100644
--- a/engines/hollywood/runaway/scene4100.cpp
+++ b/engines/hollywood/runaway/scene4100.cpp
@@ -265,8 +265,7 @@ RunawayRoomScene::ActionResult Scene4100::dispatchCustomSceneAction(uint16 actio
 			_audio.setMusicVolume(100);
 			say(9, 1);
 			_museum.maskTaken = 1;
-			_inventory.add(11);
-			say(9, 2);
+			pickUp(11, 9, 2);
 			deferMuseumAction(432);
 		}
 		return kBackgroundChanged;
@@ -283,8 +282,7 @@ RunawayRoomScene::ActionResult Scene4100::dispatchCustomSceneAction(uint16 actio
 			say(12);
 		}
 		_museum.keySeen = _museum.keyTaken = 1;
-		_inventory.add(17);
-		say(13);
+		pickUp(17, 13);
 		say(13, 1);
 		say(13, 2);
 		return kBackgroundChanged;
@@ -328,8 +326,7 @@ RunawayRoomScene::ActionResult Scene4100::dispatchCustomSceneAction(uint16 actio
 		return kHandled;
 	case 329: // Take the ladle.
 		_museum.ladleTaken = 1;
-		_inventory.add(18);
-		say(113, 0, true);
+		pickUp(18, 113, 0, true);
 		return kBackgroundChanged;
 	case 330: // Put the battery directly in the liquid nitrogen.
 		say(27, _inventory.museum().frozenBattery);
@@ -380,8 +377,7 @@ void Scene4100::finishCustomAnimation(uint16 action) {
 			say(20, 4);
 			say(20, 5);
 			_inventory.museum().recorderBattery = 2;
-			_inventory.add(6);
-			say(20, 6);
+			pickUp(6, 20, 6);
 		} else {
 			beginRoomAnimation(345, 10, 7, nullptr, 0, false);
 		}
@@ -392,9 +388,7 @@ void Scene4100::finishCustomAnimation(uint16 action) {
 	case 325: // Retrieve the frozen battery from the ladle.
 		_inventory.museum().batteryInLadle = 0;
 		_inventory.museum().frozenBattery = 1;
-		_inventory.add(6);
-		say(23, 2);
-		say(23, 3);
+		pickUp(6, 23, 3, false, 2);
 		break;
 	case 308: // Try identifying Brian to the voice lock.
 		startComputerConversation();
diff --git a/engines/hollywood/runaway/scene5020.cpp b/engines/hollywood/runaway/scene5020.cpp
index 12e84f4fa6b..75e1c486ec3 100644
--- a/engines/hollywood/runaway/scene5020.cpp
+++ b/engines/hollywood/runaway/scene5020.cpp
@@ -138,8 +138,7 @@ RunawayRoomScene::ActionResult Scene5020::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 313: // Take the bucket.
 		_desert.bucketTaken = 1;
-		_inventory.add(25);
-		say(12);
+		pickUp(25, 12);
 		return kBackgroundChanged;
 	case 400: // Check that everyone is in position for the rescue.
 		say(50);
diff --git a/engines/hollywood/runaway/scene5030.cpp b/engines/hollywood/runaway/scene5030.cpp
index 7ab43ce34aa..c95815d2470 100644
--- a/engines/hollywood/runaway/scene5030.cpp
+++ b/engines/hollywood/runaway/scene5030.cpp
@@ -540,14 +540,13 @@ void Scene5030::click(Common::Point mouse, RunawayVerb verb, byte item) {
 }
 
 void Scene5030::pickUp(byte hotspot, byte item, uint patch) {
-	if (!_inventory.add(item))
+	if (_inventory.contains(item))
 		return;
 	_pickedUp[hotspot] = true;
 	drawPatch(_pickupPatches[patch]);
-	if (hotspot == 14 || hotspot == 17)
-		sayCue(hotspot == 14 ? 26 : 31, 0);
-	else
-		sayInventory(RunawayInventory::Reply(18, _random.getRandomNumber(2)));
+	_inventory.beginPickup(item);
+	_pickupHotspot = hotspot;
+	startAction(kPickupInventory);
 }
 
 void Scene5030::useItem(byte item, byte hotspot) {
@@ -848,6 +847,12 @@ void Scene5030::startAction(Action action) {
 			break;
 		}
 		break;
+	case kPickupReply:
+		if (_pickupHotspot == 14 || _pickupHotspot == 17)
+			sayCue(_pickupHotspot == 14 ? 26 : 31, 0);
+		else
+			sayInventory(RunawayInventory::Reply(18, _random.getRandomNumber(2)));
+		break;
 	case kShirt:
 		_action = kNone;
 		sayCue(28, 0);
@@ -1053,6 +1058,12 @@ void Scene5030::updateAction() {
 	if (_action == kWaitSpeech) {
 		if (!speaking())
 			startAction(_afterSpeech);
+	} else if (_action == kPickupInventory) {
+		if (!_inventory.pickingUp())
+			startAction(kPickupReply);
+	} else if (_action == kPickupReply) {
+		if (!speaking())
+			_action = kNone;
 	} else if (_action == kIntroInventory) {
 		if (!speaking())
 			startAction(kIntroListen);
diff --git a/engines/hollywood/runaway/scene5030.h b/engines/hollywood/runaway/scene5030.h
index df44d19fde5..f195b2f9921 100644
--- a/engines/hollywood/runaway/scene5030.h
+++ b/engines/hollywood/runaway/scene5030.h
@@ -78,7 +78,7 @@ public:
 	byte inventoryFrame() const override { return _inventory.handlingFrame(); }
 	void skipSpeech() override;
 	bool playingVideo() const override { return _action == kIntroVideo || _action == kCleanWindowVideo; }
-	bool inventoryPresentation() const override { return _action == kIntroInventory; }
+	bool inventoryPresentation() const override { return _action == kIntroInventory || _action == kPickupInventory || _action == kPickupReply; }
 	void skipVideo() override;
 	void cancelWalk();
 	void sayInventory(const RunawayInventory::Reply &reply) override;
@@ -95,7 +95,7 @@ private:
 		kIntroListen, kIntroLookLeft, kIntroLookRight, kIntroWalkToDoor, kIntroExamineDoor,
 		kOpenLid, kCloseLid, kUnplug,
 		kCleanWindowSpeech, kCleanWindowClimb, kCleanWindowVideo,
-		kWaitSpeech, kWalkingAction, kHeadMovement, kExamine, kInspectCooler, kPickup, kShirt,
+		kWaitSpeech, kWalkingAction, kHeadMovement, kExamine, kInspectCooler, kPickup, kPickupInventory, kPickupReply, kShirt,
 		kMeltIce, kMeltWait, kInspectIce, kFinishMelting, kDescribeMeltedIce,
 		kTryMoveCooler, kMoveCooler, kRevealHatch, kFinishMoving, kHatchFound,
 		kDrainCooler, kFinishDraining, kDescribeDrainedCooler, kPryHatch, kOpenHatch, kEscape,
diff --git a/engines/hollywood/runaway/scene5050.cpp b/engines/hollywood/runaway/scene5050.cpp
index eeba078ad00..0f24c675e47 100644
--- a/engines/hollywood/runaway/scene5050.cpp
+++ b/engines/hollywood/runaway/scene5050.cpp
@@ -151,8 +151,7 @@ RunawayRoomScene::ActionResult Scene5050::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 304: // Take the helmet.
 		_desert.helmetTaken = 1;
-		_inventory.add(6);
-		say(3);
+		pickUp(6, 3);
 		return kBackgroundChanged;
 	case 305: // Look at the ammunition belt.
 		say(4, _desert.beltSeen != 0);
@@ -160,8 +159,7 @@ RunawayRoomScene::ActionResult Scene5050::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 306: // Take the ammunition belt.
 		_desert.beltTaken = 1;
-		_inventory.add(14);
-		say(5);
+		pickUp(14, 5);
 		return kBackgroundChanged;
 	case 307: // Look at the machine gun.
 		say(6, _desert.gun);
diff --git a/engines/hollywood/runaway/scene5060.cpp b/engines/hollywood/runaway/scene5060.cpp
index cfd0f8081d0..c1ae6148523 100644
--- a/engines/hollywood/runaway/scene5060.cpp
+++ b/engines/hollywood/runaway/scene5060.cpp
@@ -282,9 +282,8 @@ RunawayRoomScene::ActionResult Scene5060::dispatchCustomSceneAction(uint16 actio
 		if (_desert.ballTaken) {
 			say(6, 3);
 		} else {
-			_inventory.add(15);
+			pickUp(15, 6, 1);
 			_desert.ballTaken = 1;
-			say(6, 1);
 			holdRoomAnimation(410, 10, 28, 14);
 		}
 		break;
@@ -322,8 +321,7 @@ RunawayRoomScene::ActionResult Scene5060::dispatchCustomSceneAction(uint16 actio
 		beginRoomAnimation(432, 7, 201, kMariolaRestFrames, ARRAYSIZE(kMariolaRestFrames), false);
 		if (_desert.mariolaHelped) {
 			_desert.tanningOil = 2;
-			_inventory.add(12);
-			say(8, 2);
+			pickUp(12, 8, 2);
 		}
 		return kBackgroundChanged;
 	case 1432: // Finish asking for the tanning oil.
diff --git a/engines/hollywood/runaway/scene5080.cpp b/engines/hollywood/runaway/scene5080.cpp
index 121b7ac4c3e..76cf1fa4049 100644
--- a/engines/hollywood/runaway/scene5080.cpp
+++ b/engines/hollywood/runaway/scene5080.cpp
@@ -176,8 +176,7 @@ RunawayRoomScene::ActionResult Scene5080::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 309: // Take the dynamite.
 		_desert.dynamite = 2;
-		_inventory.add(5);
-		say(8);
+		pickUp(5, 8);
 		return kBackgroundChanged;
 	case 313: // Enter the train car.
 		if (!_desert.trainEntered) {
diff --git a/engines/hollywood/runaway/scene5100.cpp b/engines/hollywood/runaway/scene5100.cpp
index 47edd70a06e..cc46501e89b 100644
--- a/engines/hollywood/runaway/scene5100.cpp
+++ b/engines/hollywood/runaway/scene5100.cpp
@@ -254,9 +254,8 @@ RunawayRoomScene::ActionResult Scene5100::dispatchCustomSceneAction(uint16 actio
 		deferDesertAction(406);
 		break;
 	case 406: // Collect the jar and attract Stud's attention.
-		_inventory.add(19);
+		pickUp(19, 11, 1);
 		_desert.peanutButter = 2;
-		say(11, 1);
 		say(12, 0, false, 1);
 		deferDesertAction(416);
 		return kBackgroundChanged;
@@ -308,9 +307,8 @@ RunawayRoomScene::ActionResult Scene5100::dispatchCustomSceneAction(uint16 actio
 		if (!_desert.footrestSeen) {
 			dispatchCustomSceneAction(313);
 		}
-		_inventory.add(21);
+		pickUp(21, 18, 0, true);
 		_desert.footrest = 2;
-		say(18, 0, true);
 		return kBackgroundChanged;
 	case 315: // Look at the left barrel.
 		say(21, _random.getRandomBit());
diff --git a/engines/hollywood/runaway/scene5110.cpp b/engines/hollywood/runaway/scene5110.cpp
index ef64b19942d..1583b9d1962 100644
--- a/engines/hollywood/runaway/scene5110.cpp
+++ b/engines/hollywood/runaway/scene5110.cpp
@@ -157,9 +157,8 @@ RunawayRoomScene::ActionResult Scene5110::dispatchCustomSceneAction(uint16 actio
 				dispatchCustomSceneAction(311);
 			}
 			say(11);
-			_inventory.add(7);
+			pickUp(7, 11, 1);
 			_desert.screwTaken = 1;
-			say(11, 1);
 		}
 		break;
 	case 316: // Use the screw with the barrel.
@@ -210,8 +209,7 @@ RunawayRoomScene::ActionResult Scene5110::dispatchCustomSceneAction(uint16 actio
 		deferDesertAction(419);
 		return kBackgroundChanged;
 	case 419: // Inspect the peanuts before putting them in the inventory.
-		_inventory.add(18);
-		say(18, 2);
+		pickUp(18, 18, 2);
 		break;
 	case 320: // Look at the bucket beneath the barrel.
 		say(19, _desert.bucket != 1);
@@ -222,8 +220,7 @@ RunawayRoomScene::ActionResult Scene5110::dispatchCustomSceneAction(uint16 actio
 		} else {
 			_desert.bucket = 3;
 			items.bucket = 1;
-			_inventory.add(25);
-			say(20, 1);
+			pickUp(25, 20, 1);
 			return kBackgroundChanged;
 		}
 		break;
diff --git a/engines/hollywood/runaway/scene5160.cpp b/engines/hollywood/runaway/scene5160.cpp
index 3d5c604bd16..3cb965e5d9a 100644
--- a/engines/hollywood/runaway/scene5160.cpp
+++ b/engines/hollywood/runaway/scene5160.cpp
@@ -173,9 +173,8 @@ RunawayRoomScene::ActionResult Scene5160::dispatchCustomSceneAction(uint16 actio
 			dispatchCustomSceneAction(313);
 		}
 		say(12);
-		_inventory.add(16);
+		pickUp(16, 12, 1);
 		_desert.needle = 2;
-		say(12, 1);
 		return kBackgroundChanged;
 	case 315: // Look at the bull.
 		say(13, _random.getRandomNumber(1));
@@ -189,8 +188,7 @@ RunawayRoomScene::ActionResult Scene5160::dispatchCustomSceneAction(uint16 actio
 	case 1319: // Collect the butter from the refrigerator.
 		if (!_desert.fridgeOpened) {
 			say(17, 1);
-			_inventory.add(4);
-			say(17, 2);
+			pickUp(4, 17, 2);
 		} else {
 			say(17, 4);
 		}
@@ -221,11 +219,9 @@ RunawayRoomScene::ActionResult Scene5160::dispatchCustomSceneAction(uint16 actio
 		}
 		break;
 	case 1320: // Recover the sleeping pill from the vacuum.
-		say(18, 2);
-		_inventory.add(9);
+		pickUp(9, 18, 3, false, 2, 33);
 		_inventory.desert().pill = 1;
 		_desert.ventCleaned = 1;
-		say(18, 3);
 		break;
 	case 322: // Give the refrigerator key to Carla.
 		say(20, _desert.fridgeOpened);
diff --git a/engines/hollywood/runaway/scene5170.cpp b/engines/hollywood/runaway/scene5170.cpp
index 5553830bdf4..e39247f5203 100644
--- a/engines/hollywood/runaway/scene5170.cpp
+++ b/engines/hollywood/runaway/scene5170.cpp
@@ -205,17 +205,15 @@ RunawayRoomScene::ActionResult Scene5170::dispatchCustomSceneAction(uint16 actio
 	case 306: // Take lipstick from the shelf.
 		if (_desert.lipstickShelf < 2) {
 			say(5);
-			_inventory.add(10);
+			pickUp(10, 5, 1);
 			_desert.lipstickShelf = 2;
-			say(5, 1);
 		} else if (_desert.lipstickShelf == 2) {
 			if (!_inventory.desert().lipstick) {
 				say(5, 2);
 			} else {
 				say(5, 3);
-				_inventory.add(11);
+				pickUp(11, 5, 4);
 				_desert.lipstickShelf = 3;
-				say(5, 4);
 			}
 		} else {
 			say(5, 5);
@@ -253,21 +251,19 @@ RunawayRoomScene::ActionResult Scene5170::dispatchCustomSceneAction(uint16 actio
 			say(9, 2);
 		} else {
 			say(9);
-			_inventory.add(26);
 			_desert.keyTaken = 1;
 			if (_desert.fridgeSeen) {
-				say(9, 1);
+				pickUp(26, 9, 0xff, false, 1);
 			} else {
-				say(18, _random.getRandomNumber(2), true);
+				pickUp(26, 18, _random.getRandomNumber(2), true);
 			}
 			walkTo(Common::Point(340, 511), 3, true);
 		}
 		break;
 	case 312: // Take the sunglasses.
 		say(11);
-		_inventory.add(20);
+		pickUp(20, 11, 1);
 		_desert.glassesTaken = 1;
-		say(11, 1);
 		return kBackgroundChanged;
 	case 313: // Look at the object under the bed.
 		say(12, _desert.vacuum != 0);
@@ -279,9 +275,8 @@ RunawayRoomScene::ActionResult Scene5170::dispatchCustomSceneAction(uint16 actio
 		if (!_desert.vacuum) {
 			say(12);
 		}
-		_inventory.add(22);
+		pickUp(22, 13);
 		_desert.vacuum = 2;
-		say(13);
 		return kBackgroundChanged;
 	case 315: // Look at the necklaces.
 		say(14, _desert.necklacesSeen);
diff --git a/engines/hollywood/runaway/scene6080.cpp b/engines/hollywood/runaway/scene6080.cpp
index 251e71eaf60..850b12a0779 100644
--- a/engines/hollywood/runaway/scene6080.cpp
+++ b/engines/hollywood/runaway/scene6080.cpp
@@ -186,8 +186,7 @@ RunawayRoomScene::ActionResult Scene6080::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 406: // Collect the oil can.
 		_town.oilCan = 2;
-		_inventory.add(23);
-		say(5);
+		pickUp(23, 5);
 		return kBackgroundChanged;
 	case 307: // Examine the rock blocking the mine.
 		say(6, _town.rockMoved ? 1 : _town.sushiMet ? 2 : 0);
diff --git a/engines/hollywood/runaway/scene6090.cpp b/engines/hollywood/runaway/scene6090.cpp
index e6320720918..ea2d0c51547 100644
--- a/engines/hollywood/runaway/scene6090.cpp
+++ b/engines/hollywood/runaway/scene6090.cpp
@@ -207,8 +207,7 @@ RunawayRoomScene::ActionResult Scene6090::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 413: // Collect the clay vessel.
 		_town.vessel = 2;
-		_inventory.add(31);
-		say(11, 1);
+		pickUp(31, 11, 1);
 		return kBackgroundChanged;
 	case 314: // Oscar chews tobacco; he does not smoke the untreated leaves.
 		_oscar.setTalking(true);
diff --git a/engines/hollywood/runaway/scene6130.cpp b/engines/hollywood/runaway/scene6130.cpp
index 38494d47602..7c0286e1292 100644
--- a/engines/hollywood/runaway/scene6130.cpp
+++ b/engines/hollywood/runaway/scene6130.cpp
@@ -141,8 +141,7 @@ RunawayRoomScene::ActionResult Scene6130::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 408: // Collect the stone with the hole.
 		_town.stone = 2;
-		_inventory.add(29);
-		say(6, 1);
+		pickUp(29, 6, 1);
 		return kBackgroundChanged;
 	case 400: // First visit: go and introduce Brian to Oscar.
 		walkTo(Common::Point(402, 374), 1);
diff --git a/engines/hollywood/runaway/scene6180.cpp b/engines/hollywood/runaway/scene6180.cpp
index be36b0506c5..25a6d444e40 100644
--- a/engines/hollywood/runaway/scene6180.cpp
+++ b/engines/hollywood/runaway/scene6180.cpp
@@ -209,8 +209,7 @@ RunawayRoomScene::ActionResult Scene6180::dispatchCustomSceneAction(uint16 actio
 	case 411: // Pick up the number-ten wrench for Joshua.
 		_facing = 4;
 		_town.wrenchFound = 2;
-		_inventory.add(10);
-		say(0, 4);
+		pickUp(10, 0, 4);
 		return kBackgroundChanged;
 	case 414: // Look both ways for the wrench thrown out of the saloon.
 		beginHeadMovement(415, RunawayHeadMovement::kLeft, 1);
diff --git a/engines/hollywood/runaway/scene6190.cpp b/engines/hollywood/runaway/scene6190.cpp
index e5f86c8890d..e421830d44b 100644
--- a/engines/hollywood/runaway/scene6190.cpp
+++ b/engines/hollywood/runaway/scene6190.cpp
@@ -199,8 +199,7 @@ RunawayRoomScene::ActionResult Scene6190::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 411: // Collect the ancient stapler.
 		_town.bankShelves = 2;
-		_inventory.add(20);
-		say(10, 1);
+		pickUp(20, 10, 1);
 		return kBackgroundChanged;
 	case 313: // Search the desk and take the bank stamp.
 		if (_town.bankStampTaken) {
@@ -214,8 +213,7 @@ RunawayRoomScene::ActionResult Scene6190::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 413: // Collect the bank stamp after searching the desk.
 		_town.bankStampTaken = 1;
-		_inventory.add(32);
-		say(12, 1);
+		pickUp(32, 12, 1);
 		return kBackgroundChanged;
 	case 400: // First visit: inspect the damage from the locomotive.
 		say(0);
diff --git a/engines/hollywood/runaway/scene6200.cpp b/engines/hollywood/runaway/scene6200.cpp
index e915a38cb99..1c762bf2a7b 100644
--- a/engines/hollywood/runaway/scene6200.cpp
+++ b/engines/hollywood/runaway/scene6200.cpp
@@ -160,8 +160,7 @@ RunawayRoomScene::ActionResult Scene6200::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 407: // Collect the firewood.
 		_town.firewoodTaken = 1;
-		_inventory.add(14);
-		say(5, 1);
+		pickUp(14, 5, 1);
 		return kBackgroundChanged;
 	case 314: // Unlock the cell.
 		if (_town.cellOpen) {
diff --git a/engines/hollywood/runaway/scene6210.cpp b/engines/hollywood/runaway/scene6210.cpp
index 4812d447c43..e8a4b5408c4 100644
--- a/engines/hollywood/runaway/scene6210.cpp
+++ b/engines/hollywood/runaway/scene6210.cpp
@@ -118,8 +118,7 @@ RunawayRoomScene::ActionResult Scene6210::dispatchCustomSceneAction(uint16 actio
 	case 1410: // Only take medical tools once their purpose is known.
 		if (_town.safeSeen && !_town.stethoscopeTaken) {
 			_town.stethoscopeTaken = 1;
-			_inventory.add(7);
-			say(3, 3);
+			pickUp(7, 3, 3);
 			if (_town.oscarTobacco && !_town.linimentTaken) {
 				deferTownAction(411);
 			}
@@ -132,8 +131,7 @@ RunawayRoomScene::ActionResult Scene6210::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 411: // Take the mint liniment for the chewing tobacco.
 		_town.linimentTaken = 1;
-		_inventory.add(8);
-		say(3, 4);
+		pickUp(8, 3, 4);
 		break;
 	case 1412: // Close the bag after an unsuccessful search.
 		beginRoomAnimationRange(413, 4, 28, 16, 27);
diff --git a/engines/hollywood/runaway/scene6220.cpp b/engines/hollywood/runaway/scene6220.cpp
index 6444c861ff3..881a2eaa1b6 100644
--- a/engines/hollywood/runaway/scene6220.cpp
+++ b/engines/hollywood/runaway/scene6220.cpp
@@ -240,8 +240,7 @@ RunawayRoomScene::ActionResult Scene6220::dispatchCustomSceneAction(uint16 actio
 	case 1417: // Collect the cut strap.
 		_town.strapSeen = 2;
 		_inventory.select(0);
-		_inventory.add(11);
-		say(11, 1);
+		pickUp(11, 11, 1);
 		break;
 	case 400: // First arrival in Douglasville.
 		say(0);
diff --git a/engines/hollywood/runaway/scene6226.cpp b/engines/hollywood/runaway/scene6226.cpp
index a1fc59ca17a..48b79578621 100644
--- a/engines/hollywood/runaway/scene6226.cpp
+++ b/engines/hollywood/runaway/scene6226.cpp
@@ -162,8 +162,7 @@ RunawayRoomScene::ActionResult Scene6226::dispatchCustomSceneAction(uint16 actio
 	case 410: // Put the sanding block in Brian's inventory.
 		_facing = 4;
 		_town.sandingBlock = kTaken;
-		_inventory.add(30);
-		say(26, 1);
+		pickUp(30, 26, 1);
 		return kBackgroundChanged;
 	default:
 		return kUnhandled;
diff --git a/engines/hollywood/runaway/scene6240.cpp b/engines/hollywood/runaway/scene6240.cpp
index 171362262ee..61cd55f2bbe 100644
--- a/engines/hollywood/runaway/scene6240.cpp
+++ b/engines/hollywood/runaway/scene6240.cpp
@@ -219,8 +219,7 @@ RunawayRoomScene::ActionResult Scene6240::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 406: // Collect the flower pot.
 		_town.flowerPotTaken = 1;
-		_inventory.add(21);
-		say(4, 1);
+		pickUp(21, 4, 1);
 		return kBackgroundChanged;
 	case 308: // Optionally collect the unused watering-can inventory item.
 		if (_town.wateringCanTaken) {
@@ -235,7 +234,7 @@ RunawayRoomScene::ActionResult Scene6240::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 408:
 		_town.wateringCanTaken = 1;
-		_inventory.add(16);
+		pickUp(16);
 		return kBackgroundChanged;
 	case 309: // Identify the gardening shed.
 	case 310: // Search the shed for useful items.
@@ -283,8 +282,7 @@ RunawayRoomScene::ActionResult Scene6240::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 421: // Collect the pruning shears.
 		_town.gardeningShed = 2;
-		_inventory.add(22);
-		say(8, 1);
+		pickUp(22, 8, 1);
 		if (_town.oscarTobacco == 1 && !_town.tobaccoLeavesTaken) {
 			say(8, 2);
 			deferTownAction(422);
@@ -294,8 +292,7 @@ RunawayRoomScene::ActionResult Scene6240::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 422: // Collect the tobacco leaves.
 		_town.tobaccoLeavesTaken = 1;
-		_inventory.add(27);
-		say(8, 3);
+		pickUp(27, 8, 3);
 		deferTownAction(423);
 		break;
 	case 423: // Step back out of the shed.
diff --git a/engines/hollywood/runaway/scene6250.cpp b/engines/hollywood/runaway/scene6250.cpp
index 6861d6d95d6..1186cb233fd 100644
--- a/engines/hollywood/runaway/scene6250.cpp
+++ b/engines/hollywood/runaway/scene6250.cpp
@@ -200,9 +200,8 @@ RunawayRoomScene::ActionResult Scene6250::dispatchCustomSceneAction(uint16 actio
 	case 1403: // Keep the map and read the route to the Hopi village.
 		_safeAnimating = false;
 		_town.safeOpened = 1;
-		_inventory.add(17);
+		pickUp(17, 9, 9);
 		_audio.playMusicEffect(39);
-		say(9, 9);
 		holdRoomAnimation(408, 10, 112, 64);
 		break;
 	case 1408: { // Show the map and read the route to the Hopi village.
diff --git a/engines/hollywood/runaway/scene6260.cpp b/engines/hollywood/runaway/scene6260.cpp
index 108ae1e6199..8588ea4b051 100644
--- a/engines/hollywood/runaway/scene6260.cpp
+++ b/engines/hollywood/runaway/scene6260.cpp
@@ -163,8 +163,7 @@ RunawayRoomScene::ActionResult Scene6260::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 410: // Collect the sheriff's key.
 		_town.locomotiveKey = 3;
-		_inventory.add(9);
-		say(9);
+		pickUp(9, 9);
 		return kBackgroundChanged;
 	case 313: // Fill the tank, one oil can at a time.
 		if (!_inventory.town().oilCanFull) {
diff --git a/engines/hollywood/runaway/scene6280.cpp b/engines/hollywood/runaway/scene6280.cpp
index 76ba617ef01..02fb3494fa7 100644
--- a/engines/hollywood/runaway/scene6280.cpp
+++ b/engines/hollywood/runaway/scene6280.cpp
@@ -116,8 +116,7 @@ RunawayRoomScene::ActionResult Scene6280::dispatchCustomSceneAction(uint16 actio
 		_audio.playMusicEffect(39);
 		_facing = 4;
 		_town.helmetTaken = 1;
-		_inventory.add(13);
-		say(3, 1);
+		pickUp(13, 3, 1);
 		return kBackgroundChanged;
 	case 400: // First descent to the crater floor.
 		say(0);
diff --git a/engines/hollywood/runaway/scene6290.cpp b/engines/hollywood/runaway/scene6290.cpp
index 7ae3fe08367..6ba1aa8565d 100644
--- a/engines/hollywood/runaway/scene6290.cpp
+++ b/engines/hollywood/runaway/scene6290.cpp
@@ -514,10 +514,9 @@ RunawayRoomScene::ActionResult Scene6290::dispatchCustomSceneAction(uint16 actio
 	case 1470: // Find the mining light and rope in the tent.
 		if (!_town.campingGearTaken) {
 			say(10, 2);
-			_inventory.add(18);
-			_inventory.add(19);
+			addInventoryItem(18);
+			pickUp(19, 10, 3);
 			_town.campingGearTaken = 1;
-			say(10, 3);
 		} else {
 			say(10, 5);
 		}
diff --git a/engines/hollywood/runaway/scene6300.cpp b/engines/hollywood/runaway/scene6300.cpp
index 705b775096a..08e04f1234d 100644
--- a/engines/hollywood/runaway/scene6300.cpp
+++ b/engines/hollywood/runaway/scene6300.cpp
@@ -647,8 +647,7 @@ RunawayRoomScene::ActionResult Scene6300::dispatchCustomSceneAction(uint16 actio
 		return kBackgroundChanged;
 	case 430: // Collect the blowtorch.
 		_town.blowtorchTaken = 1;
-		_inventory.add(15);
-		say(23, 1);
+		pickUp(15, 23, 1);
 		return kBackgroundChanged;
 	case 1333: // The oil can is filled with water.
 		_inventory.town().oilCanFull = 1;
@@ -750,13 +749,11 @@ RunawayRoomScene::ActionResult Scene6300::dispatchCustomSceneAction(uint16 actio
 		deferTownAction(440);
 		return kBackgroundChanged;
 	case 440: // Collect the concentrate, one-liter bottle, and measuring tubes.
-		_inventory.add(12);
-		say(29, 33);
+		pickUp(12, 29, 33);
 		say(29, 34);
-		_inventory.add(25);
-		_inventory.add(26);
-		_inventory.add(24);
-		say(29, 35);
+		addInventoryItem(25);
+		addInventoryItem(26);
+		pickUp(24, 29, 35);
 		_kevinTalking = false;
 		break;
 	default:
diff --git a/engines/hollywood/runaway/scene7010.cpp b/engines/hollywood/runaway/scene7010.cpp
index 15a94eb573f..b36bc47b4cf 100644
--- a/engines/hollywood/runaway/scene7010.cpp
+++ b/engines/hollywood/runaway/scene7010.cpp
@@ -271,9 +271,8 @@ RunawayRoomScene::ActionResult Scene7010::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 405: // Collect the femur.
 		_hopi.femurTaken = 1;
-		_inventory.add(14);
+		pickUp(14, 4, 2);
 		_audio.playEffect(13, 90);
-		say(4, 2);
 		return kBackgroundChanged;
 	case 307: // Check whether the rock could support the rope.
 		say(7, _hopi.rockTried);
@@ -307,8 +306,7 @@ RunawayRoomScene::ActionResult Scene7010::dispatchCustomSceneAction(uint16 actio
 		beginRoomAnimation(415, 6, 45);
 		return kBackgroundChanged;
 	case 1415: // Put the extracted nail in the inventory.
-		_inventory.add(16);
-		say(13, 2);
+		pickUp(16, 13, 2);
 		break;
 	case 316: // Prepare to drive the nail into the cliff.
 		say(14);
@@ -358,9 +356,8 @@ RunawayRoomScene::ActionResult Scene7010::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 419: // Collect the beam.
 		_hopi.timber = 1;
-		_inventory.add(10);
+		pickUp(10, 17, 1);
 		_audio.playEffect(11);
-		say(17, 1);
 		return kBackgroundChanged;
 	case 320: // Identify the exposed object as a mining tool.
 		_facing = 4;
@@ -376,8 +373,7 @@ RunawayRoomScene::ActionResult Scene7010::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 421: // Collect the mining tool.
 		_hopi.timber = 3;
-		_inventory.add(15);
-		say(19, 1);
+		pickUp(15, 19, 1);
 		return kBackgroundChanged;
 	case 322: // Try tying the rope around the rock.
 		say(20, _hopi.rockTried);
diff --git a/engines/hollywood/runaway/scene7020.cpp b/engines/hollywood/runaway/scene7020.cpp
index 2a108b36896..be96a85be36 100644
--- a/engines/hollywood/runaway/scene7020.cpp
+++ b/engines/hollywood/runaway/scene7020.cpp
@@ -636,8 +636,7 @@ RunawayRoomScene::ActionResult Scene7020::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 430: // Pick up the rope for the splint.
 		_hopi.rope = 2;
-		_inventory.add(12);
-		say(14, 4);
+		pickUp(12, 14, 4);
 		return kBackgroundChanged;
 	case 431: // Tell Gina to keep still while Brian makes the splint.
 		say(16, 1);
diff --git a/engines/hollywood/runaway/scene7040.cpp b/engines/hollywood/runaway/scene7040.cpp
index 1a49fe14b1d..b2643343ee2 100644
--- a/engines/hollywood/runaway/scene7040.cpp
+++ b/engines/hollywood/runaway/scene7040.cpp
@@ -253,7 +253,7 @@ void Scene7040::finishCustomFilm() {
 		return;
 	}
 	_inventory.remove(4);
-	_inventory.add(9);
+	pickUp(9, 0, 1);
 	_position = Common::Point(446, 486);
 	_walkPath.reset(_position);
 	_facing = 5;
@@ -262,7 +262,6 @@ void Scene7040::finishCustomFilm() {
 	_doorTick = _now;
 	_audio.playEffect(29);
 	_audio.playMusic(11, false);
-	say(0, 1);
 	deferAction(420);
 }
 
@@ -324,8 +323,7 @@ RunawayRoomScene::ActionResult Scene7040::dispatchCustomSceneAction(uint16 actio
 		beginRoomAnimation(405, 5, 19);
 		break;
 	case 1405: // Keep the branch and notice its pods.
-		_inventory.add(8);
-		say(9, 2);
+		pickUp(8, 9, 2);
 		break;
 	case 311: // Clear the sand with the branch.
 		if (_hopi.cryptDoor != kBlocked) {
diff --git a/engines/hollywood/runaway/scene7050.cpp b/engines/hollywood/runaway/scene7050.cpp
index c078fac2cd9..f304421691b 100644
--- a/engines/hollywood/runaway/scene7050.cpp
+++ b/engines/hollywood/runaway/scene7050.cpp
@@ -203,8 +203,7 @@ RunawayRoomScene::ActionResult Scene7050::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 406: // Remove the tomahawk from the stone and reveal its pipe.
 		_hopi.tomahawk = kTaken;
-		_inventory.add(11);
-		say(4, 1);
+		pickUp(11, 4, 1);
 		return kBackgroundChanged;
 	case 307: { // Examine the left cross and compare it with the right one.
 		const byte variation = _hopi.rightCrossSeen ? (_hopi.leftCrossSeen ? 2 : 1) : 0;
diff --git a/engines/hollywood/runaway/scene8200.cpp b/engines/hollywood/runaway/scene8200.cpp
index 32baa31e2b9..f9f0d30a685 100644
--- a/engines/hollywood/runaway/scene8200.cpp
+++ b/engines/hollywood/runaway/scene8200.cpp
@@ -436,8 +436,7 @@ RunawayRoomScene::ActionResult Scene8200::dispatchCustomSceneAction(uint16 actio
 	case 416: // Collect the bag from the cabinet.
 		_facing = 4;
 		_finale.gangsterBag = 3;
-		_inventory.add(13);
-		say(21, 1);
+		pickUp(13, 21, 1);
 		return kBackgroundChanged;
 	case 317: // Use the MP3 recorder on Gustav and Feodor.
 		if (_finale.recordings & 2) {
diff --git a/engines/hollywood/runaway/scene8210.cpp b/engines/hollywood/runaway/scene8210.cpp
index da7db25c4d7..46acc40c188 100644
--- a/engines/hollywood/runaway/scene8210.cpp
+++ b/engines/hollywood/runaway/scene8210.cpp
@@ -132,8 +132,7 @@ RunawayRoomScene::ActionResult Scene8210::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 1411: // Take the scalpel only after discovering the hard pods.
 		if (_finale.scalpelNeeded && !_inventory.contains(19)) {
-			_inventory.add(19);
-			say(3, 5);
+			pickUp(19, 3, 5);
 		} else {
 			say(3, 2);
 			holdRoomAnimation(412, 4, 28, 16);
diff --git a/engines/hollywood/runaway/scene8240.cpp b/engines/hollywood/runaway/scene8240.cpp
index ce61de3db48..494775cf2f7 100644
--- a/engines/hollywood/runaway/scene8240.cpp
+++ b/engines/hollywood/runaway/scene8240.cpp
@@ -288,8 +288,7 @@ RunawayRoomScene::ActionResult Scene8240::dispatchCustomSceneAction(uint16 actio
 		walkTo(Common::Point(855, 347), 3, false, true);
 		break;
 	case 422: // Take the dried tobacco leaves.
-		_inventory.add(22);
-		say(8, 3);
+		pickUp(22, 8, 3);
 		deferAction(421);
 		break;
 	case 311: // Recognize the artichoke carved into the column.
diff --git a/engines/hollywood/runaway/scene8260.cpp b/engines/hollywood/runaway/scene8260.cpp
index 6a253cee519..3ff158e9344 100644
--- a/engines/hollywood/runaway/scene8260.cpp
+++ b/engines/hollywood/runaway/scene8260.cpp
@@ -145,8 +145,7 @@ RunawayRoomScene::ActionResult Scene8260::dispatchCustomSceneAction(uint16 actio
 	case 410: // Collect the sheriff's badge.
 		_facing = 4;
 		_finale.locomotiveBadge = 3;
-		_inventory.add(12);
-		say(15, 1);
+		pickUp(12, 15, 1);
 		return kBackgroundChanged;
 	case 316: // Leave through the outskirts to the town overview.
 		leaveRoom(8350);
diff --git a/engines/hollywood/runaway/scene8370.cpp b/engines/hollywood/runaway/scene8370.cpp
index 265f07896eb..0aedfadbfac 100644
--- a/engines/hollywood/runaway/scene8370.cpp
+++ b/engines/hollywood/runaway/scene8370.cpp
@@ -397,8 +397,7 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 414: // Add the poker and remove it from the room.
 		_finale.pokerTaken = 1;
-		_inventory.add(21);
-		say(10, 1);
+		pickUp(21, 10, 1);
 		return kBackgroundChanged;
 	case 415: // Resume walking downstairs after the stair transition.
 		changeFloor(false, Common::Point(775, 466));
@@ -422,8 +421,7 @@ RunawayRoomScene::ActionResult Scene8370::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 420: // Remove the rifle from the room and keep it in the inventory.
 		_finale.rifle = 2;
-		_inventory.add(11);
-		say(15, 2);
+		pickUp(11, 15, 2);
 		return kBackgroundChanged;
 	default:
 		return kUnhandled;
diff --git a/engines/hollywood/runaway/scene8380.cpp b/engines/hollywood/runaway/scene8380.cpp
index d7ed97c303e..83d2dc4783f 100644
--- a/engines/hollywood/runaway/scene8380.cpp
+++ b/engines/hollywood/runaway/scene8380.cpp
@@ -468,8 +468,7 @@ RunawayRoomScene::ActionResult Scene8380::dispatchCustomSceneAction(uint16 actio
 	case 1412: // Start the recording task and remove the recorder from the desk.
 		_recorderOnDesk = false;
 		_finale.recordingPlan = 1;
-		_inventory.add(16);
-		say(80, 38);
+		pickUp(16, 80, 38);
 		return kBackgroundChanged;
 	case 420: // Sushi demonstrates her completed voice filter.
 		exchange(83, 5, 5);
diff --git a/engines/hollywood/runaway/scene8400.cpp b/engines/hollywood/runaway/scene8400.cpp
index 64df6d40cee..4055c6561d5 100644
--- a/engines/hollywood/runaway/scene8400.cpp
+++ b/engines/hollywood/runaway/scene8400.cpp
@@ -370,8 +370,7 @@ RunawayRoomScene::ActionResult Scene8400::dispatchCustomSceneAction(uint16 actio
 	case 1403: // Put the brochure in the inventory.
 		if (!_finale.bankBrochureTaken) {
 			_finale.bankBrochureTaken = 1;
-			_inventory.add(14);
-			say(7, 2);
+			pickUp(14, 7, 2);
 		}
 		holdRoomAnimation(405, 14, 42, 22);
 		break;
diff --git a/engines/hollywood/runaway/scene8410.cpp b/engines/hollywood/runaway/scene8410.cpp
index 9772bb37863..f5bb5139491 100644
--- a/engines/hollywood/runaway/scene8410.cpp
+++ b/engines/hollywood/runaway/scene8410.cpp
@@ -243,8 +243,7 @@ RunawayRoomScene::ActionResult Scene8410::dispatchCustomSceneAction(uint16 actio
 		break;
 	case 402: // Remove the garment from the room and add it to the inventory.
 		_finale.nunsHabit = 2;
-		_inventory.add(15);
-		say(3, 2);
+		pickUp(15, 3, 2);
 		return kBackgroundChanged;
 	default:
 		return kUnhandled;
diff --git a/engines/hollywood/runaway/ui.cpp b/engines/hollywood/runaway/ui.cpp
index 11c5354c3e7..110d11d1b52 100644
--- a/engines/hollywood/runaway/ui.cpp
+++ b/engines/hollywood/runaway/ui.cpp
@@ -203,6 +203,7 @@ void RunawayUI::restoreState(const RunawaySaveState &state, uint32 now) {
 	_idleStep = 0;
 	_pickupItem = _hovered = _buttonFrame = _optionsFrame = _mouth = 0;
 	_blocked = _speaking = _inventoryPresentation = _returnAfterPickup = _pickupSoundPlayed = false;
+	_returnAfterPresentation = _pickupEffectPlayed = false;
 	_inventoryFrame = 0xff;
 	_inventorySpeechPose = 0;
 	_inventoryOpen = state.inventoryOpen;
@@ -275,7 +276,12 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
 	}
 	if (_inventoryPresentation != inventoryPresentation) {
 		_inventoryPresentation = inventoryPresentation;
-		setInventoryOpen(inventoryPresentation);
+		if (inventoryPresentation) {
+			_returnAfterPresentation = !_inventoryOpen;
+			setInventoryOpen(true);
+		} else if (_returnAfterPresentation) {
+			setInventoryOpen(false);
+		}
 	}
 	const byte added = _inventory.takeNewItem();
 	if (added) {
@@ -284,18 +290,26 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
 		_pickupItem = added;
 		_pickupStarted = now;
 		_pickupSoundPlayed = false;
+		_pickupEffectPlayed = false;
+	}
+	if (_pickupItem && !_pickupEffectPlayed && now - _pickupStarted >= 8 * 60) {
+		if (_inventory.pickupEffect())
+			_audio.playEffectAt(_inventory.pickupEffect(), Common::Point(512, 600));
+		_pickupEffectPlayed = true;
 	}
 	// Cue 1 accompanies the item reveal: frame 15 in the museum (0x427020),
 	// frame 12 in the cabin (0x40d390).
 	const uint revealFrame = _museum ? 15 : 12;
 	if (_pickupItem && !_pickupSoundPlayed && now - _pickupStarted >= revealFrame * 60) {
+		_inventory.add(_pickupItem, false);
 		// Retail 0x410c40 uses the same distant position as the idle knock.
-		_audio.playEffectAt(1, Common::Point(512, 600));
+		_audio.playEffectAt(1, Common::Point(512, 600), 100, _audio.effectPlaying() ? 1 : 0);
 		_pickupSoundPlayed = true;
 	}
-	const uint pickupFrames = _museum ? ARRAYSIZE(kMuseumPickupFrames) : 18;
+	const uint pickupFrames = _museum ? ARRAYSIZE(kMuseumPickupFrames) : 19;
 	if (_pickupItem && now - _pickupStarted >= pickupFrames * 60) {
 		_pickupItem = 0;
+		_inventory.finishPickup();
 		if (_returnAfterPickup && !_speaking)
 			setInventoryOpen(false);
 	}
@@ -303,7 +317,7 @@ void RunawayUI::update(uint32 now, Common::Point mouse, byte roomHotspot, bool b
 		_returnAfterPickup = false;
 		setInventoryOpen(false);
 	}
-	if (_inventoryOpen && !busy() && !_inventory.handling() && !_speaking && _inventory.selected()) {
+	if (_inventoryOpen && !_inventoryPresentation && !busy() && !_inventory.handling() && !_speaking && _inventory.selected()) {
 		if (inViewport())
 			_enteredInventory = true;
 		else if (_enteredInventory)
@@ -559,7 +573,8 @@ void RunawayUI::drawInventory(Graphics::ManagedSurface &screen) {
 			const uint frame = MIN<uint>(ARRAYSIZE(kMuseumPickupFrames) - 1, (_now - _pickupStarted) / 60);
 			_portrait.draw(screen, kMuseumPickupFrames[frame], 0, kRunawayViewportTop);
 		} else {
-			_portrait.draw(screen, 64 + MIN<uint>(17, (_now - _pickupStarted) / 60), 0, kRunawayViewportTop);
+			const uint step = MIN<uint>(18, (_now - _pickupStarted) / 60);
+			_portrait.draw(screen, step ? 63 + step : 0, 0, kRunawayViewportTop);
 		}
 	} else if (_inventoryFrame != 0xff) {
 		_portrait.draw(screen, _inventoryFrame, 0, kRunawayViewportTop);
diff --git a/engines/hollywood/runaway/ui.h b/engines/hollywood/runaway/ui.h
index a81686d5de1..2b5614bb468 100644
--- a/engines/hollywood/runaway/ui.h
+++ b/engines/hollywood/runaway/ui.h
@@ -101,9 +101,11 @@ private:
 	byte _inventorySpeechPose = 0;
 	bool _inventoryOpen = false, _enteredInventory = false, _returnAfterPickup = false;
 	bool _inventoryPresentation = false;
+	bool _returnAfterPresentation = false;
 	bool _roomHasVerbs = true;
 	bool _pointerSound = true;
 	bool _pickupSoundPlayed = false;
+	bool _pickupEffectPlayed = false;
 	bool _blocked = false, _speaking = false, _cursorPushed = false;
 	uint32 _now = 0, _buttonTick = 0, _verbStarted = 0, _portraitTick = 0;
 	uint32 _mouthTick = 0;


Commit: 9156a4e601fd2999684ba78be3b4c0af9fd05667
    https://github.com/scummvm/scummvm/commit/9156a4e601fd2999684ba78be3b4c0af9fd05667
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-28T11:45:44+01:00

Commit Message:
HOLLYWOOD: RUNAWAY: complete the museum safe interaction

Changed paths:
    engines/hollywood/runaway/scene4030.cpp


diff --git a/engines/hollywood/runaway/scene4030.cpp b/engines/hollywood/runaway/scene4030.cpp
index 2aa01d1e203..96ebaa21c26 100644
--- a/engines/hollywood/runaway/scene4030.cpp
+++ b/engines/hollywood/runaway/scene4030.cpp
@@ -271,21 +271,28 @@ RunawayRoomScene::ActionResult Scene4030::dispatchCustomSceneAction(uint16 actio
 void Scene4030::finishCustomAnimation(uint16 action) {
 	if (action == 321) {
 		_safeOpen = !_safeOpen;
+		refreshMuseum();
 		if (_safeOpen && !_museum.safeUsed) {
 			_museum.safeUsed = 1;
-			say(20, 1);
+			walkTo(Common::Point(550, 647), 7, false, true);
+			deferMuseumAction(401);
 		}
-		refreshMuseum();
+	} else if (action == 401) {
+		say(20, 1);
 	}
 }
 
 void Scene4030::handleAnimationFrameHook() {
 	if (_roomAction == 321) {
 		if (_actionStep == 21) {
-			_audio.playEffect(36);
+			_audio.playEffectAt(36, Common::Point(433, 200), 100, 0);
 		}
 		if (_actionStep == 27) {
-			_audio.playEffect(_safeOpen ? 39 : 38, 30);
+			_audio.playEffectAt(39, Common::Point(470, 200), 30, 1);
+		}
+		if (_actionStep == 38) {
+			// The safe's secondary animation reaches step 12 here.
+			_audio.stopEffect(1);
 		}
 	}
 }


Commit: 1e26246652e4a2ff9a9947aa437debeb8d7e8b03
    https://github.com/scummvm/scummvm/commit/1e26246652e4a2ff9a9947aa437debeb8d7e8b03
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-28T11:45:44+01:00

Commit Message:
HOLLYWOOD: RUNAWAY: animate scripted body turns

Changed paths:
    engines/hollywood/runaway/scene2080.cpp
    engines/hollywood/runaway/scene8400.cpp


diff --git a/engines/hollywood/runaway/scene2080.cpp b/engines/hollywood/runaway/scene2080.cpp
index a5cb82fbec0..32337eb0ff1 100644
--- a/engines/hollywood/runaway/scene2080.cpp
+++ b/engines/hollywood/runaway/scene2080.cpp
@@ -171,6 +171,7 @@ RunawayRoomScene::ActionResult Scene2080::dispatchCustomSceneAction(uint16 actio
 	case 320: // Use the toilet.
 		say(action == 311 ? 6 : 15);
 		_roomAction = action;
+		_actionStage = 0;
 		return kHandled;
 	default:
 		return kUnhandled;
@@ -235,10 +236,14 @@ bool Scene2080::updateCustomSequence() {
 			_inventory.remove(13);
 			pickUp(13, 4);
 		}
-	} else if ((_roomAction == 311 || _roomAction == 320) && !speaking()) {
-		_facing = 4;
-		say(_roomAction == 311 ? 6 : 15, 1);
-		_roomAction = 0;
+	} else if ((_roomAction == 311 || _roomAction == 320) && !speaking() && !_walkPath.active()) {
+		if (!_actionStage) {
+			_actionStage = 1;
+			walkTo(_position, 4, true);
+		} else {
+			say(_roomAction == 311 ? 6 : 15, 1);
+			_roomAction = 0;
+		}
 	}
 	return true;
 }
diff --git a/engines/hollywood/runaway/scene8400.cpp b/engines/hollywood/runaway/scene8400.cpp
index 4055c6561d5..876f95acf77 100644
--- a/engines/hollywood/runaway/scene8400.cpp
+++ b/engines/hollywood/runaway/scene8400.cpp
@@ -346,7 +346,10 @@ RunawayRoomScene::ActionResult Scene8400::dispatchCustomSceneAction(uint16 actio
 		_finale.trailerDoor = 1;
 		_doorFrame = 2;
 		updateMaps();
-		_facing = 0;
+		walkTo(_position, 0, true);
+		deferAction(406);
+		break;
+	case 406: // Comment after turning, then enter the trailer.
 		say(10, 1);
 		deferAction(307);
 		break;


Commit: 38667b78fee75b4ae842281fedf3f6ad4f07fdee
    https://github.com/scummvm/scummvm/commit/38667b78fee75b4ae842281fedf3f6ad4f07fdee
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2026-11-28T11:45:44+01:00

Commit Message:
HOLLYWOOD: RUNAWAY: fixed some missing sound positions

Changed paths:
    engines/hollywood/runaway/scene2020.cpp
    engines/hollywood/runaway/scene2080.cpp


diff --git a/engines/hollywood/runaway/scene2020.cpp b/engines/hollywood/runaway/scene2020.cpp
index 970b1a03ecb..10aaef8f321 100644
--- a/engines/hollywood/runaway/scene2020.cpp
+++ b/engines/hollywood/runaway/scene2020.cpp
@@ -858,10 +858,10 @@ void Scene2020::finishCustomAnimation(uint16 action) {
 
 void Scene2020::handleAnimationFrameHook() {
 	if ((_roomAction == 335 && _actionStep == 15) || (_roomAction == 339 && _actionStep == 47)) {
-		_audio.playEffect(46);
+		_audio.playEffectAt(46, Common::Point(760, 200));
 	}
 	if (_roomAction == 339 && _actionStep == 16) {
-		_audio.playEffect(45);
+		_audio.playEffectAt(45, Common::Point(760, 200));
 	}
 	if (_roomAction == 339 && _actionStep == 1 && !applyPatch(18)) {
 		error("Cannot clear Runaway hospital chart");
diff --git a/engines/hollywood/runaway/scene2080.cpp b/engines/hollywood/runaway/scene2080.cpp
index 32337eb0ff1..d24764f3d8e 100644
--- a/engines/hollywood/runaway/scene2080.cpp
+++ b/engines/hollywood/runaway/scene2080.cpp
@@ -204,7 +204,7 @@ bool Scene2080::updateCustomSequence() {
 		_actionStep = (_now - _actionStarted) / 80;
 		if (!_actionStage) {
 			if (previous < 12 && _actionStep >= 12) {
-				_audio.playEffect(31);
+				_audio.playEffectAt(31, Common::Point(600, 200));
 			}
 			if (_actionStep >= 19) {
 				_actionStage = 1;
@@ -213,7 +213,7 @@ bool Scene2080::updateCustomSequence() {
 			}
 		} else if (_actionStage == 2) {
 			if (_hospital.markerTaken && previous < 2 && _actionStep >= 2) {
-				_audio.playEffect(30, 80);
+				_audio.playEffectAt(30, Common::Point(600, 200), 80);
 			}
 			const uint duration = _hospital.markerTaken ? 19 : 12;
 			if (_actionStep >= duration) {
@@ -228,7 +228,7 @@ bool Scene2080::updateCustomSequence() {
 		const uint previous = _actionStep;
 		_actionStep = (_now - _actionStarted) / 80;
 		if (previous < 20 && _actionStep >= 20) {
-			_audio.playEffect(38, 80);
+			_audio.playEffectAt(38, Common::Point(600, 200), 80);
 		}
 		if (_actionStep >= ARRAYSIZE(kFillGlassFrames)) {
 			_roomAction = 0;




More information about the Scummvm-git-logs mailing list