GD-studios

The Budman
Game Developer
Nov 20, 2021
896
3,180
Any way to fix this shit? I can't press check followers cause of the text overlap (i play on joyplay) View attachment 4249549
What combat encounter is this? And what is your current game version?

If you could paste this into the console:

SugarCube.Save.export("MORDay"+SugarCube.State.active.variables.days+"Time"+SugarCube.State.active.variables.daycount+"Comment")

and send me that save file, I'll have all the information I need to fix it.
 
Last edited:
  • Like
Reactions: Fauno36

Lieths

Newbie
Jun 14, 2017
84
83
I am taking issue with some wording you have here, since that would be in complete opposition to how the game is structured.

You say 'Throwaway NPCs are the remaining NPCs that aren't intended to be kept in your household'. Without digging through code or by memorizing the wiki entries the player has no effective way of knowing what is what. If those are not meant to be part of the household, why let them join in the first place? If the game's idea is to only fill the household with chars that are non-throwaways, why not simply disable the ability to add them to the household in the first place?

People have had many issues understanding who is what (just go back the thread and count those posts), the wiki never states anything about that being a main idea of the game, because that would mean there is a certain way a player is supposed to play the game to be successful. A player that hasnt been playing for a longer time can not see the difference in terms of stat limits vs better stats for integrated ones either. So either this really needs fixing asap or at least some proper stating in the wiki.
Me who sold lovisa after training her without knowing she was actually a story npc...
 
  • Wow
Reactions: GD-studios
Apr 4, 2023
21
5
This is +100.
I sold 2 (only confirmed) unique NPC (and realize that after many in-game days and no save files) because there is no visual indication. i know some, usually japanese, games used this mechanic (enemy capture), but adding a hint would be helpful
Speaking of which... Anyone know how to reset the Juno Rowena and Kelly McTierney encounters? I sold them both before I knew how the NPC system works. Also, Nicole Boulay, apparently.
You can search the html file's code to see what variables are tied to character activation and then reset them. For Kelly it's related to the Circlet stuff. I had to do that one myself.

I think there's a mod somewhere that puts NPC type icons on characters, but only once you already have them in your house.
 
Apr 4, 2023
21
5
I am taking issue with some wording you have here, since that would be in complete opposition to how the game is structured.

You say 'Throwaway NPCs are the remaining NPCs that aren't intended to be kept in your household'. Without digging through code or by memorizing the wiki entries the player has no effective way of knowing what is what. If those are not meant to be part of the household, why let them join in the first place? If the game's idea is to only fill the household with chars that are non-throwaways, why not simply disable the ability to add them to the household in the first place?

People have had many issues understanding who is what (just go back the thread and count those posts), the wiki never states anything about that being a main idea of the game, because that would mean there is a certain way a player is supposed to play the game to be successful. A player that hasnt been playing for a longer time can not see the difference in terms of stat limits vs better stats for integrated ones either. So either this really needs fixing asap or at least some proper stating in the wiki.
I called them throwaway because their status or effects either are very inferior or hurt your household. If someone wants to play with characters that are very weak or wants their house hurt, that is a valid way of playing surely. It isn't what a typical play would want I think. Rename the category however you want.

The Wiki doesn't document things by category. It only lists basic stuff about avatars that have unique code calls. It doesn't give many details about NPCs really.

Edit: I just checked the Discord and Grim says there will be visual differences for wardrobes for Story NPCs and Random NPCs, so that should help a little bit for people if it is said somewhere in the game.
 
Apr 4, 2023
21
5
If you could tell me how to change prostitution income that would be nice.
I could only find a single line that sets the baseline income for blowjob to $50 which is of course totally different than what the wiki says in either types of whoring but regardless of that, full service and escorting suppose to have a flat base line. I just couldn't find those.
You seem smart enough to do things yourself in the future so I will explain a basic process of how I found the values you need.

First, find out what the variable name for player money is. Easy with saveeditonline or web dev panel

In code, search for that variable and += because += means "add to"


If we don't even know it, we can guess at a few common words... cash, money, income, etc.

You said the base is 50, so let's try cash+=50

No results for what you want (in my old file at least), but we see "$cash+=50*_foodprice, $foodstuff-=50" and that tells us how we can do multiplication for a value

Let's see if we can find something about prostitution... let's start with a shortened word because variables are often short. Lets try prost

about 700 matches for prost

What if we do $ for global variable, and make it $prost ?

Now about 300 results

We can see
<<set $prostloc to 0>>
<<set $prostdays to 0>>
<<set $prostscore to 0>>

Let's try prostscore. 100 matches.

We find a line
<<if $analxp gte 80 and $prostscore lte 39>><<set _money+=300>><</if>>

Above that is a list of different xp rates and money values. At this point, we could add "*2" to all of them and play the game and see if our money doubles, so we could inspect more code to see if this is actually what we want.

If we search _money we get 250 results. A lot of them look the same. Let's try finding a formula with it. Let's try a checking formula. "If _money" gives 50 results.

<<if _money gte 1000>>
<<if $scarefactor gte 2>><<set _money-=200>><</if>>
<<if $scarefactor gte 3>><<set _money-=200>><</if>>
<<if $masterlove lte 19>><<set _money-=200>><</if>>
<</if>>

Yep, looks like money goes down when variables we like are low. _money is probably for prostitution income.

Let's try finding what _money gets added to "+=_money"

1 result
<<set $cash+=_money>>

So now we can make anything related to _money give double value with changing it to "<<set $cash+=2*_money>>" like we saw for "$cash+=50*_foodprice"

There's your double prostitution money without changing important game code

Edit: Wait, I looked around the area of code where that cash+=_money code is, just to be sure. And that whole code list seems like it might not be for prostitution income. Maybe it's slave sale price? This is why we check.

Let's go back to using prostscore and see what other possibly related code shows up

Searching backwards from the bottom of the file, we see
<<if _ran27 is 16>><<if _apnpc.age lte 19 and _apnpc.prostscore gte 5>>A man _apnpc.girlname recognizes as one of her regulars

prostscore is definitely relevant, and it seems that a higher value than 5 is required for an abduction event

Going up in the file more, we see
<<if _apnpc.prostscore gte 750>><<set _show+=25>><<set $totgain+=25>><</if>>

Now we have two new variables to look at "_show" and "totgain"

And the code below the line we found explains them

''_show dollars added!''

<<set _robbed to _show>>
<<set _apnpc.pussywear+=_ran5>>
<<set _apnpc.oralwear+=_ran5>>
<<set $totgain+=50*_ran3>>
<</if>>

You said the wiki said the base amount for prostitution is 50. This code says totgain is equal to a minimum of 50 multiplied by randomly chosen 1, 2, or 3. So totgain is at least 50, 100, or 150

totgain looks like it's our prostitution income amount

So let's change

<<set $totgain+=50*_ran3>> to <<set $totgain+=2*50*_ran3>>

That should double the income. Save your HTML file and try it out

For an extra step so make the visual amount change, we can also change

''_show dollars added!''

to (user-friendly code)

<<set _showdouble to 0>> <<set _showdouble+=2*_show>> ''_showdouble dollars added!''
 
Last edited:

Clemency

Active Member
Jan 21, 2024
770
884
I called them throwaway because their status or effects either are very inferior or hurt your household. If someone wants to play with characters that are very weak or wants their house hurt, that is a valid way of playing surely.
Calling the only NPC category that can reach 180 Beauty and deliver you a 225 Beauty child inferior is fighting words.

Also I have three Herculean randoms pre-0832 that rolled into combat traits. No crackshot of course but they are much better than my ammo pack users not named Milou, Clea, or Einar. I do not use them though. They're workshop workers because there are scripted Hercs and Petites with traits I desire to use.
 
Apr 4, 2023
21
5
Calling the only NPC category that can reach 180 Beauty and deliver you a 225 Beauty child inferior is fighting words.

Also I have three Herculean randoms pre-0832 that rolled into combat traits. No crackshot of course but they are much better than my ammo pack users not named Milou, Clea, or Einar because Herculeans used to be uncapped in both STR and Melee training.
I think you have misread what I wrote. I made distinctions between non-throwaway random NPCs (two categories) and throwaway random NPCs (a separate category).
 
  • Like
Reactions: Clemency
Apr 4, 2023
21
5
Hi, is there a way to play with a female/futa protagonist? And if not, is there a possibility of it being added in the future?
Sorry, I missed this one earlier. Busy day.

There's no reason the game code couldn't be modified to support a futa character if you are ok with the game ignoring that the main character has a flat chest. It would require a lot of text replacement though.
 

Liliyns

Newbie
Jun 26, 2020
15
5
Sadly i can't paste that into the console since i play on joyplay (on my phone) but the encounter was for the black scorpions (and its not a isolated case my entire ui is overlapping (also i play on the current version)
 
Apr 4, 2023
21
5
Sadly i can't paste that into the console since i play on joyplay (on my phone) but the encounter was for the black scorpions (and its not a isolated case my entire ui is overlapping (also i play on the current version)
That's a div overflow problem because the game's code isn't properly set up for flex, is my guess.

Did you have this problem on previous versions?
 

beefenstein

Member
Jan 29, 2019
118
62
You can search the html file's code to see what variables are tied to character activation and then reset them. For Kelly it's related to the Circlet stuff. I had to do that one myself.

I think there's a mod somewhere that puts NPC type icons on characters, but only once you already have them in your house.
Thanks. I used to do web development in the past and it still somehow didn't occur to me that the whole game is just the human-readable 17MB HTML file. Even after I kept ignoring the game for a long time because "it's a browser game, so how good could it be?". :HideThePain:

Looks to me like there's just a $ownkelly -variable and if that's undefined, it'll roll for her event. Should be clean to just get rid of that in my save. The circlet stuff seems to be from her personal quest and I hadn't talked to her about it yet when I sold her.
 
Apr 4, 2023
21
5
Thanks. I used to do web development in the past and it still somehow didn't occur to me that the whole game is just the human-readable 17MB HTML file. Even after I kept ignoring the game for a long time because "it's a browser game, so how good could it be?". :HideThePain:

Looks to me like there's just a $ownkelly -variable and if that's undefined, it'll roll for her event. Should be clean to just get rid of that in my save. The circlet stuff seems to be from her personal quest and I hadn't talked to her about it yet when I sold her.
You're wanting to activate this part of the code, which takes place after a new day start if all of the KellyQuest initiation flags are set to "begin"


<<if $ownkelly is 0>>

<<if $adpos is 0 and $adpos2 is 0>>
<<set $pic to 1>>
<<set _speblock to true, _noret to true, _noreturn to true>>
You're viewing the young woman that was just captured by one of your mercenaries as she tried to break into the main building. She's holding her hands in a combat-ready position, even though your guard has disarmed her.


That means you need to edit what got changed when you interacted with her, e.g.


<br><br>
''Legendary Item (Red River Circlet) added to Inventory!''
<<set $ownrrc to 1>>
<</if>>


<<if $action is 2>>
<<if _rcc is true and $ownrrc is 1>>
[[Present circlet|Talk][$ownrrc to 0, $action2 to true, $ownrrcnote to 1]]
<</if>>

etc.

So check those variables too.
 
Last edited:

beefenstein

Member
Jan 29, 2019
118
62
_rcc and $ownrrc are undefined. The first time I heard of a Red River Circlet was when I looked at the code.

Is it a v0.8.3.6/7 thing? I started the save in v0.8.3.5 and(EDIT: no, it's there) I have no recollection of any circlet coming up in the brief time I interacted with her. I was unaware of how little effect the Feminist trait has at that point and figured it'd rub off on the other slaves, so I sold her away straight away. In other words I never got the circlet quest which would've set the variables.

EDIT2: I'm trying to figure out what triggers the Kelly introduction in the first place, but yeah, it's 17MB of JavaScript, so it's kind of hard to parse, especially if you aren't familiar with SugarCube.

EDIT3: Eh, I'm giving up before I spend a pointless amount of time on this minor thing. I got rid of the scrap heap in the yard to make space for a workshop, so there's no way to do her quest anyway.
 
Last edited:

DrLizardman

Member
Apr 28, 2021
468
139
Ok so here's a tip for those who don't want to scour the wiki/code. If the npc has an introduction, shows "has scenes" upon processing, is bought from the faction house or the Crystal Hills market, has a name that does not change after being added to the household, or any combination of those above.... They are probably important.
 
4.50 star(s) 142 Votes