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


Reply via email to