Chittering Clawbug You get NOTHING Posted October 2, 2004 Share Posted October 2, 2004 beginstate 17; reset_dialog(); add_dialog_str(0,"There is a shimmering portal here. You hear a voice boom all around you You have passed. Do you enter?",0); add_dialog_choice(0,"No"); add_dialog_choice(1,"Yes"); choice = run_dialog(0); if (get_flag (299,27) == 1) && (get_flag (299,28) == 1) && (get_flag (299,29) == 1) { teleport_party(25,8,0); } if (choice == 2) { teleport_party(25,42,0); } if (choice == 1) message_dialog("You decide to play it safe.",""); break; I cannot find a single thing wrong with it. I've looked it over several times, and am beginning to get annoyed. Unfortunitaly this portal is at an important part of the scenario. Can anyone spot anything wrong? It says that I have an improper command, but I see no syntax errors. Link to comment Share on other sites More sharing options...
Curious Artila Gorvin Posted October 2, 2004 Share Posted October 2, 2004 Quote: Originally written by Squirrel: if (get_flag (299,27) == 1) && (get_flag (299,28) == 1) && (get_flag (299,29) == 1) Your parentheses here arn't quite right, use this: if ( (get_flag (299,27) == 1) && (get_flag (299,28) == 1) && (get_flag (299,29) == 1) ) Link to comment Share on other sites More sharing options...
Chittering Clawbug You get NOTHING Posted October 2, 2004 Author Share Posted October 2, 2004 OK. Thanks, that seems to have solved my problem. stupid parenthesis... Link to comment Share on other sites More sharing options...
Recommended Posts