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.

Help with "Clicking gains 1% of resource per second" code

ElectroElectro Posts: 30Member
Hello! I am creating my game, Oil Miner. Can you help with this code (the code in the title)?

I have tried this:

passive:increase yield of mineButton by (oil:ps*0.01)

But it does not work. Help!

also sorry if it's a dupe

"I absolutely have no ideas on what to put in my signature." ~Electro

Comments

  • firefliesfireflies Posts: 56Member ✭✭
    edited December 2018
    the best option is to add an on click to the mineButton resource:

    on click:
    $gain=1
    if (have upgrade) $gain=1*oil:ps
    $total=1+(0.01*$gain)
    yield $total oil
    end

    or something to that effect! (where upgrade is the name of the upgrade/building in question that grants the extra 1%)

  • ElectroElectro Posts: 30Member
    thanks! :D
    "I absolutely have no ideas on what to put in my signature." ~Electro
Sign In or Register to comment.