… | |
… | |
357 | |
357 | |
358 | $ob->set_animation (2); |
358 | $ob->set_animation (2); |
359 | $ob->add_statbonus; |
359 | $ob->add_statbonus; |
360 | |
360 | |
361 | while () { |
361 | while () { |
362 | $ns->send_msg (-1, "chargen-race-title", ucfirst $pl->title); |
362 | $ns->send_msg ("chargen-race-title", ucfirst $pl->title, -1); |
363 | my $msg = $ob->msg; |
363 | my $msg = $ob->msg; |
364 | $msg =~ s/(?<=\S)\n(?=\S)/ /g; |
364 | $msg =~ s/(?<=\S)\n(?=\S)/ /g; |
365 | $ns->send_msg (cf::NDI_BLUE, "chargen-race-description", $msg); |
365 | $ns->send_msg ("chargen-race-description", $msg, cf::NDI_BLUE); |
366 | |
366 | |
367 | my $res = query $ns, cf::CS_QUERY_SINGLECHAR, |
367 | my $res = query $ns, cf::CS_QUERY_SINGLECHAR, |
368 | "Now choose a character.\nPress any key to change outlook.\nPress `d' when you're pleased.\n"; |
368 | "Now choose a character.\nPress any key to change outlook.\nPress `d' when you're pleased.\n"; |
369 | |
369 | |
370 | last if $res =~ /[dD]/; |
370 | last if $res =~ /[dD]/; |