Changing color per dialogue ? [SOLVED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Changing color per dialogue ? [SOLVED]

#1 Post by pratomoastan »

Hai i want to ask is it possible to change the dialogue color every characters ?

Code: Select all

#global
define e = Character('Eko', color="#33aaee", who_color="#33aaee", what_font="font/sansani.otf")
define n = Character('Neis', color="#eb6111", who_color="#eb6111", what_font="font/sansani.otf")
define g = Character('Grace', color="#ff005a", who_color="#ff005a", what_font="font/sansani.otf")
I Already Did That But Its Only Change The Color Of The Characters Name Not The Dialogue

Code: Select all

e "テンサイ" <<< i want this dialogue text became #33aaee
show ghbod at right with move and dissolve and fade
g "テンサイ" <<<< #i want this dialogue text became eb6111
show nhbod at center with move and dissolve and fade
n "*テンサイ'" <<< #i want this dialogue text became ff005a 
Any Ideas ?
I Dont Want To Use

Code: Select all

style.default.color = "#b10821"
Because It Will Just Change All Of The Dialogue Text To Red ><
Last edited by pratomoastan on Sun Jul 03, 2016 11:57 am, edited 1 time in total.
~ Sempai !!!

User avatar
Shimrra
Newbie
Posts: 6
Joined: Fri Sep 25, 2015 7:33 pm
Github: Shimrra
Skype: shimrrathedark
Contact:

Re: Changing color per dialogue ?

#2 Post by Shimrra »

I think you're looking for the tag "what_color"

Code: Select all

define e = Character('Eko', color="#33aaee", who_color="#33aaee", what_font="font/sansani.otf", what_color="#33aaee")

User avatar
pratomoastan
Regular
Posts: 39
Joined: Fri Mar 11, 2016 11:39 am
Projects: My High School Life
Organization: After School Things
Deviantart: pratomoastan
Location: Indonesia
Contact:

Re: Changing color per dialogue ?

#3 Post by pratomoastan »

Shimrra wrote:I think you're looking for the tag "what_color"

Code: Select all

define e = Character('Eko', color="#33aaee", who_color="#33aaee", what_font="font/sansani.otf", what_color="#33aaee")
Huehuehuehue
Thanks !! ><
~ Sempai !!!

Post Reply

Who is online

Users browsing this forum: Google [Bot]