Candy Box Wiki
Tags: Visual edit apiedit
(Undo revision 7064 by 121.221.61.162 (talk) You could write it instead of just complaining about it)
Tag: sourceedit
Line 10: Line 10:
 
For [[candies]] and [[lollipops]], you'll just need to change up some numbers. Let's say you're in a lazy mood today, and want a lot of candies. Click "Get the current game as text", and locate the three lines "number gameCandiesAccumulated=X", "number gameCandiesCurrent=X", and "number gameCandiesMax=X" (they're all together, so you'll just have to find one to find them all). In this example, '''X''' represent however many candies you have. Now, just change the number of the three code bits to however many you want (if you want 9,999 candies, but only have 10, change all three 10s to 9999; no commas). Make sure to keep the three new numbers all the same.
 
For [[candies]] and [[lollipops]], you'll just need to change up some numbers. Let's say you're in a lazy mood today, and want a lot of candies. Click "Get the current game as text", and locate the three lines "number gameCandiesAccumulated=X", "number gameCandiesCurrent=X", and "number gameCandiesMax=X" (they're all together, so you'll just have to find one to find them all). In this example, '''X''' represent however many candies you have. Now, just change the number of the three code bits to however many you want (if you want 9,999 candies, but only have 10, change all three 10s to 9999; no commas). Make sure to keep the three new numbers all the same.
   
Lollipops are basically the same thing. Locate the three bits "number gameLollipopsAccumulated=X", "number gameLollipopsCurrent=X", and "number gameLollipopsMax=X" (which are right after the three candies bits). '''X''' represents however many lollipops you currently have; just change the number to whatever number you want. WHAT ABOUT CHOCOLATE BARS!?
+
Lollipops are basically the same thing. Locate the three bits "number gameLollipopsAccumulated=X", "number gameLollipopsCurrent=X", and "number gameLollipopsMax=X" (which are right after the three candies bits). '''X''' represents however many lollipops you currently have; just change the number to whatever number you want.
 
[[Category:Candy Box 2]]
 
[[Category:Candy Box 2]]

Revision as of 17:54, 20 April 2015

By tweaking the text given from the "Get the current game as text" box of the save tab of Candy Box 2, the player can cheat.

What to do

The player cannot use the Javascript/Developer's Console like they could in Candy Box. Instead, they can use the save tab. For example, click the "Get the current game as text" option at the Save tab. You should notice a lot of "true"s and "false"s. These basically mean whether or not you have done something. Take the part "bool gridItemPossessedMainMap=false" as an example. If you've just started the game and haven't even defeated the Rats in the cellar, you will, of course, not have the world map. However, change "false" to "true". Then, copy the code, and paste it into the "Load" box. Click load, and you'll notice you can view the world map despite not defeating the rats. This is because, by change "false" to "true", you told the game you possess the world map, and it believed you.

Items

Additionally, you can change items. Say, for example, you want a better weapon, better armor, etc. The code for weapons is "string gameWeaponSelected=eqItemWeaponX", with X being the weapon's name. Locate this line of code after clicking "Get the current game as text" (or, press Ctrl + F to bring up a search bar for the page, then start typing it in). If you don't have a weapon yet, the code will be "string gameWeaponSelected=inventorySpecialNothingWeapon." Note that it seems that you must own at least one weapon for the inventory tab to appear, so either buy a Wooden sword if you have none, or change "false" in the code "bool statusBarUnlockedInventory=false" to "true." Anyway, replace the X with the weapon name. Note that weapon names here have no spaces, and each new word is capitalized. For example, if you want a Polished silver sword, replace X with PolishedSilverSword. Then, of course, copy the code and paste it into the Load box and click "Load." Then go the Inventory tab and equip your new weapon!

Candies/Lollipops

For candies and lollipops, you'll just need to change up some numbers. Let's say you're in a lazy mood today, and want a lot of candies. Click "Get the current game as text", and locate the three lines "number gameCandiesAccumulated=X", "number gameCandiesCurrent=X", and "number gameCandiesMax=X" (they're all together, so you'll just have to find one to find them all). In this example, X represent however many candies you have. Now, just change the number of the three code bits to however many you want (if you want 9,999 candies, but only have 10, change all three 10s to 9999; no commas). Make sure to keep the three new numbers all the same.

Lollipops are basically the same thing. Locate the three bits "number gameLollipopsAccumulated=X", "number gameLollipopsCurrent=X", and "number gameLollipopsMax=X" (which are right after the three candies bits). X represents however many lollipops you currently have; just change the number to whatever number you want.