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 → PPLE WHO KNOW HOW TO COG
PPLE WHO KNOW HOW TO COG
2001-01-23, 6:41 PM #1
I've been asked to help make cogs for a lvl in JK with a stargate. Dum dum da dum. I cant make cogs. I intend to learn....can someone help me out? I may not be able to do what he's asking....And i will need help anyway. Anyone willing plz email me.
Thanks
Anthony

------------------
One ring to rule them all,
One ring to find them,
One ring to bring them all and in the darkness bind them.
Founder of the Massassi Brute Squad (MBS)
Morituri Nolumus Mori
2001-01-24, 11:18 AM #2
Thanks for starting this off ANthony, I made a brake through with one of my cogs:

Right people, this is what we want. You press a console, 8 pieces of stone move, wait a bit, then 4 rings com down to th e player, wait a bit, a sectorthrust is created pushing the player up to another floor.
I got it working at one point, but Ive changed it and now nothing happens:
have a look


symbols
message activated


sector thrustsector

thing console
thing slice0
thing slice1
thing slice2
thing slice3
thing slice4
thing slice5
thing slice6
thing slice7
thing ring0
thing ring1
thing ring2
thing ring3

end

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

code
activated:

movetoframe(slice0, 1, speed);
movetoframe(slice1, 1, speed);
movetoframe(slice2, 1, speed);
movetoframe(slice3, 1, speed);
movetoframe(slice4, 1, speed);
movetoframe(slice5, 1, speed);
movetoframe(slice6, 1, speed);
movetoframe(slice7, 1, speed);

sleep0.5=

movetoframe(ring0, 1, speed);
sleep0.5=
movetoframe(ring1, 1, speed);
sleep0.5=
movetoframe(ring2, 1, speed);
sleep0.5=
movetoframe(ring3, 1, speed);

sleep1=

SetSectorThrust(0/0/1, flex3);
sleep1=
SetSectorThrust(0/0/0, flex0);

return;

# ........................................................................................

end

Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-01-24, 11:23 AM #3
Compared with the other cogs that people are working with ,we should have nea problem, its so simple compared (still tricky for me)
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-01-24, 4:59 PM #4
Your problem is in the sleep statements. It should be Sleep(time); not the way you have it.

------------------
-Hell Raiser
"I am not defeated so easily!"
Co-staffer of Rbots
-Hell Raiser
2001-01-25, 8:52 AM #5
Thank you :-)
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-01-26, 6:56 AM #6
Try to refrain from posting topics in all CAPITAL LETTERS. IF you do, people often reply only with stuff like "This will be closed". Just a friendly reminder [http://216.105.160.32/html/biggrin.gif]

------------------
Together we stand.
Divided we fall.
2001-01-26, 11:48 AM #7
HELP! I can get the stones to move and now the rings come down(looks cool). When I added ;

sleep(time1);

move the rings back up(simplified)

sleep(time1);

move the stones back

the stones open, the rings start to come down, but suddenly they go back to frame 0 and so do all the stones . What is this? Smthing to do with time
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-01-26, 11:34 PM #8
Ahh ok. Thanks.
Founder of the Massassi Brute Squad (MBS)
Morituri Nolumus Mori
2001-01-26, 11:40 PM #9
hooo....
Maybe you have somewhere in there a syntax error that makes JK go back to frame 0.
Hmm...just thinking.....Can you do sub programs in COG? I dont think you should have it that way. Try telling it to when you press da dam big button, to execute program A, which moves some stones, then tell at the end of program A, to goto program B. Program B will have in it the code to move the rings down. Now tell it to goto program C, which will move the rings back, the program D will tell it to move the stones.
What stones BTW?
Anthony
Founder of the Massassi Brute Squad (MBS)
Morituri Nolumus Mori

↑ Up to the top!