Golselect

Weird Questions

Recommended Posts

Hello people. As the title suggests I have some pretty weird questions that I'd like to ask you.

1) Which are the files I can edit to change the crystal you receive from Master Dorak during the jedi training?

2) Which are the files that control the Dantooine's crystal cave formations, where you obtain some saber crystals?

3) In the BoS:SR mod, how could I change revan's blue lightsaber on certain levels of the mod?

Share this post


Link to post
Share on other sites

1. You get to pick which crystal Dorak gives you, but if you're wanting something other than Blue, Yellow, or Green, then you'd need to either edit one of the scripts or add another option to the dialog with a new script.

 

Blue crystal response uses k_pdan_saber12,

Yellow crystal response uses k_pdan_saber14,

Green crystal response uses k_pdan_saber13.

 

These scripts can be found in the dan13_s.rim in KotOR Tool.

 

2. You would need to edit the k_pdan_cryst01, k_pdan_cryst13, k_pdan_cryst14, k_pdan_cryst15, k_pdan_cryst16, and k_pdan_cryst17 scripts in the danm14ae_s.rim in KotOR Tool.

 

3. That would depend on the level, but you could look for a .uti file or something in the level, or try looking at the level's On-Enter script...

 

You will need DeNCS to decompile the scripts. DeNCS should be on starwarsknights.com.

Share this post


Link to post
Share on other sites

Hello Fair Strides. First, thank you for your help :)

Second, I'm having some trouble with the editing of the scripts. DeNCS seems to be failing, i get the "partial-could not recompile" error. Also, ignoring this error I tried to do something, but I don't know what to do with the nss file. It seems it doesn't save my changes.

Third, when I said I wanted to change the crystal Master Dorak gave you, I didn't remember it wasn't the actual crystal you use to build the lightsaber, so I ask you again if you know which script should I edit to achieve this.

Thanks :D

Share this post


Link to post
Share on other sites

If you get that error, right-click on the left window with all the numbers and spaces and select "View Source" or "View Code" or whatever it is.

 

So... You want to know how to change the lightsaber you build?

Share this post


Link to post
Share on other sites

For example, if I choose to be a Jedi Guardian, they give me a blue crystal, right? Then I talk with Zhar and begin to build a lightsaber, and the game goes to the lightsaber upgrade menu where there is a blue lightsaber created, with a normal blue crystal. What I'd like to do is change that normal blue crystal with a different one. Is that possible?

Share this post


Link to post
Share on other sites

Yes, it is possible.

Below is a decompiled "k_pdan_saber16" script:

 

 

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

object sub1() {
    object oPC = GetFirstPC();
    object object3;
    object object4 = GetItemPossessedBy(GetFirstPC(), "dan13_plotcrys");
    SetPlotFlag(object4, 0);
    DestroyObject(object4, 0.0, 0, 0.0);
    int nGlobal = GetGlobalNumber("DAN_PATH_STATE");
    if ((nGlobal > 0)) {
        if ((nGlobal == intGLOB_148)) {
            object3 = CreateItemOnObject(stringGLOB_4, oPC, 1);
        }
        else {
            if ((nGlobal == intGLOB_149)) {
                object3 = CreateItemOnObject(stringGLOB_6, oPC, 1);
            }
            else {
                if ((nGlobal == intGLOB_150)) {
                    object3 = CreateItemOnObject(stringGLOB_5, oPC, 1);
                }
            }
        }
    }
    if (GetIsObjectValid(object3)) {
        DelayCommand(0.1, AssignCommand(oPC, ActionEquipItem(object3, 4, 0)));
    }
    return object3;
}

void main() {
    object object1 = sub1();
    ShowUpgradeScreen(object1);
}

 

 

Something to keep in mind:

intGLOB_148 = 1 (Guardian)

intGLOB_149 = 2 (Sentinel)

intGLOB_150 = 3 (Consular)

 

stringGLOB_4 = "g_w_lghtsbr01" Blue
stringGLOB_5 = "g_w_lghtsbr03" Yellow
stringGLOB_6 = "g_w_lghtsbr04" Green
 

Share this post


Link to post
Share on other sites

and about the DeNCS issue, i can change into decompiled code, but it doesn't save, or I don't know how to use the nss files

Share this post


Link to post
Share on other sites

The DeNCS is just for decompiling the scripts. You'd need to copy what's in the window and then paste it into KotOR Tool's text editor or there's a Scripting tool in the modding tools section.

 

.nss files are Script source files, but .ncs files are the Script compiled files used by the game.

Share this post


Link to post
Share on other sites

Well, I'll need to know what you've done to the script before I can help. Please post the full script, surrounding it with

[ /spoiler] (though, remove that space from "[ /spoiler]").

Share this post


Link to post
Share on other sites

OK I made it :)

The thing is I tried with a modding tool of deadlystream but it didn't work really well. Then I tried with Kotor Tool's one and it finally worked XD

Share this post


Link to post
Share on other sites

KotOR Scripting Tool

BTW, at the crystal cave, how can I change the crystal that pops up from, for example, a crystal formation?

(Not the script files you said, because it changes the crystal it is, but the file that uses those scripts)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.