I uh.. have been using Javascript sorcery* to get ridiculous amount of candies in Candy Box.

Javascript sorcery

I am wondering if I could break the game, encounter horrible game bugs or by-design game features that could have a negative effect on gameplay if I keep on doing this. Can I add any amount of candy or lollipops that I want without encountering any problems?

* cheats

| improve this question | | | | |

I found a possible side effect. If you eat a ridiculous amount of candies, your hitpoints will get so high, that...

...fighting yourself will take a long time: enter image description here

| improve this answer | | | | |
  • Since we're using javascript cheats anyhow, this can easily be overcome by writing in the code sword.setSpecialPower(x);. – Teofrostus May 11 '13 at 14:52


I needed to sleep, so set candies.candiesPerSecond very very high so I could complete the game and get to bed.

enter image description here

There are no negative side effects, I was even able to save and reload the game.

| improve this answer | | | | |

Since javascript has dynamic variables, you can make the numbers as high as you possibly want as long as javascript can handle it. For AFAIK there shouldn't be a problem with huge numbers. It will be transformed to the e-notation. Once you finish the game and randomize everything using the "computer" it also comes up with such huge values.

| improve this answer | | | | |

For some reason, whenever I had cheated, I couldn't move up and down in hell. I don't know what's wrong or how to fix it. It's probably because I'm using Chrome.

@badp I wish I could do that. I honestly have no idea why my game is doing this. It's annoying, but I guess I'm just going to have to do this the hard way :P.

@Ullallulloo Thanks for editing and respecting my answer :).

| improve this answer | | | | |
  • I cheated rather blatantly and haven't had trouble. – badp Jun 1 '13 at 22:07
  • What Javascript codes were you using? – galacticninja Jun 2 '13 at 5:00

The only negative aspect I can see, is messing up a spelling, that messes up your game in some unforeseen manner. Nearly impossible.

| improve this answer | | | | |

Typing candies.nbrOwned = 100000 in Console after inspecting has worked for me to get a lot of candies.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.