Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.



Check if you are posting in the correct category.



The Off Topic section is not meant for discussing Cookie Clicker.
⚠️ The DashNet forums will be shut down on September 12th 2019.⚠️

Please see here for more information.

Total building count

SoUlFaThErSoUlFaThEr Posts: 66Member ✭✭
edited March 23 in Developer's Lounge
Looking to make achievements or upgrades based on "total" building count. Can't figure out how to get the full number of all purchased buildings...which is....anyone know?

I don't know how to make a building give only 1 to anything one single time. It's all "on tick" or "passive" which is also tick....how do you just "yield 1 once", because then I could yield 1 to a resource and use the resource to get the number.
Post edited by SoUlFaThEr on

Comments

  • SoUlFaThErSoUlFaThEr Posts: 66Member ✭✭
    Really?.....no one knows this?
  • AgentpersonAgentperson Posts: 39Member ✭✭
    Bunny Clicker has one. You can just check that one for reference.
    Oof
  • SoUlFaThErSoUlFaThEr Posts: 66Member ✭✭
    No, there isn't. There is nothing in that code based on total building count.

    The code in the background is counting how many buildings you bought for that one building and then showing it on that building automatically, but there is no way to get that number.....and use it for other things........
  • SoUlFaThErSoUlFaThEr Posts: 66Member ✭✭
    Share the wealth:

    *buildingcounter
    name:Planting Buildings
    desc: This is how many planting buildings you own
    text:Planting Buildings - [this]
    class:noBackground
    hidden when 0
    tag:buildingsP
    is always:(plantingpots+plantingbins+indoorgardens+lawngardens+smallgreenhouses+greenhousefarms+techcenters+industrialfarms)
  • EricBolton1993EricBolton1993 Posts: 484Member ✭✭✭
    @SoUlFaThEr I managed to get it to work and heres how
    1. Make a Stat that saids TotalBuildings
    2. on each building you add "passive:grant 1 TotalBuilings"

    Each time you buy a building it will add it so if you have 100 of 1 and 100 of another it will be 200, not some kind of multiplication crap that multiplies it by millions

    you can even do this with upgrades like this

Sign In or Register to comment.