Find help on the FRENCH REFORGER MOD discord if you need ✅ Check our progress about this wiki here 📜
Skip to main content

Create a selling point

The purpose of this tutorial is to create a point of sale that allows exchanging products for money.

To achieve this, we will use components that will be added to the prefab:

image.png

We are using the base setuop that the everon team did and we decompose it to analyse it's function:

Putting the componenet on a npc does not seem to be working therefore you need to put an prefab (i recommand putting for exemple a prefab in link with the farm)

- EL_restrictedInventoryStorageCompinent:

this component seem to be the one who are filtering the item you can exchange

image.png

we see here at the begining the item that the prefab take (in the exemple it's an apple)

- EL_TraderManagerComponent

image.png

This component is therefore used to take an item and exchange it for another.

- Action manager

image.png