CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Lieths

Newbie
Jun 14, 2017
86
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
34
16
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
34
16
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
34
16
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:
  • Like
Reactions: Ennoch

Clemency

Active Member
Jan 21, 2024
839
1,017
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
34
16
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
34
16
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
16
6
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
34
16
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?
 
  • Like
Reactions: GD-studios

beefenstein

Member
Jan 29, 2019
141
76
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
34
16
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
141
76
_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
477
159
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.
 
  • Like
Reactions: oldgamesnewcontent

Crimson Fire

Member
Mar 12, 2022
193
407
I'm only mentioning this because I just got done making a reply to someone to explain how to make a custom character, but I want to make sure everyone who reads your post knows that this won't enable the same kinds of interactions that inherently female NPCs have (e.g. sex options). It will only affect display text and whatever art set changes you explicitly define.

In other words, no sex events,no extra sexy dialog, no pregnancy, etc for originally-defined male NPCs that you do a simple "find and replace" method to give female names and art assets to. They won't act like Lovisa does in the game. They'll act like a male character whose code is broken so that they get activated for some things they aren't supposed to - which is what you're doing.

Edit: Also be aware that you'll have to re-do every code change you're doing now when you want to update to a new version of the game. That's the only way to modify Story-Integrated characters.

Simply put, if someone wants to eliminate male NPCs entirely from the game, digging deep into the code is the only way to do so, and it'll have to be repeated at every version change.

If someone just wants to have a female-only household and doesn't care about not having the game's defined mercenaries in the household, the player can just edit their save file's specific code for an Expanded Random NPC or an existing female Explicitly Defined NPC - that won't require redoing everything at version change points unless specific custom dialog is wanted. for that NPC. If specific custom dialog is wanted for an ER NPC or an ED NPC, a few lines of code can be written for that, and then that code just needs to be added to new game versions, rather than changing the updated code for every game version.
You are simply wrong. The changes i explain and show do require changes with each update that is the one correct thing you said but everything else you are simple wrong.

You get sex options with my method because my method actually address the game's code block that Applies sex to every character in the game. I give players a cut and paste change that makes the male mercs FEMALE 100% from sex scenes to any other female gender specific interaction. What they do not have is unique sex scenes that some female character have because no sex scene was written specifically for them but any generic sex scene is available. You can assign them to a morning BJ or take them to the bathroom for a BJ there as well.

You are also mistaken about these modified characters not being able to have children. See pic below
You don't have permission to view the spoiler content. Log in or register now.

The above image shows Angel is pregnant in the in game even system.

Now if you just change the sex code sex 1 for male and sex 0 for female on the character blocks in the html file then yes you get a broken character that doesn't actually change sex. What you get is a named change and a imagine change. But my method SPECIFICALLY changes the code that applies sex to the characters and makes sure that Ansel rename Angel never gets assigned Male by the code of the game. And because all girlids 299 or less are designated female then Ansel renamed Agel becomes fully 100% female.

Here is an inspection of Angel Motte and it shows she has taken 6 loads in her vagina and says she is pregnant!

You don't have permission to view the spoiler content. Log in or register now.

So I have no idea why you are telling people this when I can show proof you are wrong.

Yes it takes effort.
yes you have to change the game's code separate from the characters stat block but i state that is the case clearly. I show the code that needs to be changed. to make it easy for people to find and i provide the code player need to copy and overwrite the existing code with.
Yes you have to change the male pictures with female picture but I CLEARLY state that.
Yes you have to change their names.
Yes you have to change the dialogue for these characters to get it aligned with their new gender.

The thing is I am 100% upfront with this knowledge.

Did you even attempt to make the changes I told you to make before you decided it doesn't work?
 

Crimson Fire

Member
Mar 12, 2022
193
407
Yeah I don't see the point in that either. If I want an all girl household I'll just dismiss all the guys. It's not like there's a shortage of females in MoR. Plus tweaking the code to make the guys girls does not create female renders for them. So I don't want a female Ayden. Clea already exists and has renders. Ayden can either be dismissed or be an expensive workshop worker... I guess I could see tweaking the gender slider for kids so you can have 100% daughters instead of 75% if you really want to pimp out your daughters when they get old enough but that's not really my thing.
Yes if you do a half assed change you get a half assed result. But i don't provide a step by step sex change that is half assed. I provide a step by step method that changes dialogue, names, the code of the game that assigns sex and I provide a method to give the males mercs pictures that are not the same as existing female characters because the game comes with two sets of pictures for the game. so you can get unique pictures for each of the newly changed female mercs.

Also are you so lacking in imagination that you can't think of any reason why anyone wouldn't want multiple female mercs as your captain, guards or followers? And the closest thing you come up with is making all children daughters and then pimping them out? and then criticize the idea as something you are not into? seriously? No other possible idea comes to mind why you would want a bunch of female mercs? No idea why players might just want a household of females? Can't think of one think but pimping out your daughters?
 
  • Like
Reactions: Bonercat
4.50 star(s) 144 Votes