GlennC Posted January 26, 2005 Posted January 26, 2005 I have a script calling up a dialogue with several choices. When one of those choices is selected I want the script to end and another file to open. I have that step as the last step in the script ie the last lines of the script are: If status(currentmessagechoice)=2 open(filename) endif. But the script finishes itself in the original file, no matter what I do or try. Can someone help me with this?
GlennC Posted January 27, 2005 Author Posted January 27, 2005 Soren, thanks for your reply. The complication is that one of the other choices is to exit the script without opening the new file (I obviously should have mentioned this). If I have interpreted it correctly, your suggestion would open the new file regardless. In any case, I always thought that if you exited a script the script ends at that point without doing any more of the script.
Søren Dyhr Posted January 27, 2005 Posted January 27, 2005 Right you interpreted, but didn't make a tryout apparently ...it's certainly not opening the second file regardless! You can change it slightly to ask if Status(CurrentMessageChoice) different from 2 and then repeat the algorithm inside the outer if'ing... Do you follow the reasoning??? --sd
DykstrL Posted January 27, 2005 Posted January 27, 2005 Another way to ensure you end up in the opened file is to run an external script in the other file that has a "Halt script" as the last action.
Recommended Posts
This topic is 7243 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now