As part of my Mod, I open up the GiftMenu on a 'Merchant' NPC, and let the player 'Buy' items using a series of Function set up--it's part of a pseudo-perk system. Before opening the Menu, though, I grab the Strings for the various Categories I'm using (All, Weapons, Apparel, Scrolls, Books), and then update the String to my new Category names, and a variable representing how many Perk Points the Player has to spend.
Except for the 'All' set, this works perfectly--when moving Category, it shows the 'Perk Category' instead of the Item type (i.e., "Powers", instead of "Books"). For some reason, though, the "All" category does not update like the rest :/
The other issue is, the String only updates before the Menu opens--even though I update them after buying the Perk, the Category name will not change unless I close the Menu and reopen it.
So, I was hoping for some help on these two points:
- How do I get the 'All' category to update? The String seems to be sAllItems, but changing this has no effect.
- How do I get the String to update whilst the menu is open? I was thinking I could use one of the UI Script's Invoke Functions, but I don't know where to find the 'target' of those Scripts, and I am not familiar with how to actually use them.
Any help would be great