Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Cog help
Cog help
2000-11-12, 12:28 PM #1
I'm trying to make a cutscene and I wrote this cog but it doesn't work and I don't know whats goin wrong.
If you guys could point out to me what I'm doin wrong I would appreciate it.
Code:
symbols

message		startup
thing		cam
thing 		pirate
thing		pirate2	

end

#========================================================

code

startup:

player = GetLocalPlayerThing();
SetActorFlags(player, 0xa00000);
StopThing(player);
jkBeginCutscene();
SetCurrentCamera(0);
Sleep(1.0);
Print("Pirate2: Did you lock the cargo door?");
sleep(3.0);
Print("Pirate1: I'm not sure.");
sleep(3.0);
Print("Pirate2: Well you should double check to make sure.")
sleep(3.0);
Print("Pirate1: Ok i'm on it.");
jkEndCutscene();
SetCameraFocus(0, Player);
ClearActorFlags(Player, 0xa00000);
end

Thanks,
Jim
"It's best to keep your mouth shut and look like an idiot than to open it and prove it"
- Robert Fletcher
2000-11-12, 1:07 PM #2
You didn't declare player in symbols.
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2000-11-12, 1:48 PM #3
Ok I put "thing player" in the symbols area and then i tested it and it still didn't work.
Do you have any other ideas?
Code:
symbols

message		startup
thing		cam
thing         player
thing 		pirate
thing		pirate2


	

end

#========================================================

code

startup:

player = GetLocalPlayerThing();
AISetLookPos(pirate, GetThingPos(pirate2));
SetGoalFlags(player, 1, 2);
SetActorFlags(player, 0xa00000);
StopThing(player);
jkBeginCutscene();
SetCameraFocus(0, cam);
SetCurrentCamera(0);
Sleep(1.0);
playsoundlocal(beep, 1, 0, 0x0);
Print("Pirate2: Did you lock the cargo door?");
sleep(5.0);
playsoundlocal(beep, 1, 0, 0x0);
Print("Pirate1: I'm not sure.");
sleep(5.0);
playsoundlocal(beep, 1, 0, 0x0);
Print("Pirate2: Well you should double check to make sure.")
sleep(5.0);
playsoundlocal(beep, 1, 0, 0x0);
Print("Pirate1: Ok i'm on it.");
jkEndCutscene();
SetCameraFocus(0, Player);
ClearActorFlags(Player, 0xa00000);
end

Thanks,
Jim
"It's best to keep your mouth shut and look like an idiot than to open it and prove it"
- Robert Fletcher
2000-11-12, 2:23 PM #4
You're missing a semicolon after the Print("Pirate2: Well you should double check to make sure.") line.
2000-11-13, 9:42 AM #5
That was stupid of me.
Thanks anyway. [http://forums.massassi.net/html/smile.gif]
"It's best to keep your mouth shut and look like an idiot than to open it and prove it"
- Robert Fletcher

↑ Up to the top!