PDA

View Full Version : [K1] Brejik inventory/script


LiquidZoo
04-28-2006, 10:03 PM
Ok, in K1 when you first rescue Bastila from Brejik(sp), there must be a script that fires. After the fight scene, reguardless if the corpse is there or not, Bastila walks over to where the corpse was and bends down to pick something up. When she does, the game default double-bladed lightsaber appears in your inventory.

As part of a mod I've been working on for some time, I would like to give people the option of having a single bladed saber for her. This would of course mean that I would need to locate whatever script it is that fires that makes her pick up that double saber. Does anyone know what script that is?

Also, would anyone know how I could code it so that, no matter what, you only got 1 copy of the saber? I guess I could make the script give me a robe or something. That might work.

EnderWiggin
04-28-2006, 10:19 PM
I'd have to say that they are in KT->K1->Rims->Modules->tar_m03af_s.rim->Script, Compiled.

The script should be either k_ptar_bastequip ; k_ptar_lootbreji ; or k_ptar_hassaber .... or maybe it's all three. (but I think it's lootbreji)

I'd have to check which one, but if you were to do that, (I believe www.starwarsknights.com has a tool that decompiles scripts) I would be able to fix it so only one yellow, singlebladed lightsaber is spawned.

_EW_

mimic666
04-28-2006, 11:07 PM
I think it would be easier to extract the mdl, mdx and tga files for a single bladed saber and rename them to g_w_dblsbr_006 (Bastilas saber), and place them into the Override folder, but I don't know. I have to get a better processor before I can test that theory myself.

Kotor1->BIFS->items.bif->Aurora Model
Kotor1->BIFS->items.bif->Aurora Model Extension
Kotor1->ERFS->TexturePacks->swpc_tex_tpc.erf->W
Kotor1->BIFS->templates.bif->Blueprint, Item the .uti files so you'll be able to mod the 'stats' of the single blade.

and you can also run upto brejik's corpse and grab his supplies before she does.

LiquidZoo
04-28-2006, 11:29 PM
and you can also run upto brejik's corpse and grab his supplies before she does.

Yeah, you can; but she still goes to where the corpse was and 'loots' it.

I'd have to say that they are in KT->K1->Rims->Modules->tar_m03af_s.rim->Script, Compiled.

I figured that, just wondered offhand if anyone knew which script it was. I can do any editing needed from that point on (though I'd prefer a decompiled script, but even that's not a big deal).

Edit: It appears that if the saber isn't named a certain way, there is a script that fires off. k_ptar_hassaber Just need to edit this for the 2 versions of my saber and everything should be good.