I released my first mod a while back here.
I decided I wanted to update it with a way to get the new items in the game without cheating, so I found the script that assigns the advanced classes and added an ActionGiveItem command to each parameter.
*I added the stuff in red*
I'm a total n00b when it comes to scripting, so I ask my fellow modders: Does this look right, or am I doing something wrong?
I haven't tested yet.
I decided I wanted to update it with a way to get the new items in the game without cheating, so I found the script that assigns the advanced classes and added an ActionGiveItem command to each parameter.
*I added the stuff in red*
Code:
// This makes the PC one of the Jedi classes, depending on parameter.
// Param Count = 1, decides which class to make him or her.
// 0 = Weaponmaster
// 1 = Watchman
// 2 = Jedi Master
// 3 = Marauder
// 4 = Sith Assassin
// 5 = Sith Lord
// CFA 10-6-04
void main()
{
// Grab the Parameter.
int nScriptNumber = GetScriptParameter( 1 );
// If Param = 0, then make him a Jedi Weaponmaster.
if ( nScriptNumber == 0 ) {
AddMultiClass (CLASS_TYPE_JEDIWEAPONMASTER, GetFirstPC () );
ActionGiveItem(object a_robe_43, object GetFirstPC());
}
// If Param = 1, then make him a Jedi Watchman.
if ( nScriptNumber == 1 ) {
AddMultiClass (CLASS_TYPE_JEDIWATCHMAN, GetFirstPC () );
ActionGiveItem(object a_robe_44, object GetFirstPC());
}
// If Param = 2, then make him a Jedi Master.
if ( nScriptNumber == 2 ) {
AddMultiClass (CLASS_TYPE_JEDIMASTER, GetFirstPC () );
ActionGiveItem(object a_robe_45, object GetFirstPC());
}
// If Param = 3, then make him a Sith Marauder.
if ( nScriptNumber == 3 ) {
AddMultiClass (CLASS_TYPE_SITHMARAUDER, GetFirstPC () );
ActionGiveItem(object a_robe_46, object GetFirstPC());
}
// If Param = 4, then make him a Sith Assassin.
if ( nScriptNumber == 4 ) {
AddMultiClass (CLASS_TYPE_SITHASSASSIN, GetFirstPC () );
ActionGiveItem(object a_robe_47, object GetFirstPC());
}
// If Param = 5, then make him a Sith Lord.
if ( nScriptNumber == 5 ) {
AddMultiClass (CLASS_TYPE_SITHLORD, GetFirstPC () );
ActionGiveItem(object a_robe_48, object GetFirstPC());
}
}
I haven't tested yet.