There's no for loop in any of that... in fact there's no loop at all...
-----Original Message-----
From: Marquoz [mailto:[EMAIL PROTECTED]
Sent: Wed 5/5/2004 7:40 PM
To: [email protected]
Cc:
Subject: Question on switch and case
Hello,
I am doing a switch statement where a player will receive a quest
dependant on their level. That part is easy. What I am trying to do
though is if they have already completed the quest to choose another
one.
So far the only idea I have come up with is to do a for statement
before I
go to the switch statement.
This is a quick example of what I am trying to do.
switch(number_range(0,1))
{
case 0:
if (this_quest_completed)
need_to_choose_another;
break;
else
please_go_kill_mob_a;
break;
case 1:
if (this_quest_completed)
need_to_choose_another;
break;
else
please_go_give_item_to_mob_b;
break;
}
Does anybody have any ideas other then the loop?
David H. Roundhill
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom