Call a memory function from a normal event
For a Remember Window Button or an object’s Remember result, selecting memory_tools as the ordinary script runs its default example. For another clue, make a small wrapper record like this:
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await CallScript("memory_tools", "remember",
["signal", "The missing signal", true])
return trueIf you already use Functions as Nodes, expose the same remember function with topic, caption and long_term parameters through your function definitions. That changes how the action is authored; it does not change the saved memory format.
The following ordinary wrapper changes the player and refreshes the displayed lists. Record ID: memory_switch; Global Script: off.
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await Runtime.call("switch_player_character", "assistant")
await CallScript("memory_tools", "refresh")
return trueWith the global player-changed hook enabled, the explicit refresh is harmless but redundant. Keeping it in a first test makes the order of operations easy to follow.
