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 _really_ love candies. I also would like to be able to afford everything in the game and eat as much candies as possible to increase my hitpoints/health.

I've heard that I can enter various cheats in this game using the Javascript / Developer console. How do I do this?


Related: Will using Javascript sorcery have a negative effect on the game?

share|improve this question
    
Patience is a virtue. –  Jeffrey Lin May 9 '13 at 1:05
    
possible duplicate of How do I access the Developper's Computer? –  Anto May 16 '13 at 7:06
    
@Anto This is not a duplicate of that question –  kalina May 16 '13 at 9:13
    
@Anto This question is about entering Javascript commands (cheats) into the browser. That other question is about an unrelated game mechanic (there is actually a "Developper's Computer" in the game). –  galacticninja May 16 '13 at 9:32
    
Oh, sorry, my bad. –  Anto May 16 '13 at 10:28

2 Answers 2

up vote 4 down vote accepted

First, open up the Javascript / Developer console of your browser:

Chrome:

  1. Press either CTRL + SHIFT + J to open the "Console" tab of the Developer Tools.

Alternative method:

  1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.

  2. Press ESC (or click on "Show console" in the bottom right corner) to slide the console up.

Note: In Chrome's dev tools, there is a "Console" tab. However, a smaller "slide-up" console can be opened while any of the other tabs is active.


Safari:

  1. Press CTRL + ALT + I to open the Web Inspector.

  2. See Chrome's step 2. (Chrome and Safari have pretty much identical dev tools.)

Note: Step 1 only works if the "Show Develop menu in menu bar" check box in the Advanced tab of the Preferences menu is checked!


Internet Explorer 9:

  1. Press F12 to open the developer tools. 2. Click the "Console" tab.

Firefox:

  1. Press CTRL + SHIFT + K to open the Web console.

or, if Firebug is installed (recommended):
1. Press F12 to open Firebug. 2. Click on the "Console" tab.


Opera:

  1. Press CTRL + SHIFT + I to open Dragonfly. 2. Click on the "Console" tab.

Then, type or paste the cheat code you want to enter. e.g. Enter candies.setNbrOwned(x), where x is the amount of candies you want. This will set the amount of candies you have (note that your candy per second rate will stay as it were before). Be careful not to eat too much candy as you might have issues solving a particular part of the game.

Questions related to Candy box! cheats:

More cheats at the "Cheats" article of the Candy Box Wiki


Javascript / Developer console opening instructions from: Webmasters Stack Exchange post, "How to open the JavaScript console in different browsers?"

share|improve this answer
    
But how do you actually edit the code after your in the javascript console? It doesn't let me type anthing –  user48267 May 8 '13 at 22:36
    
@JoeCurtis What browser are you using? Try clicking on the text input area (blinking "|" [without the quotes] symbol). The console's text input should normally be editable. If you've already pressed 'Enter', then that means the command had already been processed or executed and is not editable anymore. Just enter another command again to correct it. –  galacticninja May 9 '13 at 1:48

To enter cheat codes in Candy-Box simply do the following:

  1. Go to the javascript console of any browser
  2. Enter commands like:

    • candies.setnbrOwned = <Amt of candies>

    • candies.setcandiesPerSecond = <Amt of candies>

share|improve this answer

protected by Community Sep 9 '13 at 14:55

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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