Quote from: Bobsy on Sun 11/07/2010 13:49:01AGS could so do with a "switch...case" statement.
I engaged my brainlobes and came up with this rather simpler system:
{
int cardran=Random(9);
cNarr.Say("My card. It read:");
cNarr.Say("'Sir Alfred D. Venture.'");
if (cardran==0) cNarr.Say("'The D is for DANGER!'");
else if (cardran==1) cNarr.Say("'The D is for DEBONAIR!'");
else if (cardran==2) cNarr.Say("'The D is for DASHING!'");
else if (cardran==3) cNarr.Say("'The D is for DECISIVE!'");
else if (cardran==4) cNarr.Say("'The D is for DYNAMIC!'");
else if (cardran==5) cNarr.Say("'The D is for DAPPER!'");
else if (cardran==6) cNarr.Say("'The D is for DANDY!'");
else if (cardran==7) cNarr.Say("'The D is for DEVILISHLY HANDSOME!'");
else if (cardran==8) cNarr.Say("'The D is for DAMN FINE FELLOW!'");
else
{
cNarr.Say("'The D is for DONALD!'");
player.Say("Wait, it's not supposed to say that.");
}
}