<aside> đź’ˇ Objective: Make an Item via GoodsEntity and register it as an NPC Death Reward
</aside>
Goods Entity refers to Items like potions and ingredients that are used in game.
This tutorial addresses the procedure of creating buff items that give a speed boost for a certain time and consumables that replenish HP.
Create an 'Item' folder for a better organization
Open the "Item" folder and mouse R-Click in the empty panel to create a new GoodsEntity by "T4Framework → Entity → T4GoodsEntity"
Let's start with the buff item that provides a speed boost. Give the asset an appropriate name; it's been named "GreenPotion**"** in this tutorialLet's start with the buff item that provides a speed boost. Give the asset an appropriate name; it's been named "GreenPotion**"** in this tutorial
Double-click the Goods Entity to open it. We're going to set up the Entity Detail of the asset to make it visible in Viewport
Let's set up the item's appearance as it gets droppped, in the Default tab's Drop Mesh menu. Since we're going to set up the item to be independent of Skeleton and without Animation, leave the Mesh Type to Static Mesh
Set Static Mesh Asset to “SM_PotionGreen”
The “SM_PotionGreen” is located at “Contents/VirutalFlow/StarterPack/Item”
You'll see that your potion item show up in the Viewport once a mesh asset has been set for the Static Mesh Asset property. What you see now in the Viewport is what the item will look like when it’s dropped
Now that we've confirmed the item's appearance, let's adjust its size so it blends in well with the Character and Map your project is currently employing; the item shouldn't be neither too large nor small compared to those
In the Entity Browser panel on the left side of the Editor, type Garden in the search bar at the top of the panel, which is a Map Entity