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 → Start Cog - Force Powers
Start Cog - Force Powers
2001-10-04, 7:28 AM #1
The problem is, When you press escape and goto the Jedi Powers option on the menu the powers don't show up right. Also, if you save the game, exit the level and then start it from the save only the last power used shows up. What is causing this and how do I solve it?
Here's the cog to help.

# Level master COG
#
# [DB]
# THIS COG IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY LUCASARTS ENTERTAINMENT COMPANY.

##########################################################

symbols

message startup
message timer

int player local
end

##########################################################

code

startup:
// Register COG as master COG
SetMasterCOG(GetSelfCOG());
player = GetLocalPlayerThing();
// Initialise Goals
SetInv(player, 99, 1000);
// Give player weapons and ammo
SetInv(player, 1, 1); // fists
SetInv(player, 2, 1); // briar
SetInv(player, 10, 1); // Lightsaber
SetInv(player, 11, 50); // Energy
// Initialize weapon.
SetFireWait(player, -1);
SetMountWait(player, 0);
SetCurInvWeapon(player, 0);
SelectWeapon(player, AutoSelectWeapon(player, 2));

SetTimer(15);
timer:

// Rank 4
SetInv(player, 20, 4.0);
SetInv(player, 14, 4*50);

// Force Jump, level 4
SetInv(player, 21, 4.0);
SetInvAvailable(player, 21, 1);

// Force Speed, level 2
SetInv(player, 22, 2.0);
SetInvAvailable(player, 22, 1);

// Force Seeing, level 0
//SetInv(player, 23, 1.0);
//SetInvAvailable(player, 23, 1);

// Force Pull, level 0
//SetInv(player, 24, 1.0);
//SetInvAvailable(player, 24, 1);

// Force Healing, level 3
SetInv(player, 25, 3.0);
SetInvAvailable(player, 25, 1);

// Force Throw, level 3
SetInv(player, 30, 3.0);
SetInvAvailable(player, 30, 1);

jkSyncForcePowers();
Return;

end
2001-10-04, 8:00 AM #2
I'm not quite sure what your problem is but you might want to try putting a new walkplayer in your level with a new type of kyle.cog with the set inventories. Or look at LEC's cogs. Just to let ya know I don't think very many people look at that screen anyway.
Ohh Crap! - Darien Fawkes (The Invisible Man)
2001-10-04, 1:39 PM #3
I bet alot of people will be looking at that screen if the save it, exit the level and then load up the save later and find most of the force powers gone!
I already have tried putting a new walkplayer in (by accident but it still counts :-) ). I've tried modifing this cog and made a new cog so not any of them.
I will have a look at LucasArts cogs but I don't think that will work. What I do think is that it's something to do with the Jedi rank although I can't be sure. When it comes to cogs I'm only a novice (but I am learning, slowly, very slowly).
2001-10-06, 1:18 PM #4
Any help here would be hot.

↑ Up to the top!