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 → secret areas
secret areas
2000-12-25, 5:43 PM #1
What cog do use for secret areas. Also, what do parameters mean? [http://forums.massassi.net/html/confused.gif]
"Intelligent people know of what they speak; fools speak of what they know."

- Minchas Shabbos Pirkei Avos 3:18 / Ethics Of The Fathers
2000-12-25, 5:51 PM #2
Parametre - something that is determined by something else. Example - a parametre in JED would be boxes you have to fill in for a cog.
As for the cog, you mean something where you enter a sector and it says "Secret Area!" and plays a little sound, right? Use 00_secretareas.cog. If you are to lazy to extract it, here it is:
Code:
# Jedi Knight Cog Script
#
# 00_SECRETAREAS.COG
#
# Maximum of 20 Secret areas, triggered upon entering a marked sector
#
# [IS & YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols

sector      secret0                          nolink local
sector      secret1                          linkid=1
sector      secret2                          linkid=2
sector      secret3                          linkid=4
sector      secret4                          linkid=8
sector      secret5                          linkid=16
sector      secret6                          linkid=32
sector      secret7                          linkid=64
sector      secret8                          linkid=128
sector      secret9                          linkid=256
sector      secret10                         linkid=512
sector      secret11                         linkid=1024
sector      secret12                         linkid=2048
sector      secret13                         linkid=4096
sector      secret14                         linkid=8192
sector      secret15                         linkid=16384
sector      secret16                         linkid=32768
sector      secret17                         linkid=65536
sector      secret18                         linkid=131072
sector      secret19                         linkid=262144
sector      secret20                         linkid=524288

int         player                           local
int         maxSecrets=0                     local
int         flags=0                          local
int         i=0                              local

sound			wav0=Activate01.wav					local

message     startup
message     entered

end

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

code
startup:
   player = GetLocalPlayerThing();

   // Total secret areas
   for(i=1; i<=20; i=i+1)
   {
      if(secret0 >= 0)
      {
         maxSecrets = maxSecrets + 1;
      }
   }

   SetInv(player, 70, 0);              // set Secrets Found
   SetInv(player, 71, maxSecrets);     // set Max Secrets on Level

   Return;

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

entered:
   // Secret already visited
   if (flags & GetSenderID()) Return;

   flags = flags | GetSenderId();

	// Add one to secret counter
   ChangeInv(player, 70, 1.0);

   // Print("Entered Secret Area.");
   jkPrintUNIString(player, 360);

	PlaySoundLocal(wav0, 1.0, 0.0, 0x0);

   Return;

end


------------------
All that is gold does not glitter, Not all those who wander are lost; The old that is strong does not wither,
Deep roots are not reached by the frost. From the ashes a fire shall be woken, A light from the shadows shall spring; Renewed shall be blade that was broken, The crownless again shall be king.
2000-12-25, 5:57 PM #3
Easy, just add 00_secretareas.cog (in Res2.gob) to your level and there should be 20 little parameters that say secret** (sector). Now find out what sectors you want to be secret and jot their numbers down and type em in the parameter boxes. If you don't have 20 sectors you want to be secret, leave the unused ones at -1.

---------------------------------------------

"Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for."

- In memory of Knight Lighting

[This message has been edited by control-c (edited December 25, 2000).]
"The Force is an energy field, fed by all living things. All living things have darkness within them that feeds the dark side of the Force. The universe rages. My own anger can unlock and unleash the anger of the cosmos. From this act flows the power of the dark side."
-From The Book of Anger

↑ Up to the top!