Salk

[KotOR] Change items name dynamically

Recommended Posts

Hello!

I seem to remember that TSL changes the name of empty container so that the Player does not have to bother opening them to check the content. In NWN script there is an easy function called SetName() which seems to be missing from KotOR. Is there any workaround available that someone knows of?

If so, I may be interested in introducing this functionality for KotOR containers as well.

Cheers!

  • Like 1

Share this post


Link to post
Share on other sites

There is a GetName() function but nothing to set it as far as I can see. Either way, it would only be possible to implement by editing every UTP file in the game, likely with many MOD inserts as well, so it's not something to be undertaken lightly. It probably could be done, though, by attaching a script for the inventory disturbed event to check if the container is empty. If so, delete it and replace it with an identical one with a different name. If the container is empty and has inventory added to it, reverse it and move the items over. It's theoretically possible.

Share this post


Link to post
Share on other sites

Yes, I have seen the GetName() function and was surprised by the fact that SetName() was missing.

Replacing the containers with empty ones is a theoretically viable solution but as you said, it is probably not worth the effort. I am just wondering how TSL does it.

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.