TriggerGod Posted March 29, 2008 Share Posted March 29, 2008 I'm sorry if this is the wrong board, but oh well Anyways, today I downloaded the KOTOR tool and K GFF. I went to the General tutorials, and read the How to Make Stores (Merchants) thread. I got to the end of Stoffe's tutorial, and I understood everything except this part. Now you've created the blueprint for your store. Place it in the override folder. In order to actually use this store in the game though, you'll need to do two things. First you need to create an object of your store in-game, then you'll need to create or add onto an NPCs conversation that will start the store. The second sentence confuzles me. After I'm done, how do I place it in the override folder? move the Samhan(Thats the file I'm editing) file to the Override after I'm done? Next, Object? (I'm the one killed ) Whats the object? >_> And since I'm not creating a completely new merchant, would I still have to do that last part (Create or add onto an NPCs...)? (PS. This is what I'm doing. I'm trying to make a mod that is based off the idea of Early Lightsabers. I have placed 2 new items into Samhan's inventory. Single Blue Lightsabers and Double Blue Lightsabers. I have set the store to infinity, so if you have enough creds, you can have lots of Lightsabers. Also, I set the store at 100% sell back and 75% buy (75% of 900 would be what? ) so it would be easier to buy them ) Sorry if I sounded noobish Link to comment Share on other sites More sharing options...
Stream Posted March 29, 2008 Share Posted March 29, 2008 A .utm works kind of like a .utc, just because it's made the way you want it and it's been hurled into the override folder, it won't show in game until it's placed into the module. There's probably a better way of doing it than this, but if you attach this script to the dialog node of the Merchant where you want the store to open, for example Just Let Me Shop - then the store will be created and open void main() { object oStore = GetObjectByTag("STORE_TAG"); object oSpeaker = GetPCSpeaker(); if (!GetIsObjectValid(oStore)) oStore = CreateObject(OBJECT_TYPE_STORE, "STORE_TAG", GetLocation(OBJECT_SELF)); if (GetIsObjectValid(oStore)) DelayCommand(0.5, OpenStore(oStore, oSpeaker)); } Obviosuly replace STORE_TAG with the tag of the .utm you want to use. --Stream Link to comment Share on other sites More sharing options...
TriggerGod Posted March 29, 2008 Author Share Posted March 29, 2008 void main() { object oStore = GetObjectByTag("STORE_TAG"); object oSpeaker = GetPCSpeaker(); if (!GetIsObjectValid(oStore)) oStore = CreateObject(OBJECT_TYPE_STORE, "STORE_TAG", GetLocation(OBJECT_SELF)); if (GetIsObjectValid(oStore)) DelayCommand(0.5, OpenStore(oStore, oSpeaker)); } So I make the OpenStore into the name of the uti? Yeah, I'm a noob, but then again... I started only yesterday... Link to comment Share on other sites More sharing options...
Stream Posted March 29, 2008 Share Posted March 29, 2008 Where it says STORE_TAG replace that with whatever you put in the tag field in the .utm. Then just compile the script, add the script to a dialog somewhere and place both in the override and you should be fine. --Stream Link to comment Share on other sites More sharing options...
TriggerGod Posted April 5, 2008 Author Share Posted April 5, 2008 Sorry for bringing this thread back from the dead, but I still need help. I brushed off my Kotor tool and GFF editor, and reimbursed my Samhan addition. I am still stuck at that scripting part. I need help, and I need the help translated into terms a fifth grader might understand. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.