Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

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

share|improve this question
    
    
You will eventually overflow a variable if you push too far. I think that would be all.. –  NoneOfYourBusiness May 11 '13 at 4:26
add comment

6 Answers

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

share|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
add comment

No

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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 :).

share|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
add comment

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

share|improve this answer
add comment

If you make the number too high, it will say "Infinity". You may think the opposite, but it is actually BAD. How?

A sanity check in the game's Javascript code will set it 0 if it says "Infinity". If you did it, reverse it back. If you didn't, then use the following Javascript if it's candies that is the problem: candies.setNbrOwned(9e100). If it's lollipops, then use this script: lollipops.setNbrOwned(9e100).

It will make your candies/lollipops incredibly high though. I do not suggest it. Or replace the 9e100 with the number of candies you want. DON'T SET IT HIGHER THAN YOUR ORIGINAL NUMBER OF CANDIES/LOLLIPOPS.

Though the above can be used to your advantage, I suggest reloading the page without saving. DO NOT MESS WITH ANYTHING ELSE!

share|improve this answer
1  
This is kind of incoherent and I have no idea why this answer employs spoiler markup. –  LessPop_MoreFizz May 11 '13 at 0:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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