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?
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.
Here's the code I'm using:
void AddMultiClass(9, GetObjectByTag("Carth"));
And the error I'm getting is "integer constant."
Any ideas?
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.
Success! Thanks a lot. :)