Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Fightmeyer on Tue 12/10/2004 10:13:58

Title: Changing the talking Color ingame.
Post by: Fightmeyer on Tue 12/10/2004 10:13:58
Hello Folks,

i allready searched the forum, but didn't found any answer. I try to change the talking color in the game, because my Character reads a lot of stuff, that schould be seen as some kind of quotations. So i want another fontcolor if he reads it.

i tried it with a script before the messages will displayed.

SetTalkingColor (EGO, newcolor);

Messages

SetTalkingColor (EGO, oldcolor);

But in the game i see no difference. It's still the same color. Do i make something wrong??


Title: Re: Changing the talking Color ingame.
Post by: Gilbert on Tue 12/10/2004 10:16:57
hmmm should work, what colour depth is your game in?
Are you using a single "run script" to do the above?
Title: Re: Changing the talking Color ingame.
Post by: Fightmeyer on Tue 12/10/2004 11:13:29
I use 256 Color Depth.

And yes, i make it with a Run Script Command before and another one after the messages.
Title: Re: Changing the talking Color ingame.
Post by: Gilbert on Tue 12/10/2004 11:21:56
Hmmm did you set up the game so all the messages are said by the player character (the checkbox option 'Always display text as speech")?
Otherwise all room/global messages are displayed using the text GUI, which is not related to a character's talking colour.
Alternately, you may try to move those Display message actions into teh script (using Display(), DisplayMessage(), DisplaySpeech(), etc.) and see if it makes any difference.
Title: Re: Changing the talking Color ingame.
Post by: Fightmeyer on Tue 12/10/2004 11:43:34
Yes. This option is active. But it's a good idea to put the display stuff within the script. I will try this as soon, as i'm home again.

Thanx
Title: Re: Changing the talking Color ingame.
Post by: Fightmeyer on Wed 13/10/2004 11:45:57
Writing the whole stuff (incl. Displaymessage) in one script did the job!
Thanx for help.
Title: Re: Changing the talking Color ingame.
Post by: Scorpiorus on Wed 13/10/2004 17:15:25
Yeah, if you have a "Run Script" action set for a certain interaction, it is strongly recommended that you don't have any other actions there. If you have other actions, it is possible that the "Run Script" action is executed last regardless of its position in the list.
That's what happened - you put it as:

- Run Script (set color)
- display message
- Run Script (reset color back)

But AGS runs it as:

- display message
- Run Script (set color)
- Run Script (reset color back)


which explains why you didn't notice the difference in color :)

EDIT: to fix order of actions :)