• To improve security, we will soon start forcing password resets for any account that uses a weak password on the next login. If you have a weak password or a defunct email, please update it now to prevent future disruption.

Ren'Py Extracting color code from ADVCharacter objects

Corrupt King

Member
Game Developer
Nov 21, 2017
122
977
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,964
7,282
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)