View Full Version : Scripting Items Question (Was Question 4 Redhawk)
05-17-2009, 03:23 PM
im new 2 modding and i was wondering how you got your items into the game
with the metal box.
did you script it in?
i dont understand how most of this stuff works yet
05-17-2009, 03:34 PM
Well, welcome to...well...whatever this is...
You may wanna check out some the very helpful tutorials on this site. Scripting would be one way to add the items, or I'm pretty sure you can change the box's inventory with Kotor Tool.
Also, if you have a question for one specific person, it might be a good idea just to send them a private message.
Be sure to ask if you need help with any specifics
I recommend atleast reading the tutorial here (http://www.lucasforums.com/showthread.php?t=134067) or here (http://www.lucasforums.com/showthread.php?t=143536)
05-17-2009, 03:36 PM
how would i use kotor tool to change the boxes inventory?
05-17-2009, 03:41 PM
Well you would open the placeable (ingame placeables are under Bifs, templates) and click Inventory in the bottom left corner of the popup window, in which you could drag items into its inventory (i cant see exactly how right now cuz my kt is acting up and i gotta go)
05-18-2009, 02:53 AM
I have used several methods across the 2 games, which exact mod are we talking here for which game?
That will greatly be able to assist in answering your question/explain it to you. ;)
I'm choosing to answer here instead of PM as this is a modding discussion and I can change the title to suit the topic, and it can be helpful for others.
05-18-2009, 03:33 PM
the armor in the metal box in selvens room (RHVerpReflecHArmor1)
05-19-2009, 03:01 AM
That would be accomplished by running a script during the mandatory dialog you have with Selven before you kill her.
The source script is included in the Mod itself it is rh_armorscript3.nss, you can view it with windows notepad. The compiled script is rh_armorscript3.ncs and it is ran from a line node spoken in the tar03_selven031.dlg file, open that with a dialog editor to see where i added my script name to one of the lines.
The easiest way to get items into KotOR 1 is to find a unique named placeable and add your items you want to that placeables invantory with KT's editor, but in some instances it is easier to script it in like I did for that mod as no placeables were available, made easier because a said dialog only ran once so it couldn't be repeated.
You need a point in the game you know well, a mandatory one time cut scene or character interaction is best. You simply need the dialog file for that, extract and edit that .dlg file to add your script name into one of the lines script calls, and you need to make a script to spawn the placeable that holds the items and place the items in it (examples are all over the place, in the aforementioned mod files for this one), and you'll need a base placable .utp (I used metalbox069.utp across many of my mods it is a base placeable and the script is what puts the items inside it along with spawning it).
We have a whole sub-section about scripting... here. (http://www.lucasforums.com/forumdisplay.php?f=597) 2 pertinent links in that section were provided above by Malxados. ;)
Hope this helps...
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.