Board Space Event Component: Difference between revisions
m (Added 1.13.0 content) |
(Remove outdated info) |
||
Line 10: | Line 10: | ||
== Component Settings == | == Component Settings == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |
Latest revision as of 23:41, 21 November 2023
The board space event component is a gameplay component that allows a set of Actions to be performed whenever a player lands on a custom board space. It can only be added from within prefabs, as it is purpose is to add logic to Custom Board Spaces (which exist as prefabs). Subsequently, it is only available in Board Mods.
The player must finish their turn on the board space for the actions to run; walking over the space will not run the actions.
How to Use
This component should be placed on the root gameobject of a prefab that is used as a custom board space. When attached to any other gameobject, it will do nothing.
Add actions to the component by editing the On Enter Event in the inspector window.
Component Settings
Property | Description |
---|---|
On Player Land | A set of Actions to perform whenever a player lands on this space. This means when they end their turn on the space. |
On Player Passing | A set of Actions to perform whenever a player walks over this space. This could be before ending their turn or when they have several steps to go. Note: This event is not triggered when riding a rocket over the space. |
Example Usage
To make unique custom board spaces, you can use this component to affect the player in many ways. See the list of actions to get an idea of what actions can be performed. Note that not all actions are usable on Board Mods.