This genre is growing at a break-neck pace, be part of the revolution! Rules =UserScript= // u/name Currency // u/namespace Pokeclicker Scripts // u/match // u/grant none // u/version 1.2 // u/author S // u/description Adds Adding currency to your save ! // =/UserScript= var moneyToAdd = 100 var dungeonTokensToAdd = 100 var questPointsToAdd = 100 var FarmPointsToAdd = 100 var BattlePointsToAdd = 100 var DiamondsToAdd = 100 Object.keys(localStorage).forEach((k) => ) location.This subreddit is for us lovers of games that feature an incremental mechanism, such as unlocking progressively more powerful upgrades, or discovering new ways to play the game. I hope I made it understandable, english's not my first langage I just made a script to add currency of all kind in the game since I couldn't find one that actually worked.Īll you need to do is create a new script (I use TaperMonkey), paste the code, adding the value you want on the lines "var.", turn the script on, refresh the pokeclicker page on your browser, turn the script off, then refresh pokeclicker again and here you go!! Learn the basics of json strings, stringify, etc. there are games that obfuscate the code so much (childish and stupid on the part of the devs) but do nothing to obfuscate the save file. sometimes it's easier to just trigger a save, edit the save, and then trigger a load with your edited save. Oh and another big one is to try to track down the game's serialization scheme. Make sure you understand 'undefined' and 'null' and the weird way that javascript interacts/interprets/generates them. I guess a few more extremely common things you should know about are the children property of collection objects, the innerHTML attribute, the split() method which is useful for breaking up strings (say you want to access a numerical value that is in a sentence in the game) Obviously I could go on and on forever, but that should be enough to get you started. I generally like to do this rather than directly interacting with game variables, because who knows what I'm breaking? Maybe there's an achievement check that I bypass when I just do something like game.money *= 10 or something like an update to an auxillary variable like totalMoneyEarned, whiich by not interacting with will result in unexpected and unintended game behavior. Note that when looking things up by id, you just use getElementById but when looking things up by class name, you have touse getElementsB圜lassName and pick through an array of resultsĪnd check if things are null before you try to execute their click() methodsĪnd when you set an interval, do it like this:īecause then you have access to that interval and can clear it viaĪlso, often times when you dig through the javascript/html you'll find function names that you can call directly. Step three: use the element selector (upper left button in the console) and hover around the game and look for id and class names of elements you want to interact with (usually buttons or text entry fields or text output fields etc.) Step two: open up chrome console via ctrl+shift+j Add -site: to the end of your search.ĭevelopment Idea Meta None Prototype Request Tutorial Update VideoĪndroid Cross-Platform Downloadable Flash HTML iOS Unity Webplayer WebGL It's very easy to exclude a specific site. Try an autoclicker and check out additional information: No games using real cryptocurrencies, NFTs, or blockchain Posts about a specific game must include the name of the game in the title, body, or comment Please refer to the expectations and guidelines for using this subreddit Spam will be removed and spammers will be banned, when in doubt, contact the mods about a link. Check the wikiīe nice No personal attacks, death threats, witch hunts, bigotry and the like. (E) requests for autoclickers (except in the Help sticky). (D) Anything about your own content more than 1 time per week at most, excluding new game announcements (A) requests for help finding games (except in the Help sticky) This subreddit is for us lovers of games that feature an incremental mechanism, such as unlocking progressively more powerful upgrades, or discovering new ways to play the game.
0 Comments
Leave a Reply. |