![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | nationality |
func compile_action_keyphrases(actions : Array):
Global.debug.message("Reiterating compiling: ")
for action in actions:
Global.debug.message("Started compiling " + action.name + ": ")
for keyphrase in action.keyphrases:
Global.debug.message("Keyphrase " + String(keyphrase) + ": ")
var splitCommand = keyphrase.rsplit(" ")# as Array
Global.debug.message("Adding " + String(splitCommand) + " for " + action.name + ". ")
actionDict[splitCommand] = action
for keyword in keyphrase:
add_definition_to_maindict(keyword, action)
Everything works as expected until the actionDict[splitCommand] = action line, according to the debug message system I’ve made.
For some reason, the actionDict remains empty, and add_definition_to_maindict never fires.
keyphrase should be a string from a PoolStringArray
I don’t get any debug messages from Godot explaining why.