What is it with me and--- fixed!!! :)

Started by Meowster, Sun 02/11/2003 19:03:33

Previous topic - Next topic

Meowster

:(

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?!?? :(

Squinky

I think once you change a characters view, you need to reset it. I don't quite remember the name of the function, nut if you look up characters functions in the manual you'll find it...It's like ResetCharacter or something simialar...

Meowster

ReleaseCharacterView :(

I tried this, and it totally didn't work. Besides that, I don't have this problem anywhere else in the game where changing views are concerned. I'm just plain confused now.

Woe.

On the plus side, I did make the cut scene skippable, and the text outside of it skippable. That's a good thing.

Pumaman

Quotefunction room_b() {
// script for room: First time player enters screen
SetCharacterView(EGO,1);
LoseInventory(12);
}

SetCharacterView is for temporary changes - try using ChangeCharacterView there instead.

Meowster

CJ I swear to GOD, you come second only to Tim Schafer.

I love you!

That was so STUPID, I can't believe I didn't see that!!! I went through it a million times!! I even knew it!!! I never saw it!!! Dear LORD.

I've spent weeks trying to figure that out and not mentioning it because I knew it was gonna be something small and stupid like that.

Thanks :)

It worked :)

After

Aww ... I wanted to play the one with inexplicable bouts of head-smacking  ;D

SMF spam blocked by CleanTalk