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 → I DID IT!!!
I DID IT!!!
2001-09-14, 2:12 PM #1
it took me a looooonnnngg time to figure out how to do this-

# Jedi Knight Cog Script
#
# ammo07.COG
#
# this cog should allow the person who is useing it to define what he/she want's to add when the player pulls a switch
#
# Matthew P.Grimshaw
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message activated
surface switch0
sound wav0=activate02.wav

flex bryar+1
flex strifle+1
flex thermal+30
flex crossbow+1
flex repeater+1
flex rail+1
flex seqencer+30
flex concussion+1
flex blastech+1
flex scope+1
flex flash+30
flex seeker+1
flex manual+30
flex carbonite+1
flex energy+500
flex power+500
flex health+100
flex shield+200
flex railammo+30
flex seekammo+30
flex carboammo+20

end

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

code
activated:
if ( GetWallCel(switch0) ==1) return;
SetWallCel(switch0, 1);
PlaySoundPos(wav0,SurfaceCenter(switch0), 0.5,-1,-1,0);
ChangeInv(GetLocalPlayerThing(),122,bryar+1);
ChangeInv(GetLocalPlayerThing(),123,strifle+1);
ChangeInv(GetLocalPlayerThing(),124,thermal+30);
ChangeInv(GetLocalPlayerThing(),135,crossbow+1);
ChangeInv(GetLocalPlayerThing(),126,repeater+1);
ChangeInv(GetLocalPlayerThing(),127,rail+1);
ChangeInv(GetLocalPlayerThing(),128,seqencer+30);
ChangeInv(GetLocalPlayerThing(),129,concussion+1);
ChangeInv(GetLocalPlayerThing(),132,blastech+1);
ChangeInv(GetLocalPlayerThing(),133,scope+1);
ChangeInv(GetLocalPlayerThing(),134,flash+30);
ChangeInv(GetLocalPlayerThing(),137,seeker+1);
ChangeInv(GetLocalPlayerThing(),138,manual+30);
ChangeInv(GetLocalPlayerThing(),140,carbonite+1);
ChangeInv(GetLocalPlayerThing(),11,energy+500);
ChangeInv(GetLocalPlayerThing(),12,power+500);
HealThing(GetSourceref(),health+200);
ChangeInv(GetLocalPlayerThing(),60,shield+200);
ChangeInv(GetLocalPlayerThing(),15,railammo+30);
ChangeInv(GetLocalPlayerThing(),91,seekammo+30);
ChangeInv(GetLocalPlayerThing(),90,carboammo+20);
Sleep(.5);
SetWallCel(switch0, 0);
return;

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

end




------------------
I lost a mine! do you have it?(BOOM!)
I droped a trip mine around here, could you help me look for it?
2001-09-14, 6:26 PM #2
Congrads my friend

↑ Up to the top!