Verse Library verse

01 Device

Uses event-driven devices to verify ingredients, consume materials, and grant crafted rewards.

verse-library/using-mineral-powder-consumables-in-fortnite-creative/01-device.verse

# This script checks if a player has specific items when they interact.

using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# crafting_station is our main device class.
# Think of it as the Crafting Station itself.
crafting_station := class(creative_device):

    # Drop these devices into the scene in UEFN and assign them here.
    # ItemGranter_Reward grants the Smoke Grenade reward to the player.
    @editable
    ItemGranter_Reward : item_granter_device = item_granter_device{}

    # ItemGranter_TakePowder removes the Oxidized Mineral Powder ingredient.
    @editable
    ItemGranter_TakePowder : item_granter_device = item_granter_device{}

    # ItemGranter_TakeOre removes the Silver Ore ingredient.
    @editable
    ItemGranter_TakeOre : item_granter_device = item_granter_device{}

    # TriggerButton is the interactable button players press to craft.
    @editable
    TriggerButton : button_device = button_device{}

    # ItemCounterPowder tracks how many Oxidized Mineral Powder the player holds.

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

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