Problem
Whenever you use variables in Nodes, since it is done through Strings, typos can easily occur, which can lead to trying to access a variable that does not exist or similar unexpected behaviors.
Proposed Solution
Modify existing Nodes so that wherever variables can be used, the contents are checked for the presence of variables, and if so, it is checked that said variables exist in the DialogueData being edited and prompt an error otherwise.
Expected Behavior
For example, if a Dialogue, Fork, or Condition Node use a variable, the moment i "unfocus" the UI element that I'm editing, the contents are checked for variable presence, and if so, the system verifies the existence of variables with such a name or prompt an error otherwise.
It would be ideal if Nodes where bound, via signals or some similar method, to the DialogueNodes editor, so that whenever it is needed, the "Variable List" can be checked to return if a variable exists and ideally type it is as well. This could prove useful for Conditions or Method Calls, as you may be using a variable that is a bool in a context where a String or int is expected, so you can check while editing and prompt an warning/error to the user.
Problem
Whenever you use variables in Nodes, since it is done through Strings, typos can easily occur, which can lead to trying to access a variable that does not exist or similar unexpected behaviors.
Proposed Solution
Modify existing Nodes so that wherever variables can be used, the contents are checked for the presence of variables, and if so, it is checked that said variables exist in the DialogueData being edited and prompt an error otherwise.
Expected Behavior
For example, if a Dialogue, Fork, or Condition Node use a variable, the moment i "unfocus" the UI element that I'm editing, the contents are checked for variable presence, and if so, the system verifies the existence of variables with such a name or prompt an error otherwise.
It would be ideal if Nodes where bound, via signals or some similar method, to the DialogueNodes editor, so that whenever it is needed, the "Variable List" can be checked to return if a variable exists and ideally type it is as well. This could prove useful for Conditions or Method Calls, as you may be using a variable that is a
boolin a context where aStringorintis expected, so you can check while editing and prompt an warning/error to the user.