Breathe Posted March 11, 2023 Share Posted March 11, 2023 function FormulaInit() local formula = {} -- 配方 if Created_Krampus == '1' then formula = { Ingredient("pigskin", 4), Ingredient("waxpaper", 2), Ingredient("silk", 8) } -- 材料:猪皮4、蜡纸2、蜘蛛丝8 elseif Created_Krampus == '2' then formula = { Ingredient("pigskin", 8), Ingredient("waxpaper", 4), Ingredient("bearger_fur", 1) } -- 材料:猪皮4、蜡纸2、熊皮1 end AddRecipe2("krampus_sack", formula, TECH.SCIENCE_TWO, nil, { "WEAPONS" }) end I can only find api AddRecipe,I can't even find AddRecipe2 docs. The developer documentation is not very friendly or I am not used to it, so please tell me how to find the documentation I want to check. For example, I want to add one-button items to the building,but I only know "WEAPONS". How can I know other nouns ? Link to comment https://forums.kleientertainment.com/forums/topic/146436-please-help-mehow-to-find-some-fixed-arguments-received-by-some-apis%EF%BC%9F/ 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