Call the notebook helper from a normal event
Record ID: remember_door. Global Script: off. Put this on the north door’s discovery action, or call it from an action list or a visual script.
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await CallScript("journal_tools", "add_entry", [
"north_door", "The locked north door",
"The brass key fits the lock. I should ask Mara about the clock."])
return trueTo teach Mara this fact directly, add "assistant" as the fourth item in the argument array, after the body string. To teach both characters, call add_entry once for each intended owner.
| Parameter | What to keep straight |
|---|---|
| entry_id | Stable ID of the fact, such as north_door. |
| title | Short readable list caption. |
| body | The longer passage in the reader. |
| character_id | Optional owner; blank means the current active player. |
For a Functions as Nodes workflow, expose add_entry with these parameters using your function definitions. The saved array format and ownership rule remain the same.
