Aurelius Posted April 6, 2005 Share Posted April 6, 2005 Ok, Im able to recruit an NPC. Yet when I do recruit them, I would like to make them a Jedi Class. For some reason my NPC only says they are a soldier. It would make sense they are a soldier, cuz that is what they are in the game. But what do I need to do to make them in the Jedi Class? I did give my NPC "force points" in the utc file. But do they need to have a class setting somewhere that allows for Force Powers. Is there a change I can make to not only recruit the NPC, but at the same time, make them a Jedi? I know only Jedi classes can wear the robes and use lightsabers and have force powers. I have to be missing this option somewhere. Please help. Link to comment Share on other sites More sharing options...
tk102 Posted April 6, 2005 Share Posted April 6, 2005 Yes they need a class that is capable of casting spells (this is dicated by classes.2da). The scripting function of interest here is AddMultiClass. (Mentioned in Frequently Used Script functions tutorial here). If this is a TSL mod, you might also use the GrantSpell function at the same time. Of course you could also modify the .utc file to make the recruited NPC a Jedi/Sith right off the bat. (Just be sure this new template file is uniquely named.) To go this route: 1. Open up the ClassList node of the .utc with GFFEditor. Right click on ClassList and choose to add a new UserDefined Struct. pic1 2. Change the Type of this new struct to 2. pic2 3. Right click on the new struct. Choose Add INT. pic3 4. Change the FieldID for the new INT to be Class and set the value of the Class to 3 (Jedi Guardian). pic4 5. Add a new SHORT to the structure and name it ClassLevel. Specify a value (I chose 6 in the picture). Add a new LIST to the structure and name it KnownList0. pic5 Save your .utc. You now have a spellcasting template (that has no spells.) If you want to add spells, I'd suggest: 6. Open your .utc in KotOR Tool. (File: Open GFF Files...) KotOR Tool will only show the first class of the utc (since .utc files aren't normally multiclassed), but you can still add Force Powers to your Soldier class. When you're done using KotOR Tool save the .utc. 7. Open up the .utc in GFF Editor again and go to ClassList node 2. Delete the KnownList0 LIST that you added earler. 8. Go to ClassList node 1. You'll see that KnownList0 for that class is populated with spells. Click to highlight the KnownList0 and choose Edit: Copy Node/Subtree. 9. Click to highlight ClassList node 2. Choose Edit: Paste as Child Node. 10. Save. At this point you have the spells. If you want, you can delete the spell list from your soldier class node, but it doesn't matter. Link to comment Share on other sites More sharing options...
Aurelius Posted April 6, 2005 Author Share Posted April 6, 2005 Thank You. That was just what I needed. Yes, it was a TSL mod, and everything seems to be working fine. I need to look more @ that tutorila section, but sometimes its hard to locate the exact setting change you need to make. thanks tk102 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.