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 → text cog
text cog
2002-03-21, 8:38 AM #1
I downloaded the text cog and followed th instructions or atleast I think i did. I changed the cog's text via worpad to say what i wanted to say. Then I added it in my level and chose one of my sectors to activate it, but when i tested it it never worked. So firstly what am I doing wrong, then if i ever get it to work, how do i have a lot of different messages do i just have to keep renameing the file with the versions of text that i want in my level???????? Because at different points I want different text messages. Oh and also I just guessed at this but how do you get it to say three different things in one go, for instance one person says on thing

Smuggler: _______

then kyles text

Kyle______

then back to the smuggler
Smuggler_____

How would i get it to do that. Bare in mind i know nowt about cog really.

------------------
NEB
NEB
2002-03-21, 8:48 AM #2
Post the code and mabey we can show you the problem.
Ive moved over to JK2
2002-03-21, 9:06 AM #3
symbols

sector sec
message entered

end

code

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

end


that is it in a nutshell obviously i selected the sector when i added the cog.

------------------
NEB
NEB
2002-03-21, 11:36 AM #4
Try:


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
- Wisdom is 99% experience, 1% knowledge. -
2002-03-22, 1:30 AM #5
thanks i will give it a go.

------------------
NEB
NEB
2002-03-22, 1:59 AM #6
it didn't work but i know why now, when i saved it it saved as a text file not a cog. So how do I edit a cog then save it back as a cog cos when i save it i did save it as, textcog.cog.



------------------
NEB
NEB
2002-03-22, 4:10 AM #7
In the 'Save as' dialog box, put the filename in quotes, "Blah.cog". The quotes force the program to use the supplied extension.

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-22, 4:38 AM #8
cheers that worked.

------------------
NEB
NEB
2002-03-22, 4:53 AM #9
Aghhhh now nether cogs kind of work. One does but only when it feels like it. I walk in that sector and nothing will happen then maybe 5 mins later it will come up with the text then sometimes it will not the 2nd one doesn't work at all. I renamd the 2nd one obvioulsy cos i wanted different text could this have something to do with it????

------------------
NEB
NEB
2002-03-22, 6:20 AM #10
Also is there a cog that would do the following??

Basically following on from the last cog kyle has been asked for his papers for entry into the city but he has none. So I want 2 gammorean guards at the entrance and they will leave him be as long as he doesn't try and get past the gates then they will attack how do I do that????

------------------
NEB
NEB
2002-03-24, 12:21 AM #11
Quote:
<font face="Verdana, Arial" size="2">Originally posted by bleemo:
Also is there a cog that would do the following??

Basically following on from the last cog kyle has been asked for his papers for entry into the city but he has none. So I want 2 gammorean guards at the entrance and they will leave him be as long as he doesn't try and get past the gates then they will attack how do I do that????

</font>


Same in english, please?

------------------
Life is like... skating... yeah, skating is a good example. You see someone skating and think "Hey, that looks like fun and easy!". You go and buy a skateboard and try, you get a few broken bones, asphalt-face and stuff... But hey, i'm not the one who gets hurt!
Last edited by mb; today at 10:55 AM.
2002-03-24, 12:45 AM #12
well, i think you basically want an ai, that gets aggressive when the player enters certain sectors (the one behind the gate). I think it should be possible, but I have no experience with ai...sadly.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-03-24, 5:06 AM #13
I am still having problems with geting my text cogs to work i seleted the sector i want but when i walk into that sector it doesn't do anything excep once when it justworked all of a sudden but never did it again.


------------------
NEB
NEB
2002-03-24, 6:12 AM #14
Quote:
<font face="Verdana, Arial" size="2">Originally posted by CaveDemon:
Same in english, please?

</font>


I found what he said to be perfectly clear.

Basically what you want to do is get a cog that uses AiSetClass() to make the AI that of a pedestrian or something on startup, but that of the regular gammorean on entry of a sector. Shouldn't be hard at all.


[This message has been edited by Aglar (edited March 24, 2002).]

↑ Up to the top!