PDA

View Full Version : Learning lightsaber forms early


Hoplite28
08-20-2006, 09:37 PM
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.

stoffe
08-20-2006, 10:25 PM
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.

Hoplite28
08-20-2006, 10:39 PM
So is there away via scripting to give a lightsaber form after acquiring a particular item, i.e. a lightsaber?

Emperor Devon
08-20-2006, 10:55 PM
There is. You would simply make a script using the GrantSpell() function stoffe mentioned, and attach it to the dialogue where you get your lightsaber, which would be baodur.dlg. You'll need a dialogue editor to this, which can be found at SWKnights.

Hoplite28
08-20-2006, 10:57 PM
In between the parenthesis, do you type in the number 258, or do you type in FORM_SABER_I_SHII_CHO ?

stoffe
08-20-2006, 11:03 PM
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());
}

Hoplite28
08-21-2006, 01:07 AM
Thanks. Got it to work. Had to switch GetFirstPC() to simply me , but I think that was just how to script was defined.

Thanks again.

rocky348
10-21-2007, 05:28 PM
how would that script look if i wanted to teach the padawans the forms?