moynal Posted September 4, 2011 Share Posted September 4, 2011 I need alot of help with decompiling the make jedi script for kotor not TSL but the original. Does anyone know how to decompile scripts or translate the code? I saw a thread by that agent xim dude and thought keeping the base classes would be cool or just to mess with the script a bit. Link to comment Share on other sites More sharing options...
harIII Posted September 5, 2011 Share Posted September 5, 2011 This script should work for you, just remember that a lot of the scripts can be used between KOTOR and TSL, it's just that TSL has a few new functions than KOTOR. Just change "JEDIGUARDIAN" to whatever class you want and then "Mission" to whatever character you want. void main () { AddMultiClass( CLASS_TYPE_JEDIGUARDIAN, GetObjectByTag("Mission")); } Link to comment Share on other sites More sharing options...
moynal Posted September 5, 2011 Author Share Posted September 5, 2011 This script should work for you, just remember that a lot of the scripts can be used between KOTOR and TSL, it's just that TSL has a few new functions than KOTOR. Just change "JEDIGUARDIAN" to whatever class you want and then "Mission" to whatever character you want. void main () { AddMultiClass( CLASS_TYPE_JEDIGUARDIAN, GetObjectByTag("Mission")); } Thanks but what I really need is the ncs to nss conversion of the pdan make jedi script that is used on dantooine like in that mod that agent xim planned on making I think it had you keeping the base class and all. Sorry if I wasn't clear. Link to comment Share on other sites More sharing options...
harIII Posted September 5, 2011 Share Posted September 5, 2011 Oh, sorry, then I can't help you. I can make scripts but I don't know how to decompile them. Link to comment Share on other sites More sharing options...
moynal Posted September 5, 2011 Author Share Posted September 5, 2011 Do you know who can? Link to comment Share on other sites More sharing options...
harIII Posted September 5, 2011 Share Posted September 5, 2011 You might want to yell at Working Class Hero, I know he's decompiled a script for me in the past. Link to comment Share on other sites More sharing options...
newbiemodder Posted September 5, 2011 Share Posted September 5, 2011 Go to this sight here: http://www.starwarsknights.com/tools.php Go to the Scripting section. There are a couple decompiling applications that can be used to convert .ncs to .nss Link to comment Share on other sites More sharing options...
moynal Posted September 7, 2011 Author Share Posted September 7, 2011 I was able to get the script decompiled so now how do I modify it so that you keep your base class through the game. I really want to make a mod like the one that Agent Xim was working on. Link to comment Share on other sites More sharing options...
Qui-Gon Glenn Posted September 14, 2011 Share Posted September 14, 2011 Post the script. Enclose it with "[ code ] & [ /code ]" tags (without the spaces inside the brackets). Link to comment Share on other sites More sharing options...
moynal Posted September 15, 2011 Author Share Posted September 15, 2011 // Globals int intGLOB_1 = 1; int intGLOB_2 = 2; int intGLOB_3 = 3; int intGLOB_4 = 4; int intGLOB_5 = 5; int intGLOB_6 = 6; int intGLOB_7 = 3; int intGLOB_8 = 4; int intGLOB_9 = 5; int intGLOB_10 = 6; int intGLOB_11 = 7; int intGLOB_12 = 1; int intGLOB_13 = 2; int intGLOB_14 = 3; int intGLOB_15 = 4; int intGLOB_16 = 5; int intGLOB_17 = 6; int intGLOB_18 = 7; int intGLOB_19 = 8; int intGLOB_20 = 9; int intGLOB_21 = 10; int intGLOB_22 = 11; int intGLOB_23 = 12; int intGLOB_24 = 13; int intGLOB_25 = 14; int intGLOB_26 = 15; int intGLOB_27 = 16; int intGLOB_28 = 17; int intGLOB_29 = 18; int intGLOB_30 = 19; int intGLOB_31 = 20; int intGLOB_32 = 21; int intGLOB_33 = 22; int intGLOB_34 = 23; int intGLOB_35 = 24; int intGLOB_36 = 25; int intGLOB_37 = 26; int intGLOB_38 = 27; int intGLOB_39 = 28; int intGLOB_40 = 29; int intGLOB_41 = 30; int intGLOB_42 = 59; int intGLOB_43 = 0; int intGLOB_44 = 1; int intGLOB_45 = 2; int intGLOB_46 = 29; int intGLOB_47 = 30; int intGLOB_48 = 34; int intGLOB_49 = 35; int intGLOB_50 = 36; int intGLOB_51 = 37; int intGLOB_52 = 38; int intGLOB_53 = 39; int intGLOB_54 = 41; int intGLOB_55 = 42; int intGLOB_56 = 46; int intGLOB_57 = 47; int intGLOB_58 = 15; int intGLOB_59 = 10; int intGLOB_60 = 5; int intGLOB_61 = 2; int intGLOB_62; int intGLOB_63; int intGLOB_64; object objectGLOB_1; int intGLOB_65; int intGLOB_66; int intGLOB_67; int intGLOB_68; int intGLOB_69; int intGLOB_70; int intGLOB_71 = 1; int intGLOB_72 = 2; int intGLOB_73 = 3; int intGLOB_74 = 20; int intGLOB_75 = 21; int intGLOB_76 = 22; int intGLOB_77 = 23; int intGLOB_78 = 24; int intGLOB_79 = 25; int intGLOB_80 = 26; int intGLOB_81 = 27; int intGLOB_82 = 28; int intGLOB_83 = 31; int intGLOB_84 = 32; int intGLOB_85 = 33; int intGLOB_86 = 40; int intGLOB_87 = 43; int intGLOB_88 = 44; int intGLOB_89 = 45; int intGLOB_90 = 48; int intGLOB_91 = 49; int intGLOB_92 = 50; int intGLOB_93 = 51; int intGLOB_94 = 52; int intGLOB_95 = 53; int intGLOB_96 = 54; int intGLOB_97 = 55; int intGLOB_98 = 56; int intGLOB_99 = 57; int intGLOB_100 = 58; int intGLOB_101 = 60; int intGLOB_102 = 61; int intGLOB_103 = 62; int intGLOB_104 = 63; int intGLOB_105 = 64; int intGLOB_106 = 65; int intGLOB_107 = 66; int intGLOB_108 = 67; int intGLOB_109 = 68; int intGLOB_110 = 69; int intGLOB_111 = 70; int intGLOB_112 = 71; int intGLOB_113 = 72; int intGLOB_114 = 1; int intGLOB_115 = 2; int intGLOB_116 = 3; int intGLOB_117 = 4; int intGLOB_118 = 0; int intGLOB_119 = 1; int intGLOB_120 = 2; int intGLOB_121 = 3; int intGLOB_122 = 4; int intGLOB_123 = 5; int intGLOB_124 = 6; int intGLOB_125 = 7; int intGLOB_126 = 8; int intGLOB_127 = 9; int intGLOB_128 = 10; int intGLOB_129 = 11; int intGLOB_130 = 12; int intGLOB_131 = 13; int intGLOB_132 = 14; int intGLOB_133 = 15; int intGLOB_134 = 16; int intGLOB_135 = 17; int intGLOB_136 = 18; int intGLOB_137 = 19; int intGLOB_138 = 1100; int intGLOB_139 = (-6); int intGLOB_140 = (-5); int intGLOB_141 = (-4); int intGLOB_142 = (-2); int intGLOB_143 = (-1); int intGLOB_144 = 0; int intGLOB_145 = 4; int intGLOB_146 = 1; int intGLOB_147 = 7; int intGLOB_148 = 1; int intGLOB_149 = 2; int intGLOB_150 = 3; int intGLOB_151 = 1; int intGLOB_152 = 2; int intGLOB_153 = 3; int intGLOB_154 = 4; int intGLOB_155 = 5; int intGLOB_156 = 6; string stringGLOB_1 = "bastila"; string stringGLOB_2 = "carth"; string stringGLOB_3 = "dan13_WP_council"; string stringGLOB_4 = "g_w_lghtsbr01"; string stringGLOB_5 = "g_w_lghtsbr03"; string stringGLOB_6 = "g_w_lghtsbr04"; string stringGLOB_7 = "dan_wanderhound"; // Prototypes void sub2(); void sub1(); void sub2() { int int1 = GetGlobalBoolean("DAN_EXTRA"); int int3 = ((GetGlobalNumber("DAN_EXTRA_XP2") + 128) << 8); int int5 = (GetGlobalNumber("DAN_EXTRA_XP") + 128); int int7 = (int3 | int5); if (int1) { GiveXPToCreature(GetFirstPC(), int7); } SetGlobalNumber("DAN_EXTRA_XP", 0); SetGlobalNumber("DAN_EXTRA_XP2", 0); ShowLevelUpGUI(); } void sub1() { object oPC = GetFirstPC(); int nGlobal = GetGlobalNumber("DAN_PATH_STATE"); if ((nGlobal > 0)) { if ((nGlobal == intGLOB_148)) { AddMultiClass(3, oPC); } else { if ((nGlobal == intGLOB_149)) { AddMultiClass(5, oPC); } else { if ((nGlobal == intGLOB_150)) { AddMultiClass(4, oPC); } } } } CancelPostDialogCharacterSwitch(); NoClicksFor(0.6); DelayCommand(0.5, sub2()); } void main() { object oPC = GetFirstPC(); if ((((GetLevelByClass(4, oPC) == 0) && (GetLevelByClass(3, oPC) == 0)) && (GetLevelByClass(5, oPC) == 0))) { sub1(); } ClearAllActions(); } I think it is not complete or something. Link to comment Share on other sites More sharing options...
Qui-Gon Glenn Posted September 15, 2011 Share Posted September 15, 2011 ^^^No, the script is complete. Now, I am at a loss as to what Agent Xim was wanting to do that you are trying to follow up on.... can you provide a link to what you are talking about? EDIT: Ok, so perhaps it was a mod that would allow you to *not* be a jedi, and instead keep your normal class for the whole game? I think, due to hardcoding and a great deal of scripts that require certain things of the PC at certain points of the game, that it would be near impossible to not multi-class your PC. Just changing this script is simple enough though. The subroutine script sub1 is asking the global variable DAN_PATH_STATE what class you chose at the computer, whether guardian sentinel or consular. You would need to change the dialog and scripting for that computer console choice, adding a new value for DAN_PATH_STATE, perhaps we can call it intGLOB_157 (which would need to be declared in the variable list and given a value), and add that to the if/else tree here. sub2 is a simple subroutine for adding some math derived XP to the PC. The main script calls asking if the PC is not a Guardian AND is not a Sentinel AND is not a Consular. If this is the case, the PC is none of those things yet, then sub1 checks your choices, multi-classes you accordingly, then calls sub2 to dole out the XP bonuses. So, there is what is going on in the script Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.