Jj117

How to edit maps in Kotor 2? Like Placing NPC?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.