Quickie on Force Powers


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Pugi on September 14, 1998 at 16:22:44:

Here are the lines of code I use to start a level
with force powers:

In name_start.cog, after the weapon initialization
section there will be a few lines, like so:

SetTimer(15);
timer
//force ranking

NEXT, you need force ranking, inventory bin# 20 in the
JK Specs. Ranking is given by the following line(in
this example, the rank is 7 of 8):

SetInv(player, 20, 7);

NEXT, you need force points to go with your rank.
I think for each rank, you get 50 points:

SetInv(player, 14, 7*50);

NOW, two more lines are needed, (1) to state how many
stars are in the force power, & (2) to state that the
force power is available. In the following example,
the following assigns 3 stars out of 4. The '1' in the
last entry of statement (2) means available; a '0' would
indicate not available.

SetInv(player, 22, 3); //Speed is BIN 22
SetInvAvailable(player, 22, 1);

Finally, your force list can look like this.

timer:
// Force ranking
SetInv(player, 20, 7);
SetInv(player, 14, 7*50);
SetInv(player, 22, 3); // Speed
SetInvAvailable(player, 22, 1);
SetInv(player, 24, 3); // Pull
SetInvAvailable(player, 24, 1);
SetInv(player, 23, 3); // Seeing
SetInvAvailable(player, 23, 1);
SetInv(player, 21, 3); // Jump
SetInvAvailable(player, 21, 1);
SetInv(player, 25, 3); // Heal
SetInvAvailable(player, 25, 1);
SetInv(player, 26, 3); // Persuasion
SetInvAvailable(player, 26, 1);
SetInv(player, 27, 3); // Blind
SetInvAvailable(player, 27, 1);

Ignite your saber, and may the force be with you.

Pugi




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]