Verse Library verse

01 Snippet

Reusable component managing item rarity, details, and icons for custom Fortnite creative items.

extracted-snippets/community/snippets/7LDy/fortnite-advanced-item-component-and-advanced-item-pickup-component/01-snippet.verse

# Source URL: https://dev.epicgames.com/community/snippets/7LDy/fortnite-advanced-item-component-and-advanced-item-pickup-component
# Local doc:  epic-docs/community/snippets/7LDy/fortnite-advanced-item-component-and-advanced-item-pickup-component.md
  using { /UnrealEngine.com/Itemization }
  using { /UnrealEngine.com/JSON }
  using { /Verse.org/Simulation }
  using { /Verse.org/SceneGraph }
  using { /Fortnite.com/Itemization/FortniteRarities }
  using { /Fortnite.com/Items }
  using { /Verse.org/Presentation }
  using { /Verse.org/Assets }
  using { /Fortnite.com/Game }
  DefaultItemNameMessage<localizes><public>: message = "Item Name"
  DefaultItemDescriptionMessage<localizes><public>: message = "Item Description"
  DefaultItemShortDescriptionMessage<localizes><public>: message = "Item Short Description"
  item_rarities_enum<public>:= enum:
  Rarity_Common,
  Rarity_Uncommon,
  Rarity_Rare,
  Rarity_Epic,
  Rarity_Legendary,
  Rarity_Mythic,
  Rarity_Exotic
  item_details_definition<public>:= class(has_description):
  advanced_item_component<public>:= class<final_super>(item_component):
  @editable
  var ItemRarity<public>: item_rarities_enum = item_rarities_enum.Rarity_Epic
  @editable
  var ItemDetails<public>: item_details_definition = item_details_definition{Name:=DefaultItemNameMessage, Description:=DefaultItemDescriptionMessage, ShortDescription:=DefaultItemShortDescriptionMessage}
  @editable
  var ItemIcon<public>: ?texture = false

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