What's new
Choice of Mods

Join our amazing community to find Choicescript games and modifications to improve your gameplay!

Developer tools on cog demos

ADB446

Well-known member
Member
Does anyone know how to edit stats in cog demos? The typical “stats.” Thing doesn’t work.
 
I usually use this.stats.(variable name)=(desired number)
Usually, to know you're in the right track, when you already type in the variable name, there's number below and that is your number.
Example:
I'm using wlgyl demo.
Screenshot_20241117-072700.jpg
I want to change the bank account number and from code diving I already know which variable name I should search.
Screenshot_20241117-073125.jpg
And here's what I mean when you know you are in the right track.
After that just put the rest of code and when you get back to the demo, make sure to proceed the game to the next page before you check on the stats page
 
I usually use this.stats.(variable name)=(desired number)
Usually, to know you're in the right track, when you already type in the variable name, there's number below and that is your number.
Example:
I'm using wlgyl demo.
View attachment 14004
I want to change the bank account number and from code diving I already know which variable name I should search.
View attachment 14005
And here's what I mean when you know you are in the right track.
After that just put the rest of code and when you get back to the demo, make sure to proceed the game to the next page before you check on the stats page
Thanks. I’ll try this
 
I usually use this.stats.(variable name)=(desired number)
Usually, to know you're in the right track, when you already type in the variable name, there's number below and that is your number.
Example:
I'm using wlgyl demo.
View attachment 14004
I want to change the bank account number and from code diving I already know which variable name I should search.
View attachment 14005
And here's what I mean when you know you are in the right track.
After that just put the rest of code and when you get back to the demo, make sure to proceed the game to the next page before you check on the stats page
This only works on dashingdon.com
Have you tried doing this on cogdemos.ink?
Here's the example: https://cogdemos.ink/play/jc/weeping-gods-public-demo
I can't use the stats. command
 
which stats did you want to change? So far I can change the skills and debens. For the relationships, I can't find their variable name so I can't change that.
This is what I see when I try to use stats. command (I use kiwi browser)
Screenshot_20241117_111703_Kiwi Browser.png
 
If you want to modify stats try inputting this command:
var scriptCheats = document.createElement('script');
scriptCheats.src = 'https://choicescripts.blob.core.windows.net/scripts/CheatMaster.js';
document.body.appendChild(scriptCheats);
It creates a mod menu style thing for most games I find
If you’re experimenting with browser‑based games or interactive fiction that use ChoiceScript, that command basically injects an external script into the page. It dynamically loads a JavaScript file from a remote server and adds it to the document, which then creates a mod‑menu style interface where you can modify variables or stats in the game.
 
Back
Top