A classic puzzle step by step
This tutorial rebuilds the puzzle from The Curse of the One-Eyed Parrot demo: get a coin, buy a grog from the bartender and give it to the old sailor in exchange for the map. It teaches dependency chains, conversations with conditions, objectives and documents.
The design (before building)
Search barrels ─▶ piece of eight ─▶ Talk to Gus ─▶ mug of grog ─▶ Give grog to Beardy ─▶ map + ENDFirst create the three items (piece of eight, mug of grog, treasure map) and an objective: Find the treasure map.
1. The coin (searching the barrels)
On using the Barrels:
If coin_found equals true:
The player says: “Only the smell of herring is left.”.
Otherwise:
The player plays the animation interact once.
The player says: “Hey! A piece of eight among the herrings!”.
Add the piece of eight to the inventory.
Set the variable coin_found to true.2. The grog (talking to the bartender)
The No branch starts a flavor conversation (“No piece of eight, no grog, lad”):
On talking to Gus the bartender:
If the player has the piece of eight:
The player says: “A grog, please!”.
Gus the bartender says: “Coming up. Drink it fast, it eats through the mugs.”.
Remove the piece of eight from the inventory.
Add the mug of grog to the inventory.
Otherwise:
Start the conversation Chat with Gus.
3. The map (giving the grog)
On using the mug of grog with Old Beardy:
Remove the mug of grog from the inventory.
Old Beardy says: “*gulp gulp* ARRR! Now that's a grog!”.
Shake the camera for 0.4 seconds with strength 1 and wait.
Add the treasure map to the inventory.
Mark the objective Find the treasure map as completed.
Show the document Treasure map (saved in the journal).
End the game with the message “Tobias has the treasure map!”.4. The conversation with conditions
In the chat with Beardy, the option “What do you know about the treasure?” has the condition does not have the mug of grog and runs a callable script that activates the objective. That way, if you already have the grog, the dialogue doesn't repeat the hint.

5. Check
Open the Puzzle map: the chain should go from Use the barrels to End of the game without red warnings.
