PDA

View Full Version : footlocker @ beginning of K1


MacTavish
06-05-2007, 02:41 PM
Hello

I was wondering if anyone happened to know how to change the items you start of with in the footlocker on the Endar Spire. Would you have to change a script or change the .mod file?

thnx
Ronin93

swfan28
06-05-2007, 06:27 PM
Originally Posted by ronin93
I was wondering if anyone happened to know how to change the items you start of with in the footlocker on the Endar Spire. Would you have to change a script or change the .mod file?
You must modify the script k_pend_area01.nss.

I don't know where you could find the original source code of this script though. DeNCS was able to decompile it partially, but the partial byte-code did not match. Simply replacing this script would create problems later because the script also modifies XP gain and global variables.

Another possibility is to modify the UTP file footlker001.utp, but this would also create problems later because the same name is used by other footlockers in different modules throughout the game.

You could attach a script that gives the items you want directly to your inventory to Trask's DLG file. I believe there are tutorials for making this kind of scripts.

I hope this helps.

MacTavish
06-06-2007, 10:09 AM
Thanks swfan,

I think I'll look for the tutorial on attaching it to the dlg. file.

Ronin

shosey
06-06-2007, 12:46 PM
You must modify the script k_pend_area01.nss.

I don't know where you could find the original source code of this script though. DeNCS was able to decompile it partially, but the partial byte-code did not match. Simply replacing this script would create problems later because the script also modifies XP gain and global variables.
I hope this helps.

You can rename this script to k_pend_area01_original.nss then create your own script called k_pend_area01.nss where you do your buisness. The last thing you will do at the end of your custom script is to fire the k_pend_area01_original.nss and buisness will continue as usual.

ChAiNz.2da
06-06-2007, 01:06 PM
You can rename this script to k_pend_area01_original.nss then create your own script called k_pend_area01.nss where you do your buisness. The last thing you will do at the end of your custom script is to fire the k_pend_area01_original.nss and buisness will continue as usual.

^^^
Very good method ;) :thumbsup:

I've used script injecting (http://www.lucasforums.com/showthread.php?t=137370) in a few of my mods, you just need to be careful (if it's a public release) about compatibility with other mods that may have edited the same "enter area" script :)

However, editing the Trask dialogue (since there's so many lines) would probably be the better route in this particular case. Also, since K1 is littered with unique placeables, it's soooo much easier placing items in game than it's demon half-twin TSL :lol:

Pavlos
06-06-2007, 01:14 PM
If you did use this method then do not name the original script "k_pend_area01_original.nss." It is way over the 16 character limit so it will never fire :).

I'd agree with ChAiNz that attaching it to Trask's dialogue is a much simpler way of doing the whole thing :).

MacTavish
06-06-2007, 02:14 PM
If you did use this method then do not name the original script "k_pend_area01_original.nss." It is way over the 16 character limit so it will never fire :).

I'd agree with ChAiNz that attaching it to Trask's dialogue is a much simpler way of doing the whole thing :).

okay thanks! :thumbsup: