RevanA4 Posted April 30, 2005 Share Posted April 30, 2005 ok I've compiled this a few times and the source file looks like this // This global script is intended to be used for making each CNPC a Jedi. /* Parameter Count: 1 (Which CNPC you intend to make a Jedi.) NPC numbers, as specified in NPC.2da 0 Atton 1 BaoDur 2 Mand 3 g0t0 4 Handmaiden 5 hk47 6 Kreia 7 Mira 8 T3m4 9 VisasMarr 10 Hanharr 11 Disciple */ //// CFA 10-5-04 void main() { // Grab the Parameter. int nScriptNumber = GetScriptParameter( 1 ); // If Param = 0, then it's Atton. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 0 ) { AddMultiClass (CLASS_TYPE_SITHASSASSIN, GetObjectByTag ("Atton") ); } // If Param = 1, then it's Bao-Dur. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 1 ) { AddMultiClass (CLASS_TYPE_SITHMARAUDER, GetObjectByTag ("BaoDur") ); } // If Param = 4, then it's the Handmaiden. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 4 ) { AddMultiClass (CLASS_TYPE_SITHMARAUDER, GetObjectByTag ("Handmaiden") ); } // If Param = 7, then it's Mira. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 7 ) { AddMultiClass (CLASS_TYPE_SITHMARAUDER, GetObjectByTag ("Mira") ); } // If Param = 11, then it's the Disciple. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 11 ) { AddMultiClass (CLASS_TYPE_SITHLORD, GetObjectByTag ("Disciple") ); } } but when i compile it the game thinks it is this // This global script is intended to be used for making each CNPC a Jedi. /* Parameter Count: 1 (Which CNPC you intend to make a Jedi.) NPC numbers, as specified in NPC.2da 0 Atton 1 BaoDur 2 Mand 3 g0t0 4 Handmaiden 5 hk47 6 Kreia 7 Mira 8 T3m4 9 VisasMarr 10 Hanharr 11 Disciple */ //// CFA 10-5-04 void main() { // Grab the Parameter. int nScriptNumber = GetScriptParameter( 1 ); // If Param = 0, then it's Atton. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 0 ) { AddMultiClass (CLASS_TYPE_JEDIWATCHMAN, GetObjectByTag ("Atton") ); } // If Param = 1, then it's Bao-Dur. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 1 ) { AddMultiClass (CLASS_TYPE_JEDIWEAPONMASTER, GetObjectByTag ("BaoDur") ); } // If Param = 4, then it's the Handmaiden. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 4 ) { AddMultiClass (CLASS_TYPE_JEDIWEAPONMASTER, GetObjectByTag ("Handmaiden") ); } // If Param = 7, then it's Mira. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 7 ) { AddMultiClass (CLASS_TYPE_JEDIWEAPONMASTER, GetObjectByTag ("Mira") ); } // If Param = 11, then it's the Disciple. (Trying to make it consistent with the CNPC integers.) if ( nScriptNumber == 11 ) { AddMultiClass (CLASS_TYPE_JEDIMASTER, GetObjectByTag ("Disciple") ); } } Link to comment Share on other sites More sharing options...
Det. Bart Lasiter Posted April 30, 2005 Share Posted April 30, 2005 Maybe they're just LS by game default, can't you change it in KSE anyway? Link to comment Share on other sites More sharing options...
RevanA4 Posted April 30, 2005 Author Share Posted April 30, 2005 Originally posted by jmac7142 Maybe they're just LS by game default, can't you change it in KSE anyway? they aren't prestige classes by default at all they are normal jedi classes and I'm trying to make a mod of mine work correctly and Stoffe if you see something wrong plz say so Link to comment Share on other sites More sharing options...
Blubber Posted April 30, 2005 Share Posted April 30, 2005 Did you inject your Script to the correct Dialog Node, bzw you seem to have a LS and a DS Script, did you wrote your conditional Script correctly ? Link to comment Share on other sites More sharing options...
stoffe Posted April 30, 2005 Share Posted April 30, 2005 Originally posted by jedigoku they aren't prestige classes by default at all they are normal jedi classes and I'm trying to make a mod of mine work correctly and Stoffe if you see something wrong plz say so I can't see anything wrong with either of those two scripts. As such I would assume your problem is likely where you call the script. Also make sure that you've put your last compiled version in your override folder, and that you don't have another script with the same name in another subfolder within the Override folder. You could also try to combine both scripts into one, that way it wouldn't have to keep track of multiple scripts. For example like this: void main() { int nNPC = GetScriptParameter(1); object oNPC; int nClass; switch (nNPC) { case NPC_ATTON: oNPC = GetObjectByTag ("Atton"); if (GetGoodEvilValue(oNPC) > 60) nClass = CLASS_TYPE_JEDIWATCHMAN; else if (GetGoodEvilValue(oNPC) < 40) nClass = CLASS_TYPE_SITHASSASSIN; else nClass = CLASS_TYPE_JEDISENTINEL; break; case NPC_BAO_DUR: oNPC = GetObjectByTag("BaoDur"); if (GetGoodEvilValue(oNPC) > 60) nClass = CLASS_TYPE_JEDIWEAPONMASTER; else if (GetGoodEvilValue(oNPC) < 40) nClass = CLASS_TYPE_SITHMARAUDER; else nClass = CLASS_TYPE_JEDIGUARDIAN; break; case NPC_HANDMAIDEN: oNPC = GetObjectByTag("Handmaiden"); if (GetGoodEvilValue(oNPC) > 60) nClass = CLASS_TYPE_JEDIWEAPONMASTER; else if (GetGoodEvilValue(oNPC) < 40) nClass = CLASS_TYPE_SITHMARAUDER; else nClass = CLASS_TYPE_JEDIGUARDIAN; break; case NPC_MIRA: oNPC = GetObjectByTag("Mira"); if (GetGoodEvilValue(oNPC) > 60) nClass = CLASS_TYPE_JEDIWEAPONMASTER; else if (GetGoodEvilValue(oNPC) < 40) nClass = CLASS_TYPE_SITHMARAUDER; else nClass = CLASS_TYPE_JEDIGUARDIAN; break; case NPC_DISCIPLE: oNPC = GetObjectByTag("Disciple"); if (GetGoodEvilValue(oNPC) > 60) nClass = CLASS_TYPE_JEDIMASTER; else if (GetGoodEvilValue(oNPC) < 40) nClass = CLASS_TYPE_SITHLORD; else nClass = CLASS_TYPE_JEDICONSULAR; break; } if (GetIsObjectValid(oNPC) && (GetClassByPosition(2, oNPC) == CLASS_TYPE_INVALID ) && (GetClassByPosition(1, oNPC) != nClass)) { AddMultiClass(nClass, oNPC); } } Link to comment Share on other sites More sharing options...
RevanA4 Posted May 3, 2005 Author Share Posted May 3, 2005 thanks it worked like a charm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.