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 → Fun little cutscene thingy.
Fun little cutscene thingy.
2004-06-03, 11:34 PM #1
Ok this is kinda hard so ill stay as clear as I can, I need a cog that when you up to a thing (man) and activate it (him) it prints

"Kyle: Hi, I need to get to the lower levels of coruscant Ill pay you to take me there"

Then a small rest then it prints.

"Man: I dont need money but ill take you if you do me a favour"

Rest

"Kyle: What?"

Rest

"Man: A thug has taken over my house, if you kill him ill take you."

Now at this point it checks to see if a designated thing is still alive, if it isnst then it prints

"Kyle: You mean the one in room 4, Ive already wacked him."

Rest

"Man: Really?"

Rest

"Kyle: yea."

Rest

"Man: Ok ill take you."

Then it plays a keyframe on a particular thing which is not the man then it moves that thing through nine frames then when it stops it plays a different keyframe on the same thing.

But if the designated thing was still alive then it prints

"Kyle: Ok which room."

Rest

"Man: Room 4."

Then it gives you a goal in the goal window that says "Kill the thug who has taken over the mans house."

At the same time it prints "Goal Recieved- Check objectives for details.

Then when you kill the thing the goal is accomplished.

You go back and activate the man a it prints

"Kyle: I wacked him."

Rest

"Man: Really, hes dead?"

Rest

"Kyle: Yea I killed him."

Rest

"Man: Ok lets go"

Then it plays a keyframe on a particular thing which is not the man then it moves that thing through nine frames then when it stops it plays a different keyframe on the same thing.

Thanks for your time.


------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-06-04, 5:02 AM #2
Usually I don't ask this, but since this cog was so annoying to write, please include me in the credits.

Code:
# a_cutscene.cog
# [Grismath]
#======================================================================================#
symbols
message		activated
message		killed
thing		player		local
thing		man
thing		thug
int		isKilled=0	local
keyframe	suparkey
keyframe	otherkey
thing		mover
end
#======================================================================================#
code
#--------------------------------------------------------
activated:
if(GetSenderRef()==man) {
 player=GetLocalPlayerThing();
 SetActorFlags(player, 0xa00000);
 StopThing(player);
 Print("KYLE: Hi, I need to get to the lower levels of Coruscant.");
 Print("I'll pay you to take me there");
 Sleep(3.0);
 Print("Man: I dont need money but ill take you if you do me a favour");
 Sleep(2.0);
 Print("Kyle: What?");
 Sleep(2.0);
 Print("Man: A thug has taken over my house, if you kill him, I'll take you.");
 Sleep(2.0);
 if(isKilled==1) {
  Print("KYLE: You mean the one in room 4, Ive already whacked him.")
  Sleep(2.0);
  Print("Man: Really?");
  Sleep(2.0);
  Print("Kyle: yea.");
  Sleep(2.0);
  Print("Man: Ok ill take you.");
  Sleep(2.0);
  PlayKey(mover, suparkey, 1, 32);
  Sleep(2.0);
  MoveToFrame(mover, 9, 3);
  Sleep(5.0);
  PlayKey(mover, otherkey, 1, 32);
 } else {
 Print("Kyle: Ok, which room?");
 Sleep(2.0);
 Print("Man: Room 4.");
 // Get GOAL! for this. :P
 // Then it gives you a goal in the goal window that says "Kill the thug who has taken over the mans house."
 // At the same time it prints "Goal Recieved- Check objectives for details.
}
return;
#--------------------------------------------------------
killed:
if(GetSenderRef()==thug) isKilled=1;
return;
#--------------------------------------------------------
end


------------------
Rites of Xanthus

The TC that exacted a terrible toll on my time and eyesight.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-04, 12:19 PM #3
Thanks alot an of course ill include you in the credits.

------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-06-04, 1:27 PM #4
Theres just a few problems when I activate the man nothing happens. Also can you make it if you talk to the man but you havent killed the thug and he send you off to kill him once you kill him come back and activate the man it doesnt repeat the whole conversation again it just says.

Kyle: I killed him.
Man: Really?
Kyle: Yea hes dead.
Man: Ok lets go.

Thanks(<--Dont print that)

------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-06-07, 6:15 PM #5
If I could bring attension to the above post once more.

------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi
2004-06-09, 8:10 AM #6
Code:
# a_cutscene.cog
# [Grismath]
#======================================================================================#
symbols
message		activated
message		killed
thing		player		local
thing		man
thing		thug
int		isKilled=0	local
keyframe	suparkey
keyframe	otherkey
thing		mover
int		talked=0	local
end
#======================================================================================#
code
#--------------------------------------------------------
activated:
if(GetSenderRef()==man) {
 player=GetLocalPlayerThing();
 SetActorFlags(player, 0xa00000);
 StopThing(player);
 if(talked==0) {
 talked=1;
 Print("KYLE: Hi, I need to get to the lower levels of Coruscant.");
 Print("I'll pay you to take me there");
 Sleep(3.0);
 Print("Man: I dont need money but ill take you if you do me a favour");
 Sleep(2.0);
 Print("Kyle: What?");
 Sleep(2.0);
 Print("Man: A thug has taken over my house, if you kill him, I'll take you.");
 Sleep(2.0);
 if(isKilled==1) {
  Print("KYLE: You mean the one in room 4, Ive already whacked him.")
  Sleep(2.0);
  Print("Man: Really?");
  Sleep(2.0);
  Print("Kyle: yea.");
  Sleep(2.0);
  Print("Man: Ok ill take you.");
  Sleep(2.0);
  PlayKey(mover, suparkey, 1, 32);
  Sleep(2.0);
  MoveToFrame(mover, 9, 3);
  Sleep(5.0);
  PlayKey(mover, otherkey, 1, 32);
  Sleep(4.0);
   ClearActorFlags(player, 0xa00000);
 } else {
 Print("Kyle: Ok, which room?");
 Sleep(2.0);
 Print("Man: Room 4.");
 // Get GOAL! for this. :P
 // Then it gives you a goal in the goal window that says "Kill the thug who has taken over the mans house."
 // At the same time it prints "Goal Recieved- Check objectives for details.
 } else {
 if(isKilled==1) {
Print("Kyle: I killed him.");
Sleep(2.0);
Print("Man: Really?");
Sleep(2.0);
Print("Kyle: Yea hes dead.");
Sleep(2.0);
Print("Man: Ok lets go.");
Sleep(2.0);
PlayKey(mover, suparkey, 1, 32);
  Sleep(2.0);
  MoveToFrame(mover, 9, 3);
  Sleep(5.0);
  PlayKey(mover, otherkey, 1, 32);
    Sleep(4.0);
 ClearActorFlags(player, 0xa00000);
 } else { Print("Man: Go and kill him!"); }
}
}
return;
#--------------------------------------------------------
killed:
if(GetSenderRef()==thug) isKilled=1;
return;
#--------------------------------------------------------
end


You should learn how to do the basics of COG yourself.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-09, 6:25 PM #7
I can make a basic cutscene. I just cant do the bit if youve killed the dude and that jazz. But yes I should and thanks for the cog.

------------------
~Nightfire Mod~
Spoting an error in post will result in a $100 reward.
Offer expires on 6/6/06. Valid one per customer, per day.

Rangi

↑ Up to the top!