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 → broken camera
broken camera
2003-06-13, 7:40 AM #1
Code:
# Jedi Knight Cog Script
#
# 
#
# 
#
# [EH_AceTFL]
#
# ========================================================================================

symbols
   	message	entered
      
                                          
	thing		jobman 		linkid=0 mask=0x405
	thing		key		linkid=1 mask=0x405
	thing		newkeypost 	linkid=2 mask=0x405
	sector		ccsec		linkid=3 mask=0x405
	sector		Sector		linkid=4 mask=0x405
	int		talked=0 local
	thing		cc
	thing           techcam
	thing		jumpghost
end

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

code

entered:

if ((GetSenderID() == 4) && (talked == 0))
{
player = GetLocalPlayerThing();
jkBeginCutscene();
SetActorFlags(player, 0xa00000);
StopThing(player);
	Print("Ahh.. here you are..");
        sleep(2);
	Print("I got job for you... but you must left the city now..");
	sleep(2);
	Print("My frend need help on one of communication ballons. He say that pirates attack it..");
	sleep(2);
	Print("I can pay well...");
	sleep(2);
	Print("..and you can take one of my cloud cars");
	talked = 1;
jkEndCutscene();
ClearActorFlags(Player, 0xa00000);
}

if ((GetSenderID() == 3) && (talked == 1))
{
Print("Cloud Cars are here.. i gona take them..");
sleep(4);
SetActorFlags(player, 0xa00000);
StopThing(player);
SetCameraFocus(0, techcam);
Movetoframe(cc, 1, 10);
Movetoframe(cc, 2, 20);
TeleportThing(player, jumpghost); 
waitforstop(cc);
SetCameraFocus(0, player);
MoveToFrame(firstdoor, 0, doorspeed);
ClearActorFlags(Player, 0xa00000);
}
Return;

end


you know whats wrong?

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-06-13, 8:05 AM #2
for a start you used a MOTS verb (JKbegincutseen) in a JK cog :|
and there where some other errors, all good now [http://forums.massassi.net/html/biggrin.gif]

Code:
# Jedi Knight Cog Script
#
# 
#
# 
#
# [EH_AceTFL]
#
# ========================================================================================
symbols
message      entered                                                          


thing        jobman                             linkid=0                      mask=0x405
thing        key                                linkid=1                      mask=0x405
thing        newkeypost                         linkid=2                      mask=0x405
sector       ccsec                              linkid=3                      mask=0x405
sector       Sector                             linkid=4                      mask=0x405
int          talked=0                           local                         
thing        cc                                                               
thing        techcam                                                          
thing        jumpghost                                                        
thing        player                             local                    
flex	 doorspeed=5     
thing	 firstdoor
end                                                                           
# ========================================================================================
code
entered:
if ((GetSenderID() == 4) && (talked == 0))
{
player = GetLocalPlayerThing();
SetActorFlags(player, 0xa00000);
StopThing(player);
Print("Ahh.. here you are..");
sleep(2);
Print("I got job for you... but you must left the city now..");
sleep(2);
Print("My frend need help on one of communication ballons. He say that pirates attack it..");
sleep(2);
Print("I can pay well...");
sleep(2);
Print("..and you can take one of my cloud cars");
talked = 1;
ClearActorFlags(Player, 0xa00000);
}
if ((GetSenderID() == 3) && (talked == 1))
{
Print("Cloud Cars are here.. i gona take them..");
sleep(4);
SetActorFlags(player, 0xa00000);
StopThing(player);
SetCameraFocus(0, techcam);
Movetoframe(cc, 1, 10);
Movetoframe(cc, 2, 20);
TeleportThing(player, jumpghost); 
waitforstop(cc);
SetCameraFocus(0, player);
MoveToFrame(firstdoor, 0, doorspeed);
ClearActorFlags(Player, 0xa00000);
}
Return;
end


------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's

-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO

Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-06-13, 8:07 AM #3
umm becouse it IS MOTS [http://forums.massassi.net/html/smile.gif]

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-06-13, 8:15 AM #4
enyway, broken again

------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
2003-06-15, 2:02 PM #5
What do you mean "broken"? What exactly is the problem? What parts of the cog work, if any?

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!