lfnetwork.com mark read register faq members calendar

Thread: Prestige class script
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 02-27-2012, 12:18 PM   #1
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 508
Veteran Modder 
Prestige class script

I'm kinda surprised I couldn't find this myself, (maybe I'm missing something obvious), but what's the script for granting prestige classes for the PC?


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Old 02-27-2012, 12:29 PM   #2
newbiemodder
Gentleman Modder
 
newbiemodder's Avatar
 
Join Date: Feb 2009
Location: Chicago
Posts: 706
Veteran Modder 
There is this script a_pc_jedi...from the source scripts in KotorTool


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

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

}


Who's more foolish, the fool or the fool that follows?

Just exactly what is a head-piece to the Staff of Ra?

http://www.lucasforums.com/showthread.php?t=206819

http://www.lucasforums.com/showthread.php?t=206541

http://www.lucasforums.com/showthrea...t=newbiemodder
newbiemodder is offline   you may: quote & reply,
Old 02-27-2012, 02:23 PM   #3
Trex
Forumite
 
Trex's Avatar
 
Join Date: Dec 2006
Location: UK
Posts: 508
Veteran Modder 
Thank you. That worked perfectly.


KNIGHTS OF THE OLD REPUBLIC : THE JEDI MASTERS
PLAY THE TOTAL CONVERSION MOD NOW! . | If you're interested, my almighty fanfic can be read here.
Trex is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Prestige class script

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.