
Here's the problem: Ian falls off a roof, lands on his head, gets up. Everything is normal. Player eats sleeping pills. Player gets transported to new room. Everything is still normal. Player does ANYTHING, and all of a sudden, Ian is smacking his head off the ground instead of walking.
Basically, what seems to be happening is that after he is transported to the new room, Ian seems to revert back to his "head smacking" view from the previous view as soon as the player clicks on anything in the room.
It completely doesn't make sense. I checked the room scripts for both the new room and the previous room, and everything seems to be in order.
room script file
function room_a() {
// script for room: Player enters screen (before fadein)
ChangeCharacterView(EGO,44);
SetCharacterTransparency(EGO,0);
}
function room_b() {
// script for room: Player enters screen (after fadein)
AnimateCharacter(EGO,0,5,0);
Wait(40);
DisplaySpeech(EGO, "Papapishu!!!.");
ChangeCharacterView(EGO,15);
Wait(40);
AddInventory(12);
ChangeCharacterView(EGO,1);
DisplaySpeech(EGO, "Dumb Child Safety Caps.");
}
That's the room script file for the OLD room, view 1 being Ian's "normal" view, view 15 being his "Pick Up" view, and the other one being his "I Like to Smack My Head Off Things Randomly" view.
Here's the room script file for the NEW room, the one where the problem occurs:
function hotspot1_a() {
// script for hotspot1: Look at hotspot
SetObjectView(0,29);
DisplaySpeech(EGO, "It looks really far away...");
ObjectOn(0);
AnimateObjectEx(0,0,6,0,0,1);
DisplaySpeech(EGO, "Purple Monkey Dishwasher.");
}
function room_a() {
// script for room: Player enters screen (before fadein)
GUIOn(2);
}
function object0_a() {
// script for object0: Interact object
FadeOut(1);
NewRoomEx(32,35,101);
}
function hotspot2_a() {
// script for hotspot2: Look at hotspot
DisplaySpeech(EGO, "It's some sort of a web...");
}
function hotspot3_a() {
// script for hotspot3: Look at hotspot
DisplaySpeech(EGO, "It's a really thick web... sort of a ghostly blue...");
DisplaySpeech(EGO, "I'd hate to see the creature that spun THAT thing.");
}
function room_b() {
// script for room: First time player enters screen
SetCharacterView(EGO,1);
LoseInventory(12);
}
Eh?!??
