🟢 Key Takeaways from Chapter 2
-
The context object is your script’s toolbox.
-
context.character→ everything about the character. -
context.chat→ everything about the conversation. -
You can now use
last_messagesto look several messages deep. -
Only
personalityandscenarioare writable. -
Use these tools to make scripts react intelligently to history, timing, and emotion.
✨ Pro Tip: Treat lastMessages like short-term memory.
It won’t remember forever — but within a few turns, it can make your character feel truly attentive.