Girlid

From Masters of Raana
Revision as of 00:58, 19 August 2026 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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; 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

Source: Updated for MoR version 0.8.5.1