Hi, I’m trying to set up a simple scripting method for my designers.
I plan on using co-routines to allow for asynchronous scripting, so it would look something like this:
yield doMenu(selection, parameters);
if (selection == 1) doAction1();
else doAction2();
Which is relatively simple. The only issue, is that if you were to lose the “yield” keyword, the script would fail in incredible ways. In order to prevent this, want to be able to abbreviate the “yield” part of the command. However, other than using macros (which it doesn’t seem I can use?), I don’t see how to do it… since any other function call would lose asynchronous status, right?
Anyone have any ideas on how to make that little “yield” go away?