Here's some of my debugs:
You say 'test'
Log: [*****] BUG: parse_setvar: setting sex string.
Mob says 'Zeno.sex'
if (!str_cmp( word, "sex")
if (chkchar->sex == 2)
strcat( results, format( "%s", "female" ));
strcat( results, format( "%s", "male" ));
bug( "parse_setvar: setting sex string." );
So the function is working just fine. Which means, something has to be wrong here:
str = parse_setvar( str, mob, actor, obj, vo, rndm );
/* This chunk of code taken from mprog_process_cmnd. */
while ( *str != '\0' )
if ( *str != '$' )
*point++ = *str++;
mprog_translate( *str, tmp, mob, actor, obj, vo, rndm );
i = tmp;
while ( ( *point = *i ) != '\0' )
*point = '\0';
Right? Anyone see anything wrong there?