Jump to content

Home

Custom Class scripting


shamelessposer

Recommended Posts

After a several month hiatus, I'm back to work on the KOTOR Remix. I have three new classes added to the .2da files and everything looks smooth there, but I can't seem to get a workable scripting function to get the NPCs to take their classes. The AddMultiClass function that's in the "Commonly Used Script Functions" topic keeps aborting with errors, so I'm not entirely sure what to do. Could anyone help?

Link to comment
Share on other sites

The AddMultiClass function that's in the "Commonly Used Script Functions" topic keeps aborting with errors, so I'm not entirely sure what to do. Could anyone help?

 

What kind of errors are you getting, and how are you using the function? The AddMultiClass() function is used in both games to give you your second Jedi/Prestige class so the function itself should work.

Link to comment
Share on other sites

Here's the code I'm using:

 

void AddMultiClass(9, GetObjectByTag("Carth"));

 

And the error I'm getting is "integer constant."

 

Any ideas?

 

Do you get the error when trying to compile the script? Is that the entire script? If so you'll need to remove the "void", it's a return type definition in the function signature and not something you include when you use the function. You'll also need to call it from within either the main() or StartingConditional() function or any function called by those.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...