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 → a couple of questions
a couple of questions
2003-06-11, 1:38 PM #1
I needl to know how to make a music switch like in SM HQ and also need to know how to maek a lightswitch like on SM HQ as well.

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-11, 3:25 PM #2
SM HQ? Be more specific.

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-06-11, 4:47 PM #3
Sith Mercenaries Head Quarters

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-11, 4:50 PM #4
I never heard of/played the level, so your gonna have to explain the effects.

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-06-11, 6:52 PM #5
The Sound system goes like this, You hit a switch and it plays music in certain sectors, it has four choices Off, Song1,Song2,Song3,Song4, it plays a loop of the song you choose, and, of course, off plays no sound.

The light switch, You hit a switch and it brightens the sectors, or, makes them have no light.

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-12, 4:10 PM #6
I'm sure that if you ask SM Sith Lord if you can use the cogs that he used in SMHQ that he would let you.

------------------
The Editor of bad levels such as:

Battle Ground Oasis The Forgotten Tomb
Office Building Arena
SpacePort Oasis
Wookie Camp
Fade to Black
Thriving Desert
Who made you God to say "I'll take your life from you"?
2003-06-12, 4:34 PM #7
I e-mailed him b4 i posted this and didnt get a reply so i posted then This morning i Got a message saying i could use anything i wabted from SMHQ but thanks for the suggestion

------------------
I and only I know what I'm thinking.
<SalvadorChicka> i wasn't all "omg canadians have sex with each other!"
2003-06-13, 8:28 AM #8
you can use the lighting cog that you used to be able to get from massassi (untill the servers went bad) for the lighting.
Code:
# Jedi Knight Cog Script
#
# 
#  
# [EH_AceCSF]
#
# This COG is NOT supported by LucasArts Entertainment Company

symbols
	message		startup
	message		activated

	thing			Light0		nolink
	thing			Light1		nolink
	surface		swith0		linkid=0
	surface		swith1		linkid=0
        int             startlight=1.0
        int             on=0 local
	sound		activ
	sound		deactiv
end

code
startup:
	SetThingLight(Light0, 0.0, 0.0);
	SetThingLight(Light1, 0.0, 0.0);
	return;

activated:
if ((GetSenderID() == 0) && (on == 1))
{
	playsoundlocal(activ, 1, 0, 132);
	SetThingLight(Light0, 0.0, 0.0);
	SetThingLight(Light1, 0.0, 0.0);
	on=0;
}
else
{
	playsoundlocal(deactiv, 1, 0, 132);
	SetThingLight(Light0, startlight, 0.0);
	SetThingLight(Light1, startlight, 0.0);
	on=1;
}
	return;
end


or my vertion for multiple sectors more.
Code:
# Jedi Knight Cog Script
#
#  (lighting cog)
#  
# [PJB]
#
# This COG is NOT supported by LucasArts Entertainment Company

symbols
	message		startup
	message		Entered
	Message		Exited 

	thing			Light0		nolink
	thing			Light1		nolink
	thing			Light2		nolink
	thing			Light3		nolink
	thing			Light4		nolink
	thing			Light5		nolink
	thing			Light6		nolink
	thing			Light7		nolink
	thing			Light8		nolink
	thing			Light9		nolink
	thing			Light10		nolink
	sector		swith0		linkid=0
	sector		swith1		linkid=0
        int             startlight=1.0
        int             on=0 local
end

code
startup:
	SetThingLight(Light0, 0.0, 0.0);
	SetThingLight(Light1, 0.0, 0.0);
	SetThingLight(Light2, 0.0, 0.0);
	SetThingLight(Light3, 0.0, 0.0);
	SetThingLight(Light4, 0.0, 0.0);
	SetThingLight(Light5, 0.0, 0.0);
	SetThingLight(Light6, 0.0, 0.0);
	SetThingLight(Light7, 0.0, 0.0);
	SetThingLight(Light8, 0.0, 0.0);
	SetThingLight(Light9, 0.0, 0.0);
	SetThingLight(Light10, 0.0, 0.0);

	return;
Exited:
if ((GetSenderID() == 0) && (on == 1))
{
	SetThingLight(Light0, 0.0, 0.0);
	SetThingLight(Light1, 0.0, 0.0);
	SetThingLight(Light2, 0.0, 0.0);
	SetThingLight(Light3, 0.0, 0.0);
	SetThingLight(Light4, 0.0, 0.0);
	SetThingLight(Light5, 0.0, 0.0);
	SetThingLight(Light6, 0.0, 0.0);
	SetThingLight(Light7, 0.0, 0.0);
	SetThingLight(Light8, 0.0, 0.0);
	SetThingLight(Light9, 0.0, 0.0);
	SetThingLight(Light10, 0.0, 0.0);
	on=0;
}
else
{
	SetThingLight(Light0, startlight, 0.0);
	SetThingLight(Light1, startlight, 0.0);
	SetThingLight(Light2, startlight, 0.0);
	SetThingLight(Light3, startlight, 0.0);
	SetThingLight(Light4, startlight, 0.0);
	SetThingLight(Light5, startlight, 0.0);
	SetThingLight(Light6, startlight, 0.0);
	SetThingLight(Light7, startlight, 0.0);
	SetThingLight(Light8, startlight, 0.0);
	SetThingLight(Light9, startlight, 0.0);
	SetThingLight(Light10, startlight, 0.0);
	on=1;
}
	return;
 
Entered:
if ((GetSenderID() == 0) && (on == 1))
{
	SetThingLight(Light0, 0.0, 0.0);
	SetThingLight(Light1, 0.0, 0.0);
	SetThingLight(Light2, 0.0, 0.0);
	SetThingLight(Light3, 0.0, 0.0);
	SetThingLight(Light4, 0.0, 0.0);
	SetThingLight(Light5, 0.0, 0.0);
	SetThingLight(Light6, 0.0, 0.0);
	SetThingLight(Light7, 0.0, 0.0);
	SetThingLight(Light8, 0.0, 0.0);
	SetThingLight(Light9, 0.0, 0.0);
	SetThingLight(Light10, 0.0, 0.0);
	on=0;
}
else
{
	SetThingLight(Light0, startlight, 0.0);
	SetThingLight(Light1, startlight, 0.0);
	SetThingLight(Light2, startlight, 0.0);
	SetThingLight(Light3, startlight, 0.0);
	SetThingLight(Light4, startlight, 0.0);
	SetThingLight(Light5, startlight, 0.0);
	SetThingLight(Light6, startlight, 0.0);
	SetThingLight(Light7, startlight, 0.0);
	SetThingLight(Light8, startlight, 0.0);
	SetThingLight(Light9, startlight, 0.0);
	SetThingLight(Light10, startlight, 0.0);
	on=1;
}
	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, 11:18 PM #9
umm.. im wrong or i alredy uploaded lightswith cog on Massassi Temple?

------------------
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-14, 5:02 AM #10
Bloody hell!!! Use arrays!!!!

------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
And when the moment is right, I'm gonna fly a kite.
2003-06-15, 2:07 PM #11
Ditto. [http://forums.massassi.net/html/eek.gif]

Shameless plug. [http://forums.massassi.net/html/wink.gif]

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2003-06-19, 1:20 PM #12
i would use arrays, but i dont know how :-O i know, that sounded proper bo sleceta!

------------------
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-19, 2:51 PM #13
LOL, you didn't follow my 'shameless plug.'

------------------
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!