Jump to content
wyattwic

Changing item names via script

Recommended Posts

Hello everyone!

 

Ive been around for some time, but I am just starting to dabble into GUI work.  I have a interesting idea that seems feasible, but I am unable to find anything relevant to help me, any support would be great.

 

Is it possible to access the inventory GUI when it opens, search for an item name and replace it without the need of an addon?  If so, any clue on how to do it would be awesome.

 

As it stands I am just a novice with dialogs, probably not the easiest thing to hit first but at least its a start.

Share this post


Link to post
Share on other sites

I don't think you should do this via gui config. Just add the inventory open event handler. Get an array of the items equipped, search for the item you want to replace, delete it and add the new one.

Share this post


Link to post
Share on other sites

The reason why I am looking at this avenue, is that I need to rename an object to something not within the game.  I am trying hard to avoid addons, so this was the best idea I could think of.

Share this post


Link to post
Share on other sites

The reason why I am looking at this avenue, is that I need to rename an object to something not within the game.  I am trying hard to avoid addons, so this was the best idea I could think of.

 

If I understood correctly, you're trying to change the dispalyName of inventory items in the inventory menu?

 

It might be possible to do without addons, but solutions would be VERY, VERY clumsy. It might be easier to make your own inventory menu if you want to implement functionalities like that. Even then it's not a trivial task. If you really want to do this I would suggest looking at the vanilla inventory menu GUI config, clone it, and make changes to that. But it's probably more trouble than it's worth.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×