Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
yesiwear.pants

for loop pause/resume

Question

As an Example I wrote a platform builder but if I set the dimensions to big I have to babysit the robot to make sure it doesn't run out of material.

 

I would like to stop the build get resources and pickup where I left off.

 

robot.select(slot) is in a separate file as part of a library of Inventory related functions

 

in-case you wanted to see

 

Edit:

I have not Implemented it yet but i was going to try this

 

Edit:

platform

http://pastebin.com/Bd2rdY87

Inventory

http://pastebin.com/euHL9zAz

Break

http://pastebin.com/CcCTWJ5Z

 

I realize the doLoop wont work but I am getting this error    "module 'Inventory' not found              no package.preload['Inventory'] /home/lib/Inventory.lua:33: expected <eof> near return

Edited by yesiwear.pants
Link to post
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.