The Stat Counter device is a way you can set statistic (stat) limits, then trigger events when those limits are met.ake an Elimination Gate
You can set the Stat Counter device to require that a player reach a specified quantity of a stat then trigger another device!
Devices Used
1 x Stat Counter device
1 x Player Spawner device
1 x Item Granter device
1 x Guard Spawner device
Set Up the Devices
Place a Player Spawner device.
Place an Item Granter device and register a Legendary Tactical Assault Rifle to the granter.
Customize the Item Granter device as follows:
Option Value Receiving Players
All
Grant on Game Start
On
Place a large Stat Counter device in a place where the player can see it.
Customize the counter:
Option Value Tracked Stat
AI Eliminations
Comparison Value
3
Broadcast Events On Stat Change
On
Place a Guard Spawner device.
Customize the device:
Option Value Guard Team Option
Team Wildlife & Creatures
Configure the following event on the Stat Counter device so that when the player reaches 3 AI eliminations, it disables the spawner:
Event | Select Device | Select Function |
---|---|---|
On Compare Success | Guard Spawner | Disable |
You now have the basic functionality for an elimination gate using the Stat Counter device!
Design Tip
At its most basic level, the Stat Creator device is great for tracking and changing stats and triggering gameplay changes when stats reach a certain value.
Explore the different built-in stats that can be tracked, then in future examples, use your own custom stats!
Build a Stealth Tracker
The Stat Counter can be configured to only check a value at a certain point, which lets you track stats then decide how to respond to them later.
Devices Used
1 x Stat Counter device
1 x Player Spawner device
2 x Item Granter devices
3 x HUD Message devices
1 x Stat Creator device
5 x Guard Spawner devices
1 x Trigger device
Set Up the Basic Gameplay
Place the Castle prefab.
Place a Player Spawner device.
Customize the player spawner and customize it to not be visible in-game:
Place an Item Granter and register a Legendary Suppressed Pistol to the device.
Customize the granter:
Option Value Receiving Players
All
Grant on Game Start
On
Place a HUD Message device and customize:
Option Message
Make it to the top of the castle!
Show on Round Start
On
Time from Round Start
Instant
Text Color
White
Place a Stat Creator device and customize:
Option Value Stat Name
Guard Alerts
Stat Color
#FF0100
Stat Icon
Exclamation
Place a Stat Counter device on top of the castle and customize:
Option Value Tracked Stat
Guard Alerts
Compare Type
Equal or Fewer
Comparison Value
10
Value Override Type
Add
Value Override
1
Value to Show
Value
Show Background
Off
Place a Guard Spawner device on the player's path to the top of the castle and customize:
Option Value Spawn Count
2
Allow Infinite Spawn
No
Total Spawn Limit
2
Guard Team Option
Team Wildlife & Creatures
Spawn Through Walls
Off
Max Patrol Distance
25.0M
Visibility Range
20M
Team Awareness Propagation
No
Configure the following event on the guard spawner so that when a guard is alerted, the stat counter adds 1 to the Guard Alerts stat.
Event Select Device Select Function On Alerted To Player
Stat Counter
Override value
Duplicate the guard spawner four more times and place them on the player’s path to the top of the castle.
Configure the Rewards
Place an Item Granter device and register a stack of Gold to the device.
Customize the item granter:
Option Value Receiving Players
All
On Grant Action
Keep All
Drop Items at Player Location
Always
Place a HUD Message device and customize:
Option Value Message
Well done! Here's your reward...
Text Color
White
Place another HUD Message device and customize with a different message.
Option Value Message
You alerted too many Guards! No reward for you!
Text Color
White
Configure the following event on the Stat Counter device so that when the stat is checked, if the player succeeds (alerted guards ten times or less), the reward is given and the success message is shown, but if they do not succeed, it will show the failure message.
Event Select Device Select Function On Compare Success
Success HUD Message Device
Show
On Compare Success
Reward Item Granter
Grant Item
On Compare Failure
Failure HUD Message Device
Show
Place a wide Trigger device across the stairs on top of the castle as shown:
Customize the trigger:
Option Value Visible In Game
Off
Times Can Trigger
1
Trigger VFX
Off
Trigger SFX
Off
Configure the following event on the trigger to see whether the player succeeded or failed when they reach the top of the castle.
Event Select Device Select Function On Triggered
Stat Counter
Compare Stat
Modify Island Settings
Make the following modifications to the island settings.
Go to Island Settings > Player.
Under Equipment, change Environment Damage to Off.
You now have the basic functionality for a stealth tracker using the Stat Counter device!
Design Tip
As this example shows, there are different ways to compare stats with the Stat Counter device. You can check whether a stat is lower, higher, equal to, or not equal to another stat, so experiment with ways to create custom stat mechanics.
Build a Crafting Level System
The Stat Counter can be used to track levels of a given stat, allowing you to configure different unlocks for different levels. In this example, you’ll create a crafting level system that will unlock new crafting recipes as players harvest more material!
Devices Used
1 x Skilled Interaction device
1 x Player Spawner device
1 x Stat Creator device
1 x Stat Powerup device
25 x Prop Manipulator devices
3 x Item Granter devices
3 x Conditional Button devices
Set Up the Basic Stat Devices
Begin with the Mountain Ridge Island starter island.
Place a Player Spawner device and customize so that it is not visible in-game.
Place a Stat Creator device and customize:
Option Value Stat Name
Harvest Skill
Max Value
5
Max Level
3
Stat Color
#FFF000
Stat Icon
Cave
Place a Stat Counter device to trigger gameplay unlocks when the player reaches Level 2. Customize:
Tracked Stat
Harvest Skill (Level)
Compare Type
Equal To
Comparison Value
2
Broadcast Events On Stat Change
On
Visible in Game
No
Place another Stat Counter device to trigger gameplay unlocks when the player reaches Level 3, and customize:
Option Value Tracked Stat
Harvest Skill (Level)
Compare Type
Equal To
Comparison Value
3
Broadcast Events On Stat Change
On
Visible in Game
No
Place a Stat Powerup device where the player cannot reach it. This device will increase the player’s Harvest Skill when they mine ores.
Customize the Stat Powerup device:
Option Value Stat to Apply
Harvest Skill
Effect Duration
Instant
Time To Respawn
Instant
Ambient Audio
Off
Pick Up Audio
Off
Who Can See This Powerup
None
Set Up the Mining Sources
Place a rock from the Rocky Desert Nature gallery. This will contain the Copper resource.
Place a Prop Manipulator attached to the rock. Register a Copper item to the device.
Customize the Prop Manipulator:
Option Value Override Resources
On
Resource Node Available
5
Resource Node Type
Item
Resource Node Depletion Mode
Destroy
Configure the following event on the Prop Manipulator device to increase the player’s Harvest Skill when the rock is destroyed:
Event Select Device Select Function On Destroyed
Harvest Stat Powerup
Pickup
Place a rock from the Tropical Rock gallery. This will contain the Silver resource.
Duplicate the previous Prop Manipulator device and place it on the new Silver rock. Clear the items in the prop manipulator and register a Silver item to the device.
Customize the prop manipulator:
Option Value Start Hidden
On
Override Resources
On
Resource Node Available
5
Resource Node Type
Item
Resource Node Depletion Mode
Destroy
Place a rock from the Volcanic Rock gallery. This will contain the Obsidian resource.
Duplicate the previous prop manipulator and place it on the new Obsidian rock.
Clear the items in the prop manipulator and register an Obsidian item to the device, then rename the Prop Manipulator device to Level 3 Prop Manipulator. Leave the settings from the Level 2 Prop Manipulator the same.
Configure the Crafting System
Place a large tree near the player’s spawn point.
Place an Item Granter device rename it Level 1 Item Granter then register a Grappler to the device.
Place a Conditional Button device against the tree. Register 10 Copper to the device.
Customize the conditional button to set the Interact Text to Craft Grappler:
Configure the following event on the Conditional Button device so that when the player activates it with 10 Copper, they are given a Grappler.
Event Select Device Select Function On Activated Send Event To
Level 1 Item Granter
Grant Item
Duplicate the Item Granter and Conditional Button devices together and rename the devices to Level 2... instead of Level 1... .
Customize the conditional button:
Option Value Interact Text
Craft Grapple Glove
Number of Key Item Slots
2
Enabled on Game Start
Off
Clear the items from the Prop Manipulator and Item Granter devices. Register a Grapple Glove in the Item Granter device. Register 10 Copper and 10 Silver in the Conditional Button device.
Duplicate the Item Granter and Conditional Button devices together and rename the devices to Level 3... instead of Level 2... .
Customize the new Conditional Button device:
Option Value Interact Text
Craft Jetpack
Number Of Key Item Slots
3
Enabled on Game Start
Off
Clear the items from the Prop Manipulator and Item Granter devices. Register a Grapple Glove in the Item Granter device. Register 10 Copper, 10 Silver, and 10 Obsidian in the Conditional Button device.
For clarity, use Billboard devices to label the different Conditional Button devices.
Configure the following event on the Level 2 Stat Counter device to unlock the Level 2 crafting recipe and show the Silver rock when the player reaches Level 2.
Event Select Device Select Function On Compare Success
Level 2 Prop Manipulator
Show Props
Configure the following event on the Level 3 Stat Counter device to unlock the Level 3 crafting recipe and show the Obsidian Rock when the player reaches Level 3.
Duplicate the Copper rock and Prop Manipulator 9 more times, placing them around the map.
Duplicate the Silver Rock and Prop Manipulator 9 more times, placing them around the map.
Duplicate the Obsidian Rock and Prop Manipulators four more times, placing them around the map.
You now have a working crafting system with level-up unlocks!
Design Tip
This system is extremely useful for many different game modes in which you might want to track custom skills with their own unique unlocks. Consider all of the different skills you could track: mining, fishing, combat, socializing, and so many more!
Device