Girlid: Difference between revisions

From Masters of Raana
Jump to navigation Jump to search
AlexD (talk | contribs)
Created page with "'''GirlID''' is the code which the game uses to refer to an NPC. It can have a value from av1 up to av200. There is confusion between this, '''image set''', and '''AV number'''. '''Image set''' is the folder the game stores image files for an NPC in, starting with Av1 and upwards to Av399 (not all possible positions are currently occupied). '''AV number''' can mean either of these two. So is best avoided, except for numbers below 100, in which case GirlID = image se..."
 
AlexD (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
'''AV number''' can mean either of these two. So is best avoided, except for numbers below 100, in which case GirlID = image set = AV number.  
'''AV number''' can mean either of these two. So is best avoided, except for numbers below 100, in which case GirlID = image set = AV number.  


The reason that [[girlid]]<nowiki/>s don't always match the image sets for values 100+ is that, to stop the overnight calculations that determine the development of the characters (skill gains etc) getting impossibly slow, the game limits itself to tracking 200 NPCs. But there are far more characters than this in the game. So for historical reasons the first 99 girlids are assigned permanently to core characters (most but not all core characters receiving one), and match the number of their image set. And the girlids 100-199 are assigned dynamically to characters when they appear in the game, and are ditched to be re-used when they leave. So these higher girlids do not match the Av codes of the character's accompanying image sets (which now exceed 300).  
The reason that [[girlid]]<nowiki/>s don't always match the image sets for values 100+ is that, to stop the overnight calculations that determine the development of the characters (skill gains etc) getting impossibly slow, the game limits itself to tracking 200 NPCs. But there are far more characters than this in the game. So for historical reasons the first 99 girlids are assigned permanently to core characters (most but not all core characters receiving one), and match the number of their image set. And the girlids 100-199 are assigned dynamically to characters when they appear in the game, and are ditched to be re-used when they leave. So these higher girlids do not match the Av codes of the character's accompanying image sets (which now exceed 300).


So for instance if Mae (image set Av138) is the first character with an image set numbered above 99 who you add to your household, she will be assigned GirlID av100, and this will include a pointer to her image files in folder Av138. Then if you next add Julie (image set Av100), she will be assigned GirlID av101, not av100.  
So for instance if Mae (image set Av138) is the first character with an image set numbered above 99 who you add to your household, she will be assigned GirlID av100, and this will include a pointer to her image files in folder Av138. Then if you next add Julie (image set Av100), she will be assigned GirlID av101, not av100.  
Line 24: Line 24:
<code><nowiki>console.log(value.girlname+' identified as SugarCube.State.active.variables.npc.'+key); }}}</nowiki></code>  
<code><nowiki>console.log(value.girlname+' identified as SugarCube.State.active.variables.npc.'+key); }}}</nowiki></code>  


It will produce a result showing the GirlID associated with that firstname; if you have two girls with the same first name, it will give you two GirlIDs.
It will produce a result showing the GirlID associated with that firstname, e.g. "<code>Mae identified as SugarCube.State.active.variables.npc.'''av100'''</code>". If you have two girls with the same first name, it will give you two GirlIDs.


== Notes ==
== Notes ==
'''Variables''': N/A
'''Variables''': N/A


'''Links''': [[AV number]], [[Image Set]]
'''Links''': [[AV number]], [[Image Set]], [[Story NPCs|list of NPCs]]


'''Source''': Updated for MoR version 0.8.5.1
'''Source''': Updated for MoR version 0.8.5.1

Latest revision as of 17:21, 20 August 2026

GirlID is the code which the game uses to refer to an NPC. It can have a value from av1 up to av200.

There is confusion between this, image set, and AV number.

Image set is the folder the game stores image files for an NPC in, starting with Av1 and upwards to Av399 (not all possible positions are currently occupied).

AV number can mean either of these two. So is best avoided, except for numbers below 100, in which case GirlID = image set = AV number.

The reason that girlids don't always match the image sets for values 100+ is that, to stop the overnight calculations that determine the development of the characters (skill gains etc) getting impossibly slow, the game limits itself to tracking 200 NPCs. But there are far more characters than this in the game. So for historical reasons the first 99 girlids are assigned permanently to core characters (most but not all core characters receiving one), and match the number of their image set. And the girlids 100-199 are assigned dynamically to characters when they appear in the game, and are ditched to be re-used when they leave. So these higher girlids do not match the Av codes of the character's accompanying image sets (which now exceed 300).

So for instance if Mae (image set Av138) is the first character with an image set numbered above 99 who you add to your household, she will be assigned GirlID av100, and this will include a pointer to her image files in folder Av138. Then if you next add Julie (image set Av100), she will be assigned GirlID av101, not av100.


To find out the GirlID variable for an NPC without looking through all your game's image folders for their face, copy the following code and paste all five lines into the console in one go, then edit "mae" to be the first name of the girl you want to find, then press "Enter":

cheatgirlname = "mae"

for (const [key, value] of Object.entries(SugarCube.State.active.variables.npc)) {

if (value.hasOwnProperty("girlname")) {

if (value.girlname.toLowerCase() == cheatgirlname.toLowerCase()) {

console.log(value.girlname+' identified as SugarCube.State.active.variables.npc.'+key); }}}

It will produce a result showing the GirlID associated with that firstname, e.g. "Mae identified as SugarCube.State.active.variables.npc.av100". If you have two girls with the same first name, it will give you two GirlIDs.

Notes

Variables: N/A

Links: AV number, Image Set, list of NPCs

Source: Updated for MoR version 0.8.5.1