Skip to main content

Slot

A Slot is a container on an actor that accepts placed objects.

A Slot on the table

This guide explains how to create and configure Slots using the All On Board! Mod Kit. The following is a list of things you can do with Slots in All On Board!:

Create a simple Slot​

Step 1 - Create a game element​

There are two ways to do this:

Using All On Board! Mod Kit Toolbar​

Select our toolbar and hover over All On Board!, then select Game Element.

Select Game Element from the All On Board! toolbar

Next, select the folder where you want to save the blueprint and give it a name if you prefer a different name than the default name.

Using the Pick Parent Class Dialog​

Right-click on an empty space in the folder where you want to create your slot. The Add New menu will open. Then, hover over All On Board! and select Blueprint Class (All On Board!).

Open the Add New menu and select Blueprint Class (All On Board!)

When the Pick Parent Class dialog opens, select Game Element.

Select Game Element in the Pick Parent Class dialog

Next, give the Blueprint a name if you prefer a different name than the default name. For example: BP_Slot

Step 2 - Register the Blueprint in the Data Table​

Once you have completed the previous step, regardless of which method you used, a window will automatically open to register your new slot in the Game Element Index Data Table. This table contains a list of all the objects that will be used in your game.

The correct Data Table is selected automatically, but make sure to check it just in case. For example, if your Game ID is "Example", the Data Table will be named DT_Example_GameElementIndexGeneral.

Register the slot in the Game Element Index Data Table

Then, enter the name you want your slot to have in the table and click Register. For example: Slot

Step 3 - Add a Slot Component​

Before continuing with this guide, remember that if you want to place Cards in a Slot, you must follow this guide: Create a Slot for Cards

For this last step, open the blueprint you have just created.

Open the slot Blueprint

In the Components panel on the left side of the screen, you can see the components, which are a special type of Object that Actors can attach to themselves as sub-objects.

To add a slot component you have to click on Add, search “Slot” and select Slot.

Click Add and search for Slot

Select the Slot component

Afterwards, add a Box Collision component in the same way you added the slot.

Add a Box Collision component

This Box Collision component must be inside the Slot component. You can do this by dragging the Box Collision component and dropping it onto the Slot component.

Drag the Box Collision component onto the Slot component

Adjust the Box Collision shape to cover the space you want the Slot to occupy on the table.

Adjust the Box Collision shape

Step 4 - Configure your Slot Component​

Select the Slot component. In the panel on the right, you’ll find the Slot Component section, where you can configure the Slot Strategy, which determines how objects are placed in the slot.

Slot Component section in the Details panel

  • Ghost Attach: Used for slots that hold a single element.
  • Ghost Attach Adaptive: Holds multiple elements in a straight line, with a configurable direction.
  • Ghost Attach Adaptive Arc: Holds multiple elements along an arc, with a configurable curvature.
  • Ghost Attach Adaptative Grid: Arranges multiple elements in a grid. You set the number of rows and columns, and the grid adapts accordingly.
  • Ghost Attach Adaptative Stack: Places multiple elements on top of one another.

Slot Strategy options

If you want to learn more about the Slot Component, go here:

TODO (from Notion): link pending.

If the game element you want to place in the slot does not have a tag assigned yet, follow this guide: Prepare a Game Element to Be Slotted

The Requirement field specifies the tag of the game elements that can be placed in the slot. To configure it, click Add Element in the list and select Requirement Actor Tag.

Click Add Element in the Requirement list

Select Requirement Actor Tag

In Required Tag, enter the tag assigned to the game element you want to allow in the slot.

Enter the Required Tag

Finally, you can configure the slot's capacity in the Slot Component.

  • Infinite Capacity: Enable this option to allow an unlimited number of Game Elements in the slot, such as tokens, dice, or cards.
  • Slot Capacity: To limit the number of Game Elements the slot can hold, disable Infinite Capacity and enter the maximum number of Game Elements allowed in the slot.

Configure the slot capacity

tip

If you want to place a slot or multiple slots like this one on the table, go to this page: Deploying elements

Create a Slot for Cards​

In the All On Board! Mod Kit, slots for cards are called Adaptive Slots. They allow you to place cards inside them, which are automatically arranged.

Before starting this guide, you must create the Slot Blueprint by following these guides:

Step 1 - Add a Card Slot Component and Box​

For this step, open the blueprint you have just created.

Open the slot Blueprint

In the Components panel on the left side of the screen, you can see the components, which are a special type of Object that Actors can attach to themselves as sub-objects.

To add a slot component you have to click on Add, search “AOBCardSlot” and select it.

Search for AOBCardSlot in the Add menu

Select the AOBCardSlot component

Afterwards, add a Box Collision component in the same way you added the slot.

Add a Box Collision component

This Box Collision component must be inside the Slot component. You can do this by dragging the Box Collision component and dropping it onto the Slot component.

Drag the Box Collision component onto the Slot component

Step 2 - Configure the blueprint​

The first thing you need to do is adjust the Box Component's box extent. For a standard card, use the following dimensions, depending on whether you want to slot a single card or multiple cards. Slots that can hold multiple cards are called Adaptive Slots.

Box extent dimensions for a single card

Box extent dimensions for multiple cards

Then, select the AOBCard Slot component and scroll down in the Details panel until you find the Slot Component section. Once you find it, add a requirement.

Slot Component section of the AOBCard Slot component

If the game element you want to slot does not have a tag yet, go here: Prepare a Game Element to Be Slotted

Requirement is the field where you specify the tag of the Game Element that can be placed in the Slot. Click Add Element in the list and select Requirement Actor Tag.

Select Requirement Actor Tag

Enter the required tag

If you want a Slot to hold a single card, you don't need to change the Slot Strategy. However, if you want a Slot to hold multiple cards, you need to change the Slot Strategy to Ghost Attach Adaptive under Slot Strategy

Choose Ghost Attach Adaptive as the Slot Strategy

After that, under Slot Direction, select Horizontal Center so that the Game Elements are arranged horizontally within the Slot.

Select Horizontal Center under Slot Direction

Whether you want to slot a single card or multiple cards, you need to configure the Slot's capacity.

  • Infinite Capacity: Check this box if you want to slot an unlimited number of Game Elements, such as tokens, dice, or cards.
  • Slot Capacity: If you want to limit the number of Game Elements that can be slotted, uncheck Infinite Capacity and enter the maximum number of objects you want the Slot to hold.

Infinite Capacity option

Slot Capacity option

Finally, your card slot or multiple card slots will be ready to use.

Step 3 - Improve your Slot​

To create a professional-looking slot, you need to add a new component: a Static Mesh Component.

Add a Static Mesh Component

Then, select the Static Mesh you need. If you created a Multiple Cards Slot, you can use SM_000AOB_AdaptativeSlot.

Select the Static Mesh

Adaptative Slot Static Mesh applied to the slot

tip

If you want to place a slot or multiple slots like this one on the table, go to this page: Deploying elements

Configure a Card Slot to Display Cards Face Down​

The first step you need to follow this guide is have a Card slot, if you dont have a card slot yet go here: Create a Slot for Cards

Step 1 - Open the Card Slot Blueprint​

Find the Slot Blueprint where you want to place your face-down cards and open it.

Open the Card Slot Blueprint

Step 2 - Configure the Card Slot Section​

Select the AOBCard Slot component and, in the Details panel on the right, search for Card Slot. Enable Force Slotted vCards Visibility to control who can see the front of the cards placed in the slot.

Choose one of the following visibility modes:

  • Visible to All: Everyone can see the front of the card. This is the default mode.
  • Only Owner: Only the card's owner can see its front.
  • Hidden: Nobody can see the front of the card, including its owner.——

Card Slot visibility settings

Prepare a Game Element to Be Slotted​

Step 1 - Add the Slottable Component​

Open the Game Element Blueprint you want to be slottable and check whether the Components panel already contains a component named “Slottable”. There may be many components, so make sure to check carefully.

If this component doesn’t exist, click on “Add” and select “Slottable”.

Add the Slottable component

If the Slottable component already exists, go to the next step.

Step 2 - Write an Actor Tag for this Game Element​

Select the parent component of the Blueprint and add an Actor Tag to the list of tags. For example, you could add the name “GameElement”, “Cards” or “Token”, or any other tag that intuitively describes the game element.

This way, any slot with GameElement, or another tag, set as its requirement will be able to slot any game element with the corresponding tag.

Add an Actor Tag to the Blueprint

Spawn and Slot a GameElement at the Beginning of the Game​

Step 1 - Create the Proxy​

Open the Slot Blueprint where you want your Game Element to appear slotted at the start of the game.

Open the Slot Blueprint

In the Components panel on the left side of the screen, click Add and search for Game Element Proxy Component Attach To Slot .

Search for Game Element Proxy Component Attach To Slot

Step 2 - Configure the proxy​

Next, select the newly created component and expand the AOB and Factory sections.

Expand the AOB and Factory sections

In the AOB section, under Game Element Name, select the Game Element you have created and want to spawn in this slot at the start of the game.

For example, if you want a die to be slotted here when the game starts, select the corresponding Game Element. In the image below, the Game Element named Die_D6 is selected in the Game Element Name field.

Die_D6 selected in the Game Element Name field

If you want to preview the Game Element you selected, check Override Preview Mesh and select the mesh used in your Game Element Blueprint.

If you don't remember which mesh it uses, you can open the Blueprint by clicking the Open Blueprint button.

Override Preview Mesh option

Furthermore, you can open the Game Element's Data Asset from here. The Data Asset is the file where you can edit the information displayed when you pick up the item.

Open the Game Element's Data Asset

Remember that you can use this component to preview your Game Element's appearance by changing its mesh and material. However, these changes will not be applied to your Blueprint unless you click Apply Mesh To Blueprint.

Apply Mesh To Blueprint button

After that, in the Factory section, enter the name of the Slot component in your Blueprint.

For example, in this case, the Slot component is named Slot.

Slot component name in the Blueprint

Slot name entered in the Factory section

Finally, when you place this Slot on the table and start the game, the Game Element will appear already slotted into it.

tip

If you want to place a slot or multiple slots like this one on the table, go to this page: Deploying elements

Restrict Which Game Elements a Slot Accepts​

A Requirement is a rule that checks whether an object meets certain criteria before allowing an action to take place.

If you want a slot to accept only a specific Game Element, follow this guide first:

You configure requirements in the Details panel of a component. You can combine multiple requirements to create complex rules without writing any code.

  • Requirement Actor Tag - The Game Element must have a specific tag.
  • Requirement Class - The Game Element must be of a specific Blueprint Class.
  • Requirement Game Element Name - The Game Element is registered with a specific name on the GameElementsIndexGeneral table.
  • Requirement Game Element Type - The Game Element is registered with a specific type on the GameElementsIndexGeneral table.

Requirement types available in the list

Requirement configured in the Details panel

For example, if you want a slot to accept only a specific token, you need to open the token's Blueprint and add an Actor Tag. Then, configure a Requirement Actor Tag on the slot to ensure that only tokens with the specified tag can be placed in it.

Actor Tag added to the token Blueprint

Requirement Actor Tag configured on the slot

Unlock a Slot by Placing a Game Element in Another Slot​

Esto se puede hacer sin requirement

To follow this guide you need to have 2 slots following this guides:

TODO (from Notion): guide list pending (empty list in the source).

Receta requirement: hacer que solo pueda haber un tipo de carta en los slot