Jump to content

Recommended Posts

So I am just beginning to play around with editing and mod creation.

 

My current goal is to edit the "pinecone" prefab and the "plantable" component in such a way that planting a pinecone increases sanity by 5 points.

What is the easiest way I could go about accomplishing this? Any help is appreciated!

Best is to look at other mods/game functions that do similiar stuff, until you understand it enough.

For example: evil flowers have a negative sanity aura, so look for anything that says "sanity" in "flower_evil.lua" and think about whether that could be the wanted piece of code.

If you need more hints:

You are looking to add a sanity-aura to the pine cones.

That is theoretically seen not the best, since you can also look for pine cones around the player and calculate a sanity aura in order to make the mod more compatible with other mods. But that is more difficult, so editing a existing prefab is what you should do for now.

 

EDIT: Actually, this is really late, but I think I missed the point. PM me if you read this! :p

Edited by Mobbstar

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...