Ren'Py How do I change "grouped" variables in Renpy console?

MrJay

Active Member
Apr 21, 2017
558
1,651
I'm sure this has been asked many times but I simply don't know what to search for to find those threads, and I've tried.

I'm in the Renpy console and I'm trying to change the value of a variable that is "grouped" in another variable.

It's a variable named let's say relationshipPoints in the console and when I call it to view its value it reads something like {'NameA': 0, 'NameB': 5,
'NameC': 3}

So how do I change any one of those values via the console?
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,359
17,267
It's a variable named let's say relationshipPoints in the console and when I call it to view its value it reads something like {'NameA': 0, 'NameB': 5,
'NameC': 3}

So how do I change any one of those values via the console?
In this particular case, with relationshipPoints["NameA"] = WHATEVER VALUE YOU WANT.

BUT if you need to ask for this, I highly recommend you to not do it. It's really easy to break the game even when you know what you are doing, so imagine when you don't really know what you are doing...
 
  • Like
Reactions: MrJay

MrJay

Active Member
Apr 21, 2017
558
1,651
In this particular case, with relationshipPoints["NameA"] = WHATEVER VALUE YOU WANT.

BUT if you need to ask for this, I highly recommend you to not do it. It's really easy to break the game even when you know what you are doing, so imagine when you don't really know what you are doing...
I know enough to keep backup saves and roughly what I can get away with and not, so it'll almost certainly be fine.

Thanks for the help, though!