evergreen893401 Posted January 28, 2025 Share Posted January 28, 2025 Hello. I have an idea for a mod that makes it so switcherdoodles are auto unlocked without needing to befriend the specific spider type for it first. Can anyone lend me code for this to work? Link to comment https://forums.kleientertainment.com/forums/topic/163498-need-code-involving-switcherdoodles/ Share on other sites More sharing options...
oregu Posted February 2, 2025 Share Posted February 2, 2025 i'd do something like this (server mod) Spoiler -- Assuming all naming conventions of switcherdoodle prefabs (modded or unmodded) start with "mutator" local function startsWith(str,ante) return string.sub(str, 1 , string.len(ante)) == ante end AddRecipePostInitAny(function(recipe) if not startsWith(recipe.name, "mutator") then return end recipe.level.SPIDERCRAFT = 0 end) Link to comment https://forums.kleientertainment.com/forums/topic/163498-need-code-involving-switcherdoodles/#findComment-1792427 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