Jj117 9 Posted January 13, 2022 I am able to place NPCs in Kotor 1 using the console command and editing it through the KGFF software but since Kotor 2 console is invisible how do we add NPCs in maps? I want to place some custom NPCs but i currently cannot. Thank you. Quote Share this post Link to post Share on other sites
LoneWanderer 103 Posted January 13, 2022 Usually I use WhereAmI armband mod (you can find it on Gamefront) or Workbox by bead-v to get coordinates of the user's current location and then write custom script that spawns npc in the required location. This script can be inserted into onEnterScript of Module or attached to dialogs or interactions with items, etc. 1 Quote Share this post Link to post Share on other sites
DarthParametric 3,783 Posted January 13, 2022 Typically you do not want to be editing module OnEnters outside of for personal testing purposes unless it is absolutely required. It's terrible for compatibility purposes. For a mod that is to be publicly released, you'll want to instead rely on other methods. For NPCs that should always be present, simply adding it to the GIT's creature list is the way to go. For NPCs that need to spawn under specific scenarios, adding a trigger with a custom script would be preferable to editing the OnEnter. Or as LoneWanderer suggested, a DLG is a common vector, primarily when the NPC appears during, or as a result of, a cutscene/conversation. 1 Quote Share this post Link to post Share on other sites
Jj117 9 Posted January 13, 2022 47 minutes ago, LoneWanderer said: Usually I use WhereAmI armband mod (you can find it on Gamefront) or Workbox by bead-v to get coordinates of the user's current location and then write custom script that spawns npc in the required location. This script can be inserted into onEnterScript of Module or attached to dialogs or interactions with items, etc. thank you. Ill try it out 37 minutes ago, DarthParametric said: Typically you do not want to be editing module OnEnters outside of for personal testing purposes unless it is absolutely required. It's terrible for compatibility purposes. For a mod that is to be publicly released, you'll want to instead rely on other methods. For NPCs that should always be present, simply adding it to the GIT's creature list is the way to go. For NPCs that need to spawn under specific scenarios, adding a trigger with a custom script would be preferable to editing the OnEnter. Or as LoneWanderer suggested, a DLG is a common vector, primarily when the NPC appears during, or as a result of, a cutscene/conversation. okay thank you. Let me try it out. FYI is Kotor toolset good? i have no idea how it works Quote Share this post Link to post Share on other sites