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

LeThe butpurpose deof sethis tutotutorial estis deto creecreate una point deof ventesale quithat permetteallows d'echangerexchanging desproducts produitfor contre de l'argentmoney.

pourTo celaachieve onthis, vawe utilsierwill desuse componentcomponents quethat l'onwill vabe ajouteradded auto 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

ceThis component sertis donctherefore aused prendreto untake an item etand àexchange l'encahgerit avecfor un autreanother.

- Action manager

image.png