# This is a simple Verse script for crafting
# It checks for Twine and gives a reward
# First, we define the reward item
# This is the item players get after crafting
Reward_Item := Item_Spawnable{
Item_Name = "Rope_Dart"
}
# This function runs when the player presses the button
Crafting_Function := func(player: player):
# Check if the player has Sturdy Twine
# We look in their inventory
if (Has_Item(player, "Sturdy_Twine")):
# Remove the Twine from their bag
# This is like using the ingredient
Remove_Item(player, "Sturdy_Twine")
# Give them the crafted reward
# The spawner handles the actual drop
Spawn_Item(player, Reward_Item)
# Show a message to the player
Print("You crafted a Rope Dart!")
else:
# If they don't have Twine, tell them
Print("You need Sturdy Twine to craft!")
Verse Library
verse
01 Fragment
Checks player inventory for materials, consumes them, and spawns a crafted reward item.
verse-library/using-twine-crafting-items-in-fortnite-creative/01-fragment.verse