Jump to content

Home

Learning lightsaber forms early


Hoplite28

Recommended Posts

I read somewher that lightsaber forms were hardcoded into the game, so they couldn't be editted. But then I also downloaded a mod that allowed you to learn every lightsaber form at any time via talking to Kreia.

 

I was just curious if someone could teach me which file to edit to determine when you learn lightsaber forms. I'm okay with the Jedi Masters teaching you later lightsaber forms, but I'm kind of annoyed that you learn Shii-Cho long before or sometimes AFTER getting your lightsaber. So I'm trying to synchronize when you learn your first lightsaber form with when you earn your first lightsaber.

 

So can anyone show me where to go to edit some of that stuff? Thanks a bunch.

Link to comment
Share on other sites

I was just curious if someone could teach me which file to edit to determine when you learn lightsaber forms.

 

As far as I know you cannot. From what I have found (or rather not found) there doesn't seem to be anywhere in the data files determining when you are granted the first few saber/force forms, so I suppose it's done in the game engine's levelup code directly, which cannot be edited (similar to how the JediMaster/SithLord specific powers that are automatically given are handled).

 

You can, however, grant saber/force forms at any time using the GrantSpell() scripting function, since the forms are handled as passive force powers. Thus you could use this from a script if you want to give the forms before they would normally be given, but you can't raise the level requirement for when they are given since you can't prevent the game from giving the powers at the currently set levels.

Link to comment
Share on other sites

So is there away via scripting to give a lightsaber form after acquiring a particular item, i.e. a lightsaber?

 

Yes, but there is no way to prevent the form from being given before acquiring your lightsaber if the character reaches the level it's granted at before that.

 

Here's an example script that grants the main character all the saber and force forms. Pick out the lines for the forms you wish to grant and stick them in the script that gives the lightsaber and you'll give the forms along with the saber. (If the character already knows one of the forms nothing bad will happen.)

 

void main() {
   GrantSpell(FORM_SABER_I_SHII_CHO, GetFirstPC());
   GrantSpell(FORM_SABER_II_MAKASHI, GetFirstPC());
   GrantSpell(FORM_SABER_III_SORESU, GetFirstPC());
   GrantSpell(FORM_SABER_IV_ATARU, GetFirstPC());
   GrantSpell(FORM_SABER_V_SHIEN, GetFirstPC());
   GrantSpell(FORM_SABER_VI_NIMAN, GetFirstPC());
   GrantSpell(FORM_SABER_VII_JUYO, GetFirstPC());
   GrantSpell(FORM_FORCE_I_FOCUS, GetFirstPC());
   GrantSpell(FORM_FORCE_II_POTENCY, GetFirstPC());
   GrantSpell(FORM_FORCE_III_AFFINITY, GetFirstPC());
   GrantSpell(FORM_FORCE_IV_MASTERY, GetFirstPC());
}

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...