function ask_question() {
writeLine("Do you like eggs?");
addOption("Yes", ask_question_yes);
addOption("No", ask_question_no);
}
function ask_question_yes() {}
function ask_question_no() {}
Biles Wrote:Given the size of the flash, shouldn't it have a loader animation at this point in time?
Anonymouse Wrote:I've used various methods, but I tend to go with functions that output text rather than just a list of strings.
So for example I'll have:
- Code: Select All Code
function ask_question() {
writeLine("Do you like eggs?");
addOption("Yes", ask_question_yes);
addOption("No", ask_question_no);
}
function ask_question_yes() {}
function ask_question_no() {}
Anonymouse Wrote:It has its downsides, but the advantage is that when implementing something I'm not limited by what features/parser tags are coded in, I can do anything in a function that I want.
I guess the main feature I require for this sort of thing is If/Else statements. If you don't have those, you are quite limited in what you can do.
Users browsing this forum: No registered users