Ren'Py Need some tips on using renpy console

pzqmthm

Newbie
Jun 27, 2017
23
4
Hi, I was wondering if there was a way to print which variables are connected to which parents. For instance say you have a parent mcstats, it'll return something like <store.Mcstats object at ....>. Is there a way to know whats in that function? For instance If mcstats.str, mcstats.int, mcstats.dex exist, is there a command that will list str, int, and dex? I've looked up the renpy documentation, and I either didnt know what I was looking at, or was looking at the wrong place.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,421
17,381
Hi, I was wondering if there was a way to print which variables are connected to which parents. For instance say you have a parent mcstats, it'll return something like <store.Mcstats object at ....>. Is there a way to know whats in that function? For instance If mcstats.str, mcstats.int, mcstats.dex exist, is there a command that will list str, int, and dex? I've looked up the renpy documentation, and I either didnt know what I was looking at, or was looking at the wrong place.
Assuming that the question is "how to know what attribute an object have", what seem to be what you tried to ask:

sorted( mcstats.__dict__.keys() ) will list them.
 

Danv

Well-Known Member
Aug 21, 2020
1,335
1,847
probably will be easier to use URM instead of console, there you can see what parents contain as a drop down