Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Forum Connectivity Upgrade Read more... ×

Search the Community

Showing results for tags 'incrementing'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • OpenComputers
    • Announcements
    • Feedback
    • IRC
  • Code Central
    • Support
    • Showcase
    • Tutorials
  • Addons & More
    • Addons Mods
    • Architectures
    • OpenEngineering Task Force
  • General
    • Lounge
    • Forum Games
    • Showcase
    • Servers
  • Archives
    • Public Archives

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Minecraft


GitHub


IRC


Location


Interests

Found 1 result

  1. spenoi

    Help with Nanomachine cycling

    I need help with nanomachine "probing". I'm trying to create a very basic program that cycles trough nanomachine slots. I intialize a variable in the beginning then create a for loop and increment the variable with 1 each time it's finishes. However it does not work. I can for example initialize the same variable in the first line, gave it a number and then it will check if that nanomachine slot do anything but as soon as I add the commented out code parts the program does nothing besided priting x. x = 17 local component = require("component") local m = require("component").modem local event = require("event") local term = require("term") --for i=1,10 do component.modem.broadcast(1, "nanomachines", "setInput", x, true) os.sleep(2) component.modem.broadcast(1, "nanomachines", "setInput", x, false) print(x) --x = x+1 --end
×

Important Information

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