Fallen Guardian Posted December 20, 2010 Share Posted December 20, 2010 All right. If I want to add a few new characters to say the Tatooine's hunter lodge and their is no dialogue to spawn them from do I have to edit the entire GIT file and put them in or is there another way? Link to comment Share on other sites More sharing options...
TimBob12 Posted December 20, 2010 Share Posted December 20, 2010 Oh I love this type of question. Open up Kotor Tool and go into Rims -- Modules -- tat_m17ad_s.rim (That is the Hunting Lodge) Then go into the Scripts, Compiled section and find k_ptat17ad_enter.ncs (The first one) Extract it but put "old_" (minus the quotes) on the front. Then you need to use a spawn script such as void main() { // ST: Check if it's the player entering the trigger, and that it hasn't already fired if (!GetLocalBoolean(OBJECT_SELF, 40) && (GetEnteringObject() == GetFirstPC())) { // ST: Make sure the trigger only fires once. SetLocalBoolean(OBJECT_SELF, 40, TRUE); object oPerson1 = CreateObject(OBJECT_TYPE_CREATURE, "[i]your npc tag here[/i]", Location(Vector(-21.76,-16.87,0.00), 0.0)); // << Location from wereami in the brackets after Vector. The 0.0 is the orientation. Unless you are spawning something like a plasteel cylinder you will have to try different things. ExecuteScript("old_k_ptat17ad_enter", OBJECT_SELF); } } Then compile the new script and name it the same as the original file k_ptat17ad_enter.nss It will create k_ptat17ad_enter.ncs Put that in the overide along with the npc file and anything else. Now when you enter the hunting lodge this script will run and spawn a new NPC. Unless I only want an NPC there after a conversation I always use this way for spawning. Its so much more effective and looks a lot more professianal. Hope this helped. Link to comment Share on other sites More sharing options...
Fallen Guardian Posted December 20, 2010 Author Share Posted December 20, 2010 Thanks TimBob12. I forgot to add in my first post that there needs to be a conditional script for a quest in there. Such as the quest you get from Bastila's mother to find her father's remains. How would that work? Link to comment Share on other sites More sharing options...
TimBob12 Posted December 20, 2010 Share Posted December 20, 2010 I think i showed you condititional scripts befpre. Just use something like i showed u past time. Same as last time. Do something like if a global variable is true then spawn an npc. The on enter scriptg works just like the onDie event in an NPC file only it runs when the PC enters the module Sorry for the bad grammar and spelling i posted this from my phone. Link to comment Share on other sites More sharing options...
Fallen Guardian Posted December 21, 2010 Author Share Posted December 21, 2010 Thanks. Link to comment Share on other sites More sharing options...
Dak Drexl Posted January 29, 2011 Share Posted January 29, 2011 I have a question. Then compile the new script and name it the same as the original file k_ptat17ad_enter.nss If I name it the same name as the original file, won't it overwrite anyone else's script that's named the same thing, like yours or Fallen Guardians? Link to comment Share on other sites More sharing options...
TimBob12 Posted January 29, 2011 Share Posted January 29, 2011 Yes but thats something we have to put up with for now. We could combine scripts providing taht everything else is compatible. But to make it compatible with every mod would take forever. If a program was created that combined certain parts of script sources and compiled them then that would be awesome. I don't know if TSL Patcher does it or not. Luckily at the minute not a lot of people use Scripts so for now its pretty safe. Its the same with .mod files though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.