Ren'Py Extracting color code from ADVCharacter objects

Corrupt King

Member
Game Developer
Nov 21, 2017
121
967
I have a bunch of characters with predefined individual colors, such as:
Code:
$ paul = Character("Paul", color = "#808080")
$ tom = Character("Tom", color = "#ffffff")
I want to reference these colors in screens. How do I retrieve them from paul and tom objects?
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
4,950
7,269
split them in variables, example:
Python:
define PaulColor = Color("#808080")
then use PaulColor in screens and within the character, like so:

Python:
$ paul = Character("Paul", color = PaulColor)