Skip to content

How to store and retrieve strings between load and restarts?

KahenrazKahenraz Member Posts: 70
edited April 2017 in UI Modding
I made a neat little mod to the Dragonspear UI but the text I enter into the filter does not stay between loading a saved game, restarting the game, and even sleeping!

Is there a way to do this?

Link:

https://forums.beamdog.com/discussion/comment/868467/#Comment_868467

Comments

  • KahenrazKahenraz Member Posts: 70
    Argh. It even clears when I open my inventory. :s
  • kjeronkjeron Member Posts: 2,368
    edited April 2017
    You would probably have to save/retrieve the string to baldur.lua in the same way as the debug console does for its command entries. Its location around the (name 'cheatMenu') section of UI.menu.
  • lefreutlefreut Member Posts: 1,462
    edited November 2019
    ***
    Post edited by lefreut on
  • KahenrazKahenraz Member Posts: 70
    Would you be able to provide an example? I'm not familiar with what functions are available in the global scope.
  • lefreutlefreut Member Posts: 1,462
    edited November 2019
    ***
    Post edited by lefreut on
Sign In or Register to comment.