🎒 Episode 6 · Advanced · Full Tool

Save the Guests
Episode 6: Build Swim Rescue

This is the big one. You bring together events, guest positions and actions to build a real tool that catches guests in the water and saves them before they get upset.

πŸ‘Ά Ages 10+ ⏱️ ~1 hour 🎒 OpenRCT2 βœ“ Free workshop
πŸ›Ÿ Full feature 🧠 Logic ⏱️ Tick safely πŸ§ͺ Play-test
⭐
0 XP
Level 1
πŸ”₯0
Your Progress 0 / 5 steps
Build it in our OpenRCT2 Studio too: set up a park plugin, wire up events, read the park and export real plugin files in the browser, with no install. Open the OpenRCT2 Mod Studio →
πŸ”₯
Ember says: this is the same idea as the Swim Rescue workshop, but now you understand every piece. Build it once and you will trust it, because it is all yours.
πŸ“‹
Want a guided version? The Swim Rescue workshop walks through a related build step by step.
1
πŸ—ΊοΈ
Plan the Tool
One clear job
Active
🎯
Goal for this step

Write one sentence describing exactly what the tool does.

  • 1Good tools have one clear job.
  • 2Ours: "Find guests in water and move them to the nearest path."
  • 3Write your sentence before any code.
✏️
Fill in the Blanks
+15 XP
A good tool has clear job.
🧠
Knowledge Check
+15 XP
Why start with one clear job?
ASo the tool is simple and works
BSo it is longer
CSo it is slower
2
🧠
Spot a Guest in Water
The core check
Locked
🎯
Goal for this step

Decide if a guest is in the water.

  • 1Each guest has a position and a flag for being in water (or you can check the tile under them).
  • 2Only act on guests who are in water.
  • 3Leave everyone else alone.
if (guest.isInWater) {
  // rescue this guest
}
✏️
Fill in the Blanks
+15 XP
We only rescue a guest when guest.isIn is true.
🧠
Knowledge Check
+15 XP
What should the tool do for guests not in water?
AIgnore them
BTeleport them too
CDelete them
3
πŸ›Ÿ
Send Them to Safety
Find a path and move
Locked
🎯
Goal for this step

Move the guest to the nearest path tile.

  • 1Find a safe tile near the water edge.
  • 2Set the guest position there.
  • 3Post one cheerful message, not one per guest (that would flood the screen).
✏️
Fill in the Blanks
+15 XP
Send a guest to the nearest tile.
🧠
Knowledge Check
+15 XP
Why save up the messages and post one, not many?
ASo the screen is not flooded
BBecause messages cost money
CMessages are limited to one forever
4
⏱️
Run It Safely
Pick the event
Locked
🎯
Goal for this step

Choose how often the check runs without hurting performance.

  • 1Checking water on every tick is safest for catching guests fast, but must be light.
  • 2Only look at guests near water if you can, to keep it quick.
  • 3Test on a busy park and watch the frame rate.
🧠
Knowledge Check
+15 XP
If the game slows down after adding your tool, what do you check first?
AHow often your code runs
BThe colour of the UI
CThe park name
5
πŸ§ͺ
Play-Test It
Break it on purpose
Locked
🎯
Goal for this step

Try to make the tool fail, then fix it.

  • 1Drop guests in water in several places.
  • 2Put a guest in water with no nearby path.
  • 3Fix the odd case so the tool never crashes.
✏️
Fill in the Blanks
+15 XP
Testing the odd is what makes a tool trustworthy.
🧠
Knowledge Check
+15 XP
What separates a toy from a tool?
AHandling the odd cases without crashing
BA longer name
CMore colours
πŸŽ‰βœ¨πŸ†πŸŽ‰
Swim Rescue Works!
You built a real park tool from scratch. Next you will get it rock solid and handle anything the engine throws at you.
0
Total XP
1
Level
0
Best Streak
0%
Accuracy
Next: Episode 7: Test and Debug β†’