-- harvest plant `key` groups `value` times local plants = { ["arnica"] = 5, ["kafe"] = 5, ["juniper"] = 5 } local delayCount = 0 send("stratagem add water plants; stratagem add free plants; stratagem add nature growth") for plant, iterTotal in pairs(plants) do local harvestCommand = "stratagem add harvest "..plant.." group" for i = 2,iterTotal do harvestCommand = harvestCommand.."; stratagem add harvest "..plant.." group" end tempTimer(delayCount * iterTotal * 2.25, [[send("]]..harvestCommand..[[")]]) delayCount = delayCount + 1 end
Comments