Log
Log
- Group
- Notes
- In the node menu
- Notes › Log
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”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.
Example
Section titled “Example”Log
{scheme.Helper.Name} joins the Quiet Ending.
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Message | Message | text {tokens} | "" | The message. Tokens such as {conspirator.Name} or {world.Gold} are filled in. |
| Also In Released Games | AlsoInReleasedGames | bool | false | Off: 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. |
Outputs
Section titled “Outputs”- Out
In a draft
Section titled “In a draft”"type""Log""set"keysMessage,AlsoInReleasedGames"then"keys"Out"
"<alias>": { "type": "Log", "then": "<alias>"}