I'm trying to break up the input I get from:

if ( race_table[ch->race].aff != 0 && IS_AFFECTED
   ( ch, race_table[ch->race].aff ) )
       {
        sprintf( buf, "[::Race ::] %-15s\n",
        flag_string ( affect_flags, race_table[ch->race].aff ) );
        send_to_char( buf, ch );
       }

Current Output:

      [::Race ::] infrared haste regeneration

I would like it to read:

        [::Race ::] infrared         : Racial Affect
        [::Race ::] haste            : Racial Affect
        [::Race ::] regeneration     : Racial Affect

Was wondering the best way to go about this.  I can't break up the racial
affects any other way.  I was thinking of taking something like one_argument
and captuering each one 1 at a time however i'm not sure if this is correct.
This function is to modify do_affects

Thanks in advance,
   Mallek

Linux Redhat 7.0
Rom 2.4b6 modified
Affect2 bits added


Reply via email to