I dont want my players to have the choice to pick
Would you like RIP, ANSI or no graphic/color support, (R/A/N)?
how do i get a default N
Would you like RIP, ANSI or no graphic/color support, (R/A/N)?
how do i get a default N
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Ardentcrest on Sat 29 Nov 2014 11:02 PM — 16 posts, 59,550 views.
...
write_to_buffer( d, "\r\nWould you like RIP, ANSI or no graphic/color support, (R/A/N)? ", 0 );
d->connected = CON_GET_WANT_RIPANSI;
}
void nanny_get_want_ripansi( DESCRIPTOR_DATA * d, char *argument )
{
CHAR_DATA *ch;
char log_buf[MAX_STRING_LENGTH];
ch = d->character;
switch ( argument[0] )
{
case 'r':
case 'R':
xSET_BIT( ch->act, PLR_RIP );
xSET_BIT( ch->act, PLR_ANSI );
break;
case 'a':
case 'A':
xSET_BIT( ch->act, PLR_ANSI );
break;
case 'n':
case 'N':
break;
default:
write_to_buffer( d, "Invalid selection.\r\nRIP, ANSI or NONE? ", 0 );
return;
}
...
// write_to_buffer( d, "\r\nWould you like RIP, ANSI or no graphic/color support, (R/A/N)? ", 0 );
// d->connected = CON_GET_WANT_RIPANSI;
void nanny_get_want_ripansi( DESCRIPTOR_DATA * d, const char *argument ); // prototype
// skip to next phase
nanny_get_want_ripansi(d, argument );
}
void nanny_get_want_ripansi( DESCRIPTOR_DATA * d, const char *argument )
{
CHAR_DATA *ch;
char log_buf[MAX_STRING_LENGTH];
ch = d->character;
switch ('N') // or whatever
{
case 'r':
case 'R':
xSET_BIT( ch->act, PLR_RIP );
xSET_BIT( ch->act, PLR_ANSI );
break;
case 'a':
case 'A':
xSET_BIT( ch->act, PLR_ANSI );
break;
case 'n':
case 'N':
break;
default:
write_to_buffer( d, "Invalid selection.\r\nRIP, ANSI or NONE? ", 0 );
return;
}
/* Changing this up a bit...automatically sets PLR_ANSI, skips want ansi/msp.
write_to_buffer( d, "\n\rWould you like ANSI or no graphic/color support, (R/A/N)? ", 0 ); */
SET_BIT(ch->act,PLR_ANSI);