Jump to content

Recommended Posts

I'm just getting into making a custom character but I feel I need help, or to be pointed in the right direction. One of their main perks which I have absolutely no idea where to start with implementing into the game is they cannot prototype any item, meaning they must be standing near a research station to craft any science/magic item even if they have already crafted it in the past. If anyone can help me or point me towards a good tutorial I'd be very greatful.

after a quick look in builder.lua, there seems to be code for a list of prototyped recipes for a player, maybe as a quick (albeit ineffecient) fix, you can run a piece of code that clears the list of recipes every tick if they using your character to make sure that they never have prototyped recipes. Only problem would be blueprints tho

Another solution is to give the character some sort of tag that wont let them craft anything. the tag would be removed when they enter a research station's area and then readded when they leave. but this would probably not let the character craft unprototypables unless if you do some other things which i cant think of

im not really good at modding but i hope this helps

Posted (edited)

Could probably hook into your character's builder component UnlockRecipe fn and just return end it. That or, if you don't really mind, overwrite it to be a function that does nothing.

 

Edit: Right, I forgot. Probably type down

inst.components.builder.UnlockRecipe = function(recname, nosanity) return end

in master_postinit if you want to entirely overwrite it only for your character.

Edited by Baguettes
Example.
  • Like 1
On 5/5/2026 at 12:59 PM, Baguettes said:

Could probably hook into your character's builder component UnlockRecipe fn and just return end it. That or, if you don't really mind, overwrite it to be a function that does nothing.

yeah your solution is leaps and bounds better than mine lol

  • Like 1

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