Cross-posted: http://www.smaugmuds.org/index.php?a=topic&t=3715&p=15266#p15266
Hi. Sorry to bother you with another question but I cannot seem to get this problem fixed. I added some color codes into my score dialog. However, now the language that you are speaking does not show up as red anymore. All the languages are just the default color.
Here is the code:
You can see at the top that I added a custom color of light blue to the "Languages" text but the languages that follow are all grey instead of the spoken ones being red.
Is there a way to fix this? The only way I've found so far is to remove all color codes and then the spoken languages show up in red again.
Hi. Sorry to bother you with another question but I cannot seem to get this problem fixed. I added some color codes into my score dialog. However, now the language that you are speaking does not show up as red anymore. All the languages are just the default color.
Here is the code:
send_to_pager( "&CLanguages&D: ", ch );
for( iLang = 0; lang_array[iLang] != LANG_UNKNOWN; iLang++ )
if( knows_language( ch, lang_array[iLang], ch ) || ( IS_NPC( ch ) && ch->speaks == 0 ) )
{
if( lang_array[iLang] & ch->speaking || ( IS_NPC( ch ) && !ch->speaking ) )
set_pager_color( AT_RED, ch );
send_to_pager( lang_names[iLang], ch );
send_to_pager( " ", ch );
set_pager_color( AT_SCORE, ch );
}
send_to_pager( "\r\n", ch );
You can see at the top that I added a custom color of light blue to the "Languages" text but the languages that follow are all grey instead of the spoken ones being red.
Is there a way to fix this? The only way I've found so far is to remove all color codes and then the spoken languages show up in red again.