Build a Mini Mall with Verse
Tutorial beginner compiles

Build a Mini Mall with Verse

Updated beginner Code verified

Build a Mini Mall with Verse

Welcome to Fortnite Creative! Have you ever wanted to build a shopping mall, a bakery, or a cool tech store on your island? You can do that easily. You do not need to build every wall by hand. You can use special tools called Galleries.

In this tutorial, we will learn how to find these cool building pieces. We will also learn how to use Verse to make a sign light up. This makes your store look real and exciting. Let's get building!

What You'll Learn

  • What Galleries are and why they are awesome.
  • How to find Retail pieces for your store.
  • How to use a simple Verse script to turn a light on.
  • How to place your new shop on the island.

How It Works

What are Galleries?

Think of Galleries like a giant toy box. Instead of building a house from one brick at a time, you pick up a whole room. Or a whole store front. Or a fancy window.

Galleries are pre-made groups of building pieces. They share a style. For example, a "Retail" gallery has shops and markets. A "Western" gallery has saloons and barns. You can mix and match them. It is like building with Lego sets, but the sets are huge!

What are Retail Galleries?

Retail means "selling things." Retail galleries have pieces for stores. You can find:

  • Store fronts with big windows.
  • Cash registers.
  • Shelves for items.
  • Signs for your business.

You can use these to make a busy town. You can make a quiet market. The choice is yours!

Adding Magic with Verse

Now, let's make your store pop. We will use Verse. Verse is a language for making things happen. It is like giving your island a brain.

We will write a tiny script. This script will tell a light to turn on when the game starts. This makes your store look open and ready for customers.

Let's Build It

We will build a small shop. Then we will add a light that turns on automatically.

Step 1: Find Your Store Pieces

First, go to the Galleries tab in the editor. Look for Retail. Pick a store front you like. Place it on your island. Add a door and a window. Make it look nice!

Step 2: Add a Light

Place a Light device near the door. This will be your store sign light. You want it to glow when players arrive.

Step 3: Write the Verse Script

Here is the code. It is very simple. It finds your light and turns it on.

Copy this code into a Verse file in your project.

# This is a simple script for a shop light.
# It turns the light on when the game starts.

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

# We create a new device for our shop.
# Think of this as a new box for our code.
ShopLightDevice := class(creative_device):

    # This is a variable for our light.
    # It will hold the light we place in the editor.
    # We set it to a default light_device so it can be edited in the editor panel.
    @editable
    MyLight : customizable_light_device = customizable_light_device{}

    # This runs once when the game starts.
    OnBegin<override>()<suspends> : void =
        # Turn the light on when the game begins.
        MyLight.TurnOn()
        # Let's say hello in the console.
        Print("The store is now open!")```

### How the Code Works

*   **`using`**: This tells Verse we want to use Fortnite tools. It is like saying "I need my hammer and nails."
*   **`class`**: This creates a new container for our logic. It is like a new box labeled "Shop."
*   **`MyLight`**: This is a **variable**. It is a placeholder. It will hold the specific light device we place in the world.
*   **`OnBegin`**: This is an **event**. It is a special moment. It happens when the game begins. We put our code here to run at start time.
*   **`@editable`**: This tag makes `MyLight` show up as a slot in the editor properties panel. You drag your placed light device into that slot.
*   **`TurnOn()`**: This is the action. It flips the switch. The light turns on!

### Step 4: Connect the Code to the Light

This is the most important step. The code needs to know which light to use.

1.  Place a **Customizable Light Device** in your editor.
2.  Name it **ShopLight**. This helps you stay organised.
3.  Place your **ShopLightDevice** (the Verse device) near the light.
4.  In the properties panel, drag your Customizable Light Device into the `MyLight` slot.

Now, play your island. The light should turn on immediately!

## Try It Yourself

You did it! You built a store and added a script. Now, let's make it more fun.

**Challenge:** Add a second light. Make it turn on two seconds after the first one.

**Hint:** You can add another variable for the second light. You can use `Sleep(2.0)` to wait for two seconds before turning the second light on.

## Recap

*   **Galleries** are pre-made building sets. They help you build fast.
*   **Retail Galleries** have shops and stores. They are perfect for making a town.
*   **Verse** lets you control devices. You can turn lights on and off.
*   Always name your devices clearly. This helps your code find them.

You are now a builder and a coder! Keep experimenting. Your island is your canvas.

## References

*   https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-retail-galleries-in-fortnite-creative
*   https://dev.epicgames.com/documentation/en-us/fortnite/retail-galleries-in-fortnite-creative
*   https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-prefabs-and-galleries-in-fortnite-creative
*   https://dev.epicgames.com/documentation/en-us/fortnite/using-prefabs-and-galleries-in-fortnite-creative
*   https://dev.epicgames.com/documentation/en-us/fortnite/western-galleries-in-fortnite-creative

Verse source files

Turn this into a guided course

Add using-retail-galleries-in-fortnite-creative to your free study plan — we'll suggest related pages and stitch the lot into one compile-checked, self-guided lesson with worked examples and quizzes.

Original tutorial generated by Verse Island from the Verse/UEFN knowledge base, with references to the Epic Games sources above. Code is validated against the knowledge base.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in