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 :: Diamond Miner GemFinder

LeviC53LeviC53 Posts: 41Member ✭✭
I am currently working on a game called Diamond Miner. I would like to have a Gem Finder that has a certain percent chance to give you random gems like rubies, sapphires, emeralds, etc. I want the Gem Finder to charge up before being usable. In other words: I want its power to go from 0% to 100% over the course of a random time. I think I've worked out how to add to the power, but I don't know how to make it stop at 100%. Here is some code to get an idea:

named Gem Finder Power
displayed as Your Gem Finder is at %a% power.

named Gemstones Found
displayed as Gemstones Found

displayed as You've Found %a %r
named Ruby| Rubies

gives 1 Ruby 0.5% of the time requiring 100 Power
named Dig For Gems

gives 1 GemFinderPower
starts at 1

I really hope someone can help me with this. If you need more code, tell me what you need to see. Thanks!


Sign In or Register to comment.