toddpool Posted May 3 Share Posted May 3 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. Link to comment https://forums.kleientertainment.com/forums/topic/171380-i-need-help-adding-a-perk-to-a-custom-character-that-makes-them-unable-to-prototype-items/ Share on other sites More sharing options...
Draggofroot Posted May 5 Share Posted May 5 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 Link to comment https://forums.kleientertainment.com/forums/topic/171380-i-need-help-adding-a-perk-to-a-custom-character-that-makes-them-unable-to-prototype-items/#findComment-1866064 Share on other sites More sharing options...
Baguettes Posted May 5 Share Posted May 5 (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 May 5 by Baguettes Example. 1 Link to comment https://forums.kleientertainment.com/forums/topic/171380-i-need-help-adding-a-perk-to-a-custom-character-that-makes-them-unable-to-prototype-items/#findComment-1866086 Share on other sites More sharing options...
Draggofroot Posted May 7 Share Posted May 7 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 1 Link to comment https://forums.kleientertainment.com/forums/topic/171380-i-need-help-adding-a-perk-to-a-custom-character-that-makes-them-unable-to-prototype-items/#findComment-1866282 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now