Changing the talking Color ingame.

Started by Fightmeyer, Tue 12/10/2004 10:13:58

Previous topic - Next topic

Fightmeyer

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??



Gilbert

hmmm should work, what colour depth is your game in?
Are you using a single "run script" to do the above?

Fightmeyer

I use 256 Color Depth.

And yes, i make it with a Run Script Command before and another one after the messages.

Gilbert

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.

Fightmeyer

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

Fightmeyer

Writing the whole stuff (incl. Displaymessage) in one script did the job!
Thanx for help.

Scorpiorus

#6
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 :)

SMF spam blocked by CleanTalk