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!