Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Custom Class scripting

Page: 1 of 1
 shamelessposer
12-07-2006, 3:17 PM
#1
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?
 stoffe
12-07-2006, 4:42 PM
#2
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.
 shamelessposer
12-07-2006, 5:00 PM
#3
Here's the code I'm using:

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

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

Any ideas?
 stoffe
12-07-2006, 5:03 PM
#4
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.
 shamelessposer
12-07-2006, 5:24 PM
#5
Success! Thanks a lot. :)
Page: 1 of 1