Ren'Py Defining characters text customization.

Raboobie

Member
Oct 6, 2020
178
917
Hi

This might be a really stupid question, but when defining your characters and their text colour and icon images is it possible to include some kind of text tag, so that text will always be done according to that tag.

For example I want may players thoughts to always be in italics, so I've tried the following which won't work.

#Characters
define m = Character("[playerName]",color="#0041ff", image="icon_mc")
define t = Character("[playerName]'s thoughts",color="#0041ff", {i}{/i}, image="icon_mct")

If I'm not able to change the style, is it possible to us something like the {alpha=.5} tags.

Otherwise I guess I'll just have to settle for a different font colour.
 

Bip

Active Member
Donor
May 4, 2017
737
2,131
Totes Not Simon

You should try:
define think = Character( "[playerName]'s thoughts",color="#0041ff", what_italic=True)

It should work ;)
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,976
16,231
This might be a really stupid question, but when defining your characters and their text colour and icon images is it possible to include some kind of text tag, so that text will always be done according to that tag.
It's the role of 's arguments what_prefix and what_suffix.


This being said, there's a whole section of this forum dedicated for this kind of question. You'll have more chance to have an answer there if you've other questions in the future.
 

Raboobie

Member
Oct 6, 2020
178
917
It's the role of 's arguments what_prefix and what_suffix.


This being said, there's a whole section of this forum dedicated for this kind of question. You'll have more chance to have an answer there if you've other questions in the future.
Thanks, doubly the good info.

I looked briefly but obviously ended up in the wrong part of the hood, ;)
will post there if there is a next time.