char *subrace_human[] = { "cyborg", "robot", "\n" }; ACMD(switch_race) { int race; if (GET_RADE(ch) != RACE_HUMAN) { send_to_char("You are not a human!\r\n", ch); return; } skip_spaces(&argument); if (!*argument) { send_to_char("Please include a race to change to.\r\n", ch); return; } race = search_block(argument, subrace_human, FALSE); switch (race) { case 0: /* Code for cyborgs */ break; case 1: /* Code for robots */ break; default: send_to_char("That is not a proper choice!\r\n", ch); return; } / \ _ ) (( )) ( (@) /|\ ))_(( /|\ _ |-|`\ / | \ (/\|/\) / | \ (@) | | ------------/--|-voV---\`|'/--Vov-|--\--------------|-| |-| '^` (o o) '^` | | | | James C. Thomas Jr. `\Y/' Founder of Finality |-| |-| rasdan@finality.com | | | | finality.com 4000 |-| |_|_____________________________________________________| | (@) l /\ / ( ( \ /\ l `\|-| l / V \ \ V \ l (@) l/ _) )_ \I `\ /' ` +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST