Jump to content

Recommended Posts

Hello, everyone,
I would like to create NPCs with which you can exchange resources.

I managed to create some custom characters but I am still inexperienced in programming... 

My idea is to create NPCs/structures like the Pig King. The Pig for example leaves you gold nuggets in exchange for food; I would like to create something similar but I don't know where to start.

I can't find the LUA file of the Pig King within the game folder and anyway I think it is quite difficult for me to understand it; nor have I found any guides that would help me.

Is there a function that allows me to trade? 

 

Regards.

Edited by LuciAmitoLom

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...