The Dink Network

Re: Different default text color for Dink -- is it possible?

July 12th 2008, 12:06 AM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
Seems I read about the R,G,B values for each of the speech colors in Dink somewhere, but I am unable to locate it now that I want to change it. I'm wanting to change the color values for the default number rather than use '# for every line of speech, if it is possible. Any help is appreciated.
July 12th 2008, 05:18 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
lulz nub

The following line will change the colour of speech:

say_stop("`1Lalala I don't know what colour I'm speaking 'cause I can't be bothered to look it up", &variablethingygoeshere);

If you didn't get it, the `1 changes the colour. `2, `3, `4, `5, `6, `7, ,`8 ,`9 ,`0, `!, `@, `#, `$, and `% all change the colour as well.
July 12th 2008, 05:26 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
int &red = 255;
int &green = 132;
int &blue = 132;
set_font_color(14, &red, &green, &blue);

(Updated to add & before variable names, oops!)
July 12th 2008, 12:23 PM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
Thanks redink, I knew I had seen something like that before. As for DinkDude, thanks for trying to help.
July 12th 2008, 12:30 PM
wizardg.gif
schnapper
Peasant He/Him Heard Island And Mcdonald Islands
Let us save our effort and just lie down and die. 
Yeah, on the topic of text, does anyone know if its possible to make the dialogue font size fade to smaller? For example: guy falls down a hole - "AAAIIIYEEEEEEE!!", but the text fades out with his life.
July 12th 2008, 01:33 PM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
I found the reference for set_font_color in version 4.0 of DinkC Reference, and it states that the default colors are only set when the player starts the game for the first time. Based on this, I entered the commands into Start-1.c, and the color was changed, but it is very dark, almost black. This was using the RGB values for color 9, 'sky blue'. I have tried changing the values, but since I have started the game already, the color does not change. How do I reset the state to reflect a fresh install of the D-mod, as if it had not been started or played yet? I already tried copying the dmod folder (so I don't lose my work thus far) and uninstalling it from DFarc, but when I copy it back and restart DFarc, the situation is the same.
July 12th 2008, 08:09 PM
dinkdead.gif
If you copied Redink's script exactly you'll get black because the variables don't have the '&', so in effect you're saying this:
set_font_color(14, 0, 0, 0);

You don't even need to use variables, he just did that to make it clear. This is fine:
set_font_color(14, 255, 132, 132);

As for the rest, I'm not sure what you mean. You can change the font colour as many times as you like, what the DinkC ref. means is that if you change it it will 'reset' next time you play the game unless you change it again.

@ Schnapper: No, it's not. I've tried.
July 12th 2008, 10:01 PM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
Thanks Sparrowhawk, I understand better now.
July 13th 2008, 12:20 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Haha, I'm sorry! I thought you meant something else.