How to get ALL runtime variables?
Posted: Mon Jul 11, 2022 5:39 am
Hello Tony,
I'm a heavy user of PlayMaker but for the most part I'm relying on Dialogue System variables to save game data. Therefore, I've been using the "Get / Set Variable" actions provided with DS, among the others.
However, as development goes on, the DB is growing a lot because most of those variables are created and initialized at runtime, and scrolling down through the list in the Watchers tab is becoming impractical and a time sink.
So, I'd like to have a way to get ALL the variables to a PlayMaker hash table, one for each variable type. Not only the ones created in the editor, but the same list offered by using the "Add all runtime variables" option in the Watchers tab.
I thought the action "Get All Lua Elements" could help, but it only retrieves the names of the variables created in the editor.
For doing this, I'd need two things at a minimum:
- Retrieve all variable names, including the ones initialized at runtime so far.
- Have a way to recognize the type of each variable, so I can use the Get Variable action picking the correct type.
Is this possible?
I'm a heavy user of PlayMaker but for the most part I'm relying on Dialogue System variables to save game data. Therefore, I've been using the "Get / Set Variable" actions provided with DS, among the others.
However, as development goes on, the DB is growing a lot because most of those variables are created and initialized at runtime, and scrolling down through the list in the Watchers tab is becoming impractical and a time sink.
So, I'd like to have a way to get ALL the variables to a PlayMaker hash table, one for each variable type. Not only the ones created in the editor, but the same list offered by using the "Add all runtime variables" option in the Watchers tab.
I thought the action "Get All Lua Elements" could help, but it only retrieves the names of the variables created in the editor.
For doing this, I'd need two things at a minimum:
- Retrieve all variable names, including the ones initialized at runtime so far.
- Have a way to recognize the type of each variable, so I can use the Get Variable action picking the correct type.
Is this possible?