PonyOfApocalips Posted November 13, 2024 Share Posted November 13, 2024 Hello! It's possible to change items used for upgrade buildings like portal or Wurt Mermking kit? Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/ Share on other sites More sharing options...
PonyOfApocalips Posted November 24, 2024 Author Share Posted November 24, 2024 Anyone? ;-; Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1760766 Share on other sites More sharing options...
yanecc Posted November 25, 2024 Share Posted November 25, 2024 The materials required for constructing buildings are defined in the table CONSTRUCTION_PLANS. ----CONSTRUCTION PLANS---- CONSTRUCTION_PLANS = { ["multiplayer_portal_moonrock_constr"] = { Ingredient("purplemooneye", 1), Ingredient("moonrocknugget", 20) }, ["mermthrone_construction"] = { Ingredient("kelp", 20), Ingredient("pigskin", 10), Ingredient("beefalowool", 15) }, ["hermithouse_construction1"] = { Ingredient("cookiecuttershell", 10), Ingredient("boards", 10), Ingredient("fireflies", 1) }, ["hermithouse_construction2"] = { Ingredient("marble", 10), Ingredient("cutstone", 5), Ingredient("lightbulb", 3) }, ["hermithouse_construction3"] = { Ingredient("moonrocknugget", 10), Ingredient("rope", 5), Ingredient("turf_carpetfloor", 5) }, ["moon_device_construction1"] = { Ingredient("wagpunk_bits", 4),Ingredient("moonstorm_spark", 10), Ingredient("moonglass_charged", 10) }, ["moon_device_construction2"] = { Ingredient("moonstorm_static_item", 1), Ingredient("moonglass_charged", 20), Ingredient("moonrockseed", 1) }, ["charlie_hand"] = { Ingredient("dreadstone", 5) }, ["wagstaff_npc_pstboss"] = { Ingredient("alterguardianhatshard", 1) }, ["support_pillar"] = { Ingredient("rocks", 40) }, ["support_pillar_dreadstone"] = { Ingredient("dreadstone", 40) }, ["collapsed_treasurechest"] = { Ingredient("boards", 3), Ingredient("alterguardianhatshard", 1) }, ["collapsed_dragonflychest"] = { Ingredient("dragon_scales", 1), Ingredient("boards", 4), Ingredient("goldnugget", 10), Ingredient("alterguardianhatshard", 1) }, --Cult of the Lamb ["cotl_tabernacle_level1"] = { Ingredient("cutstone", 5), Ingredient("log", 1) }, ["cotl_tabernacle_level2"] = { Ingredient("goldnugget", 10), Ingredient("cutstone", 10), Ingredient("log", 1) }, } CONSTRUCTION_PLANS["support_pillar_scaffold"] = CONSTRUCTION_PLANS["support_pillar"] CONSTRUCTION_PLANS["support_pillar_dreadstone_scaffold"] = CONSTRUCTION_PLANS["support_pillar_dreadstone"] You should be able to modify it as follows: CONSTRUCTION_PLANS["mermthrone_construction"] = { Ingredient("kelp", 10), Ingredient("pigskin", 10) } Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1760911 Share on other sites More sharing options...
PonyOfApocalips Posted March 6, 2025 Author Share Posted March 6, 2025 STRINGS = GLOBAL.STRINGS RECIPETABS = GLOBAL.RECIPETABS Recipe = GLOBAL.Recipe Ingredient = GLOBAL.Ingredient TECH = GLOBAL.TECH local support_pillar_dreadstone_scaffold = CONSTRUCTION_PLANS["support_pillar_dreadstone_scaffold"] = { Ingredient("kelp", 10), Ingredient("pigskin", 10) } did I something wrong? Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1804781 Share on other sites More sharing options...
yanecc Posted March 7, 2025 Share Posted March 7, 2025 8 hours ago, PonyOfApocalips said: did I something wrong? Lua does not allow chained assignments like a = b = c. Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1804937 Share on other sites More sharing options...
PonyOfApocalips Posted March 13, 2025 Author Share Posted March 13, 2025 On 3/7/2025 at 5:30 AM, yanecc said: Lua does not allow chained assignments like a = b = c. Welp i feel like i just messed more STRINGS = GLOBAL.STRINGS RECIPETABS = GLOBAL.RECIPETABS Recipe = GLOBAL.Recipe Ingredient = GLOBAL.Ingredient TECH = GLOBAL.TECH local support_pillar_dreadstone_scaffold = CONSTRUCTION_PLANS("support_pillar_dreadstone_scaffold", {Ingredient("kelp", 10), Ingredient("pigskin", 10) }) Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1807001 Share on other sites More sharing options...
oregu Posted March 15, 2025 Share Posted March 15, 2025 (edited) On 3/13/2025 at 6:56 PM, PonyOfApocalips said: Welp i feel like i just messed more Spoiler local DREADSTONE_PILLAR_PLANS = { GLOBAL.Ingredient("kelp", 10), GLOBAL.Ingredient("pigskin", 10), } --GLOBAL.d_dreadstone_pillar = DREADSTONE_PILLAR_PLANS -- GLOBAL.dumptable(d_dreadstone_pillar) GLOBAL.CONSTRUCTION_PLANS.support_pillar_dreadstone = DREADSTONE_PILLAR_PLANS GLOBAL.CONSTRUCTION_PLANS.support_pillar_dreadstone_scaffold = DREADSTONE_PILLAR_PLANS -- the scaffold and pillar must have the same plans Edited March 15, 2025 by oregu Link to comment https://forums.kleientertainment.com/forums/topic/160646-change-items-used-to-upgrade/#findComment-1807438 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