3.90 star(s) 12 Votes

EugeneWood

New Member
Mar 15, 2024
6
7
It's actually sis :)
Keep in mind I'm a beginner with HTML and Twine SugarCube...
Variables in a twine SugarCube game most always start with the $ sigil e.g. $cash or $item1 in this game, and are global. Temporary variables start with an underscore e.g. _cash and will only be usable within the one passage.

Twinescript variables are javaScript variables, $cash is parsed into State.variables.cash in order to be accessed (_temp into State.temporary.temp). HTML as such does not have variables and need to be set using JavaScript.

This kind of parsing happens on multiple levels (in passage when printing naked variables ($cash), in macro arguments, in State.getVar()...). The <<set>> macro parses its contents this way. (e.g. how a variable is set, <<set $cash to 1000>>).

In this game for example the CP or (confidence points) are set using document.getElementById('player_CP') and not the SugarCube <<set>> macro, hence the reason State.metadata.set("CP").

But yeah, most SugarCube games use $variables (can be found in a passage called "StoryInit", used for pre-story-start initialization tasks, like variable initialization (happens at the beginning of story initialization)).
Hence the SugarCube.State.variables....
If you look inside the game code you can find every variable, however, always have this at the back of your mind though;
Using the console command can break the game, so use them at your own risk!
Also, this may lead to;
1. Missing events
2. Triggering events that weren't supposed to happen at certain parts
3. An experience more buggy than it would without using the cheat

Reason: Sometimes a dev sets a max on a variable, meaning if you go over said maximum the game can't process the variable anymore and the player is stuck and can't level up or progress with the story for example.

Lets say the variable love is set to <<set $love to 0, maxLove to 100>> and triggers an event when $love is at 15, now the player uses the console and sets $love to 1000 the game can't make sense of the value 1000 and the event that was suppossed to trigger at $love 15 doesn't. Hence the reason player effing up games and think it's a bug...

...anyway, sorry for my lenghty rambling
sorry sis:oops:.I never knew girls would be interested in this kind of game.
anyway,thanks for reply.I'm going to take some HTML courses, I guess that would be more fun than this game
 

MisterD3vil

Newbie
Jul 13, 2020
88
10
Here are some console codes for everyone to enjoy :giggle:

CP: (confidence points)
SugarCube.State.metadata.set("CP", 10000)

Money:
SugarCube.State.variables.cash += 1000000

Items:
item2 = Tool kit
item3 = Energy drink
item4 = Whisky
SugarCube.State.variables.item2 = 1
SugarCube.State.variables.item3 = 1
SugarCube.State.variables.item4 = 1

Gallery:
Needs both "Gallery " and "Scene" (Scene0 if there is 1 scene, Scene1 for second scene etc.) to unlock.
Just change the name of character and add "Scene" if needed.
SugarCube.State.metadata.set("KatrinaGallery", true)
SugarCube.State.metadata.set("KatrinaScene0", true)

To view the Patreon cheat code in the console enter this:
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.

You don't have permission to view the spoiler content. Log in or register now.
Do you know how to not feel indebted towards Idris after asking for his help already ?
the variable value to change ?
 

PGU

Newbie
Oct 9, 2021
35
38
"Netorare (Optional)", even if netorare is optional, cheating is NOT. You cheat on your GF at the very begining no matter what you choose, the choices don't matter at all, don't know what the point of them is.

IMO if an npc cheats and i don't have a say in it, that makes sense, they are their own character. But when the MC cheats even though i choose the "refuse" option at every single turn, then the game tells me "fuck you, you WILL cheat", then what even is the point? Just tell me i'll be playing as a cheating asshole and i'll have no choice in the matter.
 
  • Like
Reactions: Eduran and Saga89

Attal

Member
Oct 25, 2017
204
223
So when I start the game, it immediately jumps into a sex scene with Kait, then the phone rings, and a dev screen comes up about how the story is too be continued, then I get dumped into what looks like a free roam endgame where all of the characters are referring to events that I haven't seen. Is this intended behavior?
 

Liu_Kang

Newbie
Jan 6, 2023
25
3
So when I start the game, it immediately jumps into a sex scene with Kait, then the phone rings, and a dev screen comes up about how the story is too be continued, then I get dumped into what looks like a free roam endgame where all of the characters are referring to events that I haven't seen. Is this intended behavior?
The same problem
 

Satori6

Game Developer
Aug 29, 2023
503
1,099
nice job bro.and If you don't mind, I'd like to ask how you know these console codes.I mean is it some kind of universal console code or you crack it using some html techniques.Just a little curious
There's a simple tutorial in my signature.

Do you know how to not feel indebted towards Idris after asking for his help already ?
the variable value to change ?
Make a backup of your save and try SugarCube.State.variables.WdHm17CashIdris=0
 
  • Like
Reactions: killugerk

Vaeckmir

New Member
Jul 19, 2017
1
0
Is there a solution for the game to end at the beginning?
You can open the "Beef in the City.html" file with a text editor (notepad does the job), go to line 101 and replace :

<tw-storydata name="Beef in the City" startnode="351"

by

<tw-storydata name="Beef in the City" startnode="126"

save the file and then restart the game to have the game start as intended.
 

Mondoblasto

Well-Known Member
Nov 13, 2017
1,402
2,345
Pig&Pug
Exaused by the act, the girl fell down headfirst in the sheets.

Sky
That was something... I hope there's no issue with me cumming inside.

MC
Nah, it's all good. I couldn't wish for a better finale~

Sky
Me too, and I must say, your ass was worth every penny I spent!

MC
Glad to hear that... Come visit me every now and then, okay?
 

jussi818

Member
Jul 17, 2017
168
89
hmmm tested but not sure what thinking ,beautiful clips ++ , that dog for me it was totally useless not understand why that dog be on chat ...... big - , and story hmm not sure what think it . thank you for game
 
3.90 star(s) 12 Votes