Someone want to help me with this?
Author | Topic: Someone want to help me with this? |
---|---|
Warrior
Member # 4987
|
written Friday, October 1 2004 21:42
Profile
Homepage
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. Posts: 60 | Registered: Sunday, September 19 2004 07:00 |
Apprentice
Member # 4258
|
written Friday, October 1 2004 21:47
Profile
quote: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) ) Posts: 28 | Registered: Wednesday, April 14 2004 07:00 |
Warrior
Member # 4987
|
written Friday, October 1 2004 22:03
Profile
Homepage
OK. Thanks, that seems to have solved my problem. stupid parenthesis... Posts: 60 | Registered: Sunday, September 19 2004 07:00 |