• Announcements

    • JoeW

      Oxygen Not Included - Early Access Coming May 18   05/03/2017

      Oxygen Not Included Entering Early Access First off, we would like to extend a major thanks for the amazing community response to the Oxygen Not Included Alpha. When we released the game on the forums we'd hoped for a few dozen people to try it out and give feedback, but instead over a hundred thousand of you played the game. This was the best surprise we could have received. We're now excited to announce that Oxygen Not Included will be entering Steam Early Access on May 18th. It will cost $24.99, and anyone who owns an existing Klei game on Steam will receive a 20% loyalty discount. Players who purchased Oxygen Not Included in Alpha will not need to purchase the game again. Upcoming Agricultural Upgrade Additionally, we have been working with a handful of dedicated members of the community over the last few weeks to test an experimental build branch in preparation for Early Access. These players have been working with us to provide feedback on the new Agricultural Update content, and we're happy to say it's now in a place where we are ready to share with you all. It will be released on May 18th along with Early Access. Join us on the livestream!
      We'll be showing off the Agricultural Upgrade today at 3:30PDT! Come check us out on Twitch: http://twitch.tv/kleientertainment
        Check out the official post for more details!


Registered Users
  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kajshi

  • Rank
    Junior Member
  1. Hello. I can't find any info about how to set variable amount of items. My mod (only own use) base on Auto Planting In contradistinction to "Auto planting" my mod don't planting items at offset algorithm, but return so much new items as much as I put to container. And there is in "Auto planting"-mod such code: if inst.components.container:Has("dug_sapling", 1) then inst.components.container:ConsumeByName("dug_sapling", 1) inst.plants = "sapling" GLOBAL.ThePlayer.components.inventory:ConsumeByName("nightmarefuel", amount) end Instead number (there it is 1), I want use variable amount "n", which I will set as "local n = I don't know what code to use here". I tried to use "local n = self.obj.components.stackable:StackSize()", but it don't work. And so here is my question: how to set variable amount of items, that based on the amount of items that I'm going to put in the container. I don't want to set a fixed amount of items, because with each use, amount of items will be different, depending on how many I want use. Sorry for my bad english. It's not my native language.