Skip to content

Log

Group
Notes
In the node menu
Notes › Log
Where it can be used
Scheme graphs
Tags
  • Can be folded

Log writes a message to the Unity Console while the scheme runs. It does not change the story. The flow goes on at once. Tokens in the message, such as the name of the conspirator or a value of the world, are filled in when the line is written.

A Log node of the demo scheme Quiet Ending (Drafts/schemes/08-quiet-ending.json). It writes which helper joined.

Use it to follow a scheme while you build it. Which branch ran? Who was picked? What did a variable hold when the flow got there? A few Log nodes along the way answer all three.

Use Log Entry instead when a player should see the line in the scheme’s log.

  • The message goes to the editor and to development builds. A released game writes nothing, unless Also In Released Games is on.
  • Names and texts are written as you wrote them, in every language.
  • An empty message gives a warning on the card. See also Comments and notes.
  • The card shows the first line of the message, cut to 80 characters. With Also In Released Games on, a second line says so.
LabelDraft keyTypeDefaultShown if, tooltip and notes
MessageMessagetext {tokens}""The message. Tokens such as {conspirator.Name} or {world.Gold} are filled in.
Also In Released GamesAlsoInReleasedGamesboolfalseOff: the message is written in the editor and in development builds only. On: also in released games, where it goes to the player's log file.
  1. Out
"type"
"Log"
"set" keys
Message, AlsoInReleasedGames
"then" keys
"Out"
"<alias>": {
"type": "Log",
"then": "<alias>"
}