PDA

View Full Version : text cog jibba jabba



bleemo
04-16-2002, 01:54 PM
I have a few text cogs in my level but i want them to make the player stop whilst the dialogue comes out. This is because you can be like a few rooms away from th person you are talking too and text is still blabbing away. Also i want it so that the text cog only activates once and that is it.

Here is one of my working text cogs thus far:

symbols
sector sec
message entered

end

code

entered:

Print("Smuggler: Please don't shoot!");
Sleep(1.0);
Print("Kyle: Where is your boss and I won't");
Sleep(1.0);
Print("Smuggler: Urgh, erm...ok he is at a cantina way over town");

return;

end



------------------
NEB

ZOOIkes
04-17-2002, 08:05 AM
StopThing(GetLocalPlayerThing());

bleemo
04-17-2002, 11:23 AM
Cool but where exactly do i put that line???

------------------
NEB

Kievan Mereel
04-17-2002, 12:51 PM
Antony Espinolda's tutorial on Cutscenes has all the cool stuff like that. It is here at Massassi, but I was nice and provided a link here: http://www.massassi.net/tutorials/cutscenes/cutscenes.html

SaberMaster
04-18-2002, 07:28 AM
StopThing() will only stop the player's movement; it won't stop him from moving during the cutscene. So instead, you need to use SetTypeFlags(player, 0xa00000) to immobilize the player. When the cutscene ends, use ClearTypeFlags(player, 0xa00000) to let the player move again.

Put it in your cog like this:


#================================================= ===========#
symbols

sector sec
message entered

end
#================================================= ===========#
code
#----------------------------------------------------------------
entered:
SetTypeFlags(player, 0xa00000);
Print("Smuggler: Please don't shoot!");
Sleep(1.0);
Print("Kyle: Where is your boss and I won't");
Sleep(1.0);
Print("Smuggler: Urgh, erm...ok he is at a cantina way over town");
ClearTypeFlags(player, 0xa00000);

Return;
#----------------------------------------------------------------
end

------------------
Author of the Jedi Knight DataMaster (http://www.geocities.com/sabersdomain/fileframe.html).
Visit Saber's Domain (http://www.geocities.com/sabersdomain).

bleemo
04-18-2002, 09:56 AM
That last one worked chico ta very much.

I haven't started on cutscenes, but that is the next natural step really. So am I to assume a cutscene is really just one long cog???? where in that cog you make the actors do everything i.e. move, text etc. That makes more sense, if so. Also at the end of my level i would love to end it with a text cog and then cut the end of that level. How do i get it so the text rolls out then the level finishes all dramatic like. The bad guys words still lingering in the air type thing, you get the picture.

NEB

------------------
NEB

bleemo
04-19-2002, 10:06 AM
OK i really need to know how to make the text cog play only once. This is because i keep having to wak into one sector in particular and have to endure the same text cog over and over. It has led to me committing mass homocide on the civilians saying it on more then one occasion.



------------------
NEB

ZOOIkes
04-19-2002, 01:44 PM
after the entered message place:

if (done) return;
done = 1;

This'll tell the cog to immediatly jump to the return phrase when done is 1, the cog'll say done when it's done the first time.