All Tutorials
Intermediate

Create a Combat Companion (Slime)

Build a slime companion that fights alongside you. Earned via a conditional dialogue with the lumberjack: 5 crystals against a slime.

🎬 Video Walkthrough

Step-by-step Guide

1

Create the SlimeBounce attack

On the Attacks page, create 'SlimeBounce': Range Melee, cooldown 1.0s, costStat stamina, costAmount 5, damage 6 absolute on vitality.

2

Create the Slime item (category Companion)

Create item 'Slime' with category 'Companion' (default slot limit: 5). Stats: vitality 50, force 8, speed 10, stamina 80. Attacks: [SlimeBounce]. NO action chain — the Companion category alone tells the engine to spawn it as a follower next to the player.

3

Extend the Lumberjack chain: Branch HasItem(Slime)

On the Lumberjack's Talk branch, replace the simple Dialogue with: Branch[HasItem(Slime, ≥, 1)] → on True: Dialogue('Have fun with your slime!') → on False: continue with a Choice.

4

Add a Choice for the trade proposal

On the False branch, add Choice with prompt '5 crystals for a special companion?' and cases [Yes, No]. Choice has 3 outputs: Yes, No, and Default (fallback if the player closes the window).

5

On Yes: verify crystals, consume, give Slime

From Yes: Branch[HasItem(Mana Crystal, ≥, 5)] → on True: ModifyItem(Remove, 'Mana Crystal', 5) → ModifyItem(Add Slime, 1) → Dialogue('Here you go!'). On False: Dialogue('Come back with enough crystals'). On No and Default (fan-in to the same block): Dialogue('Too bad for you...').

6

Link the Slime model and equip

In the Linker, drag the Slime model (Model + Humanoid + HumanoidRootPart) onto the Slime item. Link the SlimeBounce animation and sounds. Talk to the lumberjack with 5 crystals, accept the trade, equip the slime — it spawns next to you and fights enemies automatically.

Actions Used