switch(blah)
{
case 1: case 2: case 3: case 4: case 5:
send_to_char("You died.\n\r", ch);
break;
}
----- Original Message -----
From: "Cyhawk" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 05, 2004 4:47 PM
Subject: Question on Switches
> Hey all.
> Ok my question involves Switch statements.
> Lately, ive been writing switch statements because A) people tell me its
> better, and B) it makes more sense sometimes.
>
> Firstly, why are switches better?
>
> Second.. Im re-writing my damage messages (actually a whole new fight
> system, basicly the fight messages instead of Your slash DECIMATES bob!
> you get "Your sword deeply cuts bob" and so on depending on how much
damage
> you do.)
> Basicly, if say i want case 1 - 10 to do one message, without typing them
> all out in each case?
>
> Any help is appreciated =)
>
> -Thri
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>