How to edit stats using a debug/developer menu?

I have checked. If you’re running the game in the browser:

  1. Open the Developer Tools. All modern browsers have them. How to access may vary from browser to browser, but it is fairly easy to find out with a Google search. Usually, if you right click anywhere on the page, then click Inspect on the context menu, the Developer Tools will open.

  2. Go to the console:

  3. Type this.stats then the name of the variable.
    image

  4. This also allows you to change the value:
    image

BUT…!!!

  1. You can’t do this on the stats page. Once you return to the game, the engine will reload the page and set the previous value.
  2. You can’t do this and access the stats page right after for the same reason above.
  3. You have to set the value on the story page and proceed at least once, either by making a choice or pressing “Next”. Then the new value will be saved.

You can see all variables in a nice tabular format by typing:

console.table(Object.entries(this.stats))
11 Likes