Jump to content

Home

Prestige class script


Trex

Recommended Posts

There is this script a_pc_jedi...from the source scripts in KotorTool

 

 

// 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 () );
   }

   // If Param = 1, then make him a Jedi Watchman.
   if ( nScriptNumber == 1 ) {
       AddMultiClass (CLASS_TYPE_JEDIWATCHMAN, GetFirstPC () );
   }

   // If Param = 2, then make him a Jedi Master.
   if ( nScriptNumber == 2 ) {
       AddMultiClass (CLASS_TYPE_JEDIMASTER, GetFirstPC () );
   }

   // If Param = 3, then make him a Sith Marauder.
   if ( nScriptNumber == 3 ) {
       AddMultiClass (CLASS_TYPE_SITHMARAUDER, GetFirstPC () );
   }

   // If Param = 4, then make him a Sith Assassin.
   if ( nScriptNumber == 4 ) {
       AddMultiClass (CLASS_TYPE_SITHASSASSIN, GetFirstPC () );
   }

   // If Param = 5, then make him a Sith Lord.
   if ( nScriptNumber == 5 ) {
       AddMultiClass (CLASS_TYPE_SITHLORD, GetFirstPC () );
   }

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...