-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
At present, if an action or occurrence has too many instructions associated with it, the ScottKit compiler will automatically break it into a sequence of actions, all but the last finishing with an inserted continue.
We also need to do something analogous when we have an action or occurrence with too many conditions. If we use something like
action TO RAIL when carried rope and flag 3 and at balcony
clear_flag 3
destroy rope
drop ropetied
print "OK."
look
saying:
scottkit/lib/scottkit/compile.rb:463:in `block in generate_code': condition has 6 conditions (RuntimeError)
But you can work around that by inserting continue occur 0% between the second and third actions.
The compiler should do this for you.
Metadata
Metadata
Assignees
Labels
No labels