Hoplite28 Posted August 21, 2006 Share Posted August 21, 2006 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 More sharing options...
stoffe Posted August 21, 2006 Share Posted August 21, 2006 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 More sharing options...
Hoplite28 Posted August 21, 2006 Author Share Posted August 21, 2006 So is there away via scripting to give a lightsaber form after acquiring a particular item, i.e. a lightsaber? Link to comment Share on other sites More sharing options...
Emperor Devon Posted August 21, 2006 Share Posted August 21, 2006 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. Link to comment Share on other sites More sharing options...
Hoplite28 Posted August 21, 2006 Author Share Posted August 21, 2006 In between the parenthesis, do you type in the number 258, or do you type in FORM_SABER_I_SHII_CHO ? Link to comment Share on other sites More sharing options...
stoffe Posted August 21, 2006 Share Posted August 21, 2006 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 More sharing options...
Hoplite28 Posted August 21, 2006 Author Share Posted August 21, 2006 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. Link to comment Share on other sites More sharing options...
rocky348 Posted October 21, 2007 Share Posted October 21, 2007 how would that script look if i wanted to teach the padawans the forms? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.