Variables Guide [v0.26]

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#1
Brief description of all variables
There are several great tools for this game that let to view and edit the game variables. A lot of the players are using those tools for cheating or for bypassing various bugs this game has.

These variables can be used with Scene Dump files (they can be created with Cheat Menu) to find how to legally progress in the game, without cheating.

Variable editing tools
  1. CheatMenu [ ]
  2. Windows Registry Editor (regedit.exe) (HKEY_CURRENT_USER\Software\KsTgames\The Twist)
  3. Save Editor (TheTwistSaveEditor.exe) [ ]
  4. Online Save Editor [ ]
With (1) and (2) you can edit all the variables while playing, while (3) and (4) are save editors (note that not all variables are stored in the saves). (1), (2) and (3) are offline tools, while (4) is online tool.

Always backup your saves before modifying any variable!

This thread is for discussion of the game variables ONLY!
 

Attachments

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#3
Can you explain what the 'scene dump' is and how to use those files?
You can open them with any text editing program - Notepad, Notepad++, etc.
And along with the Variables Guide you can track the game logic in every scene.
And if you have some basic programming experience, to understand code, you no longer need any walkthrough.
 
Aug 5, 2017
33
20
#5
hello...could you pls advise me where to put dump files to edit later on with notepad?

I would like to play restaurant event and sending unconscious photo of Janice in the kitchen to Adriana event again.

Thanks for your help.
 

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#8
hello...could you pls advise me where to put dump files to edit later on with notepad?

I would like to play restaurant event and sending unconscious photo of Janice in the kitchen to Adriana event again.

Thanks for your help.
Therе's no point in editing dump files! They are just for tracing the ingame logic.

If you want to make changes in the game:
  1. You must decompile TheTwist\TheTwist_Data\Managed\Assembly-CSharp.dll with Visual Studio or with free tools like ILSpy or dnSpy.
  2. Then you can mod it. But this requires programming experience with C#.
  3. Then you must recompile it again with Visual Studio or with free tools like MSBuild.
Hey does anybody know the variables to unlock the online store Veronicas secret?

Thanks.
rachelq = 8
ALWAYS MAKE A BACKUP OF YOUR SAVE GAMES before messing with the game variables!!!

PS: Sorry for my late reply but I was on vacation.
 

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#9
John's beer quest line (updated for ver. 0.23):

beer = 0 - beer is already given to John (no beer in the inventory)
beer = 1 - beer is taken from the fridge (beer is in the inventory)
beer = 2 - beer is asked from John, but it is still not taken from the fridge (no beer in the inventory)
beer = 3 - beer with sleeping pills is in the inventory
beer = 4 - beer with sleeping pills is already given to John (no beer with sleeping pills in the inventory)
beer = 5 - beer with drug X is in the inventory
beer = 6 - beer with drug X is already given to John (no beer with drug X in the inventory)
 

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#14
Solution for the bug in ver. 0.24, where Jason can't participate in a threesome
with Emma and Kelly at the pool, even if he give them Vitamin X
I've already gave them the drugs, but still no progress to have sex with them. I think it's a bug even for the final ver. View attachment 127130
Cause of the bug: This bug advents because the variable drugLocal is not saved with the function SaveVariable().

Solution: So if you want to join Emma and Kelly set drugLocal = True.

If you are using CheatMenu:
Start the game and go to Emma's pool. Press [Show Cheats] button. Click on drugLocal to put a dot (•) in front of it:
(Bool)( )drugLocal ---> (Bool)(•)drugLocal

You have to set drugLocal = True every time you want to join Emma and Kelly at the pool.

Edit: Use either CheatMenu or Registry editor. Save game editors can't help you here.
 

Agungteguh27

Well-Known Member
Jun 4, 2017
660
223
#15
Solution for the bug in ver. 0.24final, where Jason can't participate in a threesome with Emma and Kelly at the pool, even if he give them Vitamin X.

This bug advents because the variable drugLocal is not saved with SaveVariable() function.

So if you want to join Emma and Kelly change drugLocal from False to True.
If you are using CheatMenu click on the drugLocal to put a dot in front of it.
i use save editor, but it doesn't work
 

AngelOfDeath

Active Member
Apr 27, 2018
353
405
#19
How to use the dump files

I've been asked that question many times. I'll try to explain, with an example, answering Vycron's question:
402. *Billy path* At Friday or Saturday when Janice will come to visit at night, give her Cosplay kit. Choose Naked photoshoot. Call Billy.

There is no option for giving her Cosplay kit and at the internet at cosplay store it says "Out of stock". And no cosplay Kit in inventory
You are stuck at step 402, right? Obviously you have missed to do something. This is what you have missed to do:
336. Go to Rachel's house (When Billy is not home). Accept her invite. Choose "Stay here". When is comes back, ask her to bath together. Repeat H-scene.
337. Go to Rachel's house again. Accept her invite. This time choose "Follow her". Wait till she undresses and "Approach her".
*Note* during the H-Scene at -5/+5 rough/gentle score there are additional animations.
338. Next day after school talk to Billy.
339. Go home and use PC, go to the Cosplay store website. And buy Cosplay kit.
340. Go to sleep and wait till the Janice will come to visit. Give her Cosplay kit. Jason will take some pictures. Additional picture at PC>Photo Library will be unlocked.
*Note* if you will come at Friday or Saturday. You will get additional scene.
341. Next day after school talk to Billy, he will ask to get him a naked Shelle's photo.
But since your (Vycron's) title says 'game developer' than you do not need any walkthrough. Everything you need is in the dump files. Download them from the OP. Also use the link in the OP and download and install dsconstructor's CheatMenu.

Now start the game and go to Jason's room. Press [Show Cheats] then [Show Debug]. This will show you the name of the scene, which is groom_jas.

With the button [Dump Scene] you can dump the scene code into a .dmp file. Cheat Menu is saving them in TheTwist\TheTwist_Data\ folder. But for your convenience I have already done this for all scenes in the game.

Now try to buy the Cosplay kit using Jason's PC. Jason will reply 'It says "Out of stock"...'. Search for 'It says "Out of stock"...' in the file groom_jas.dmp and you will find it in the following code:
Code:
(Block)Cosplay
    (If) (int)billyrach < 2
        (Say) Jason - It says "Out of stock"...  <-------------------- HERE
    (ElseIf) (int)billyrach == 2
        (If) (int)money < 400
            (Say) Jason - I don’t have enough money to buy that.
        (ElseIf) (int)money >= 400
            (If) (int)cosp == 0
                (SetVariable) (int)money - 400
                (SetVariable) (int)cosp = 1
                (SaveVariable) cosp
                (SetActive) UI_item (Cosp) True
                (Say) Jason - Nice...
                (SetActive) UI_item (Cosp) False
            (ElseIf) (int)cosp > 0
                (Say) Jason - I already bought it.
            (End)
This code correspond to step 339 from the walkthrough.
[339. Go home and use PC, go to the Cosplay store website. And buy Cosplay kit.]

You can't buy the cosply, because in your case billyrach < 2
Code:
(If) (int)billyrach < 2
    (Say) Jason - It says "Out of stock"...
To buy it you need billyrach == 2 and money >= 400 (you must have at least $400). Now the question is how to legit rise billyrach to 2 without cheating. It's simple - search for '(SetVariable) (int)billyrach = 2' in all dump files. You will find it in groom_school.dmp:
Code:
(Block)BillyRach/1
    (SetSayDialog) - Flowchart
    (Say) Jason - Hey Billy!
    (PlayAnimState) - Flowchart
    (Say) Billy - Fuck off! Get out of my sight!
    (Say) Jason - C’mon dude, I just want to talk.
    (PlayAnimState) - Flowchart
    (Say) Billy - Yeah? About what?
    (Say) Jason - Calm down, let’s be civilized…
    (PlayAnimState) - Flowchart
    (Say) Jason - Listen, you wasn’t serious about telling to your dad, right?
    (Say) Billy - I was serious! And I’m going to tell everything!
    (SetVariable) (int)billyrach = 2 <-------------------------------------------- HERE
    (SaveVariable) billyrach
    (Say) Jason - I understand that you are mad, but try to think about it. That will ruin your family… you don’t want that, don’t you?
    (PlayAnimState) - Flowchart
    (Say) Billy - I don’t care! You’re not going to change my mind!
    (Say) Jason - But what if I’ll offer something to keep your mouth shut?
    (PlayAnimState) - Flowchart
    (Say) Billy - Yeah? Like what?
    (PlayAnimState) - Flowchart
    (Say) Jason - I don’t know, you tell me.
    (PlayAnimState) - Flowchart
    (Say) Billy - How about I’ll fuck your mom? Since you fucked mine.
    (Say) Jason - Dude, you know I can’t force her to do that…
    (PlayAnimState) - Flowchart
    (Say) Billy - Of course you can’t! Because you’re just a fucking pussy!
    (Say) Billy - Anyway I don’t care about your mom anymore… Now I have a new idol!
    (Say) Jason - Really? Who?
    (PlayAnimState) - Flowchart
    (Say) Billy - Shelle Nightmore!
    (Say) Jason - Shelle… who?
    (PlayAnimState) - Flowchart
    (Say) Billy - Dude! Seriously?! The night elf’s high priestress...duh!
    (Say) Jason - Oh that one *chuckle*
    (PlayAnimState) - Flowchart
    (Say) Billy - Yes, right! I won’t tell dad if you bring me Shelle Nightmore!
    (Say) Jason - Dude… she is not real…
    (PlayAnimState) - Flowchart
    (Say) Billy - And how do you know that?! Do you have any proof?
    (Say) Jason - There is no such thing as elfs in this world....
    (PlayAnimState) - Flowchart
    (Say) Billy - Yeah right, and the earth is round… *Hah hah*
    (Say) Jason - Jesus… *not this shit again...*
    (PlayAnimState) - Flowchart
    (Say) Billy - Fuck that, I’m going home… Night elfs is not real *Hah hah* what an idiot! *hah hah*
    (Say) Jason - *Is he really that dumb?*
    (PlayAnimState) - Flowchart
    (Say) Jason - *Wait a second… if he is so interested in that Shelle N...whatever… hmm...I should check that fans website, maybe I’ll find something that would interest him.*
    (FadeScreen)
    (SetVariable) (int)time + 1
    (Call) school - Flowchart_global
This code correspond to step 338 from the walkthrough.
[338. Next day after school talk to Billy.]

Now we have to continue backtracking in game code to find from where is that block BillyRach/1 called. A quick search in the same file for '(Call) BillyRach/1' lead us to the following code:
Code:
(If) (int)billyrach == 1
    (Call) BillyRach/1 - null  <-------- HERE
(ElseIf) (int)billyrach == 2
    (Call) BillyRach/2 - null
(ElseIf) (int)billyrach == 3
    (Call) BillyRach/3 - null
(ElseIf) (int)billyrach == 4
    (Call) BillyRach/4 - null
(ElseIf) (int)billyrach == 5
    (Call) BillyRach/5 - null
(Else)
    (If) (int)billyscr == 1
        (Call) billyscr=1 - null
    (End)
    (If) (int)billyscr == 2
        (Call) billyscr=2 - null
    (End)
    (If) (int)billyscr >= 3
        (Call) billy6 check - null
    (End)
Block BillyRach/1 is called if billyrach == 1
Code:
(If) (int)billyrach == 1
    (Call) BillyRach/1 - null
Now we have to find where in the code billyrach = 1. Searching in all dump files for '(SetVariable) (int)billyrach = 1' lead us to the following code in groom_bmbedroom.dmp:
Code:
(Block)Billy
    (Say) Rachel - HUH?! Billy?!
    (Say) Billy - HOW.... HOW COULD YOU MOM?!
    (If) (int)billyrach == 0
        (SetVariable) (int)billyrach = 1  <---------------------------------- HERE
        (SaveVariable) billyrach
    (End)
    (Say) Rachel - It's not... not what it's look like!
    (Say) Billy - ... WITH JASON?! I CANNOT BELIEVE THIS!!!
    (InvokeEvent)
    (PlayAnimState) - Flowchart
    (PlayAnimState) - Flowchart
    (Say) Billy - I'M TELLING DAD!
    (Say) Rachel - NO!!! WAIT SWEETIE! DON'T!
    (Say) Billy - I'm not listening! Dad must know what a dirty slut you are mom!
    (FadeScreen)
    (PlayAnimState) - Flowchart
    (InvokeEvent)
    (SetActive) billy_rachbedrrom False
    (FadeScreen)
    (Say) Rachel - What have I done... *sniff*If he tell about this to Peter... Oh god... *sniff* our family will be ruined *cry*
    (PlayAnimState) - Flowchart
    (Say) Jason - Calm down Rachel... let me talk to Billy first.
    (Say) Rachel - I don't think you can convice him keep it in secret...*sniff* don't you know how stubborn Billy is? *sniff*
    (Say) Jason - Leave it to me, I'm sure I'll think something.*Goddamn I'll have to deal with that fatass again...*
    (FadeScreen)
    (Call) townmap - Flowchart_global
This code correspond to step 337 from the walkthrough.
[337. Go to Rachel's house again. Accept her invite. This time choose "Follow her". Wait till she undresses and "Approach her".]

I think that's enough backtracking. It's now obvious what needs to be done:
  1. Billy must caught you having sex with his mom in their home.
  2. You must to talk to Billy at school and try to bribe him to keeps his mouth shut.
  3. Now you can buy that notorious Cosplay kit for $400 from Jason's room.
 
Likes: darlic
Jun 11, 2017
31
5
#20
Solution for the bug in ver. 0.24final, where Jason can't participate in a threesome with Emma and Kelly at the pool, even if he give them Vitamin X.

This bug advents because the variable drugLocal is not saved with the function SaveVariable().

So if you want to join Emma and Kelly change drugLocal from False to True.

If you are using CheatMenu click on drugLocal to put a dot (•) in front of it:
(Bool)( )drugLocal ---> (Bool)(•)drugLocal

You have to set drugLocal = True every time you want to join Emma and Kelly at the pool.
Thanks, this was driving me crazy!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.