netlogo-tutor-01.txt, cr 25 oct 2007 by rha on hypatia Hints for building your first model in NetLogo 4.0 1. Open NetLogo 4.0 2. File --> Save As ... ; My Model #1, Desktop (or whatever) 3. Create one button 3a. check that the widget chooser is labeled "abc Button" 3b. click once on the Add button (green plus sign, +) (then it turns blue) 3c. click once on the interface (eg, upper left corner) where you want the button to be 3d. in the "Commands" window, type "setup" 3e. click ok now you have one button labeled "setup" in red it is red because it calls a procedure, "setup", which does not yet exist the next step will fix that 4. Create the procedure "setup" 4a. click the "Procedures" tab at the top of the NetLogo window 4b. type at the top of the Procedures page: to setup ;;; this will clear and setup a fresh interface ca ;;; clear all command for a clean start ;;; other stuff goes here end note: use the "tab" key on your keyboard to make the indentation at the beginning of the "ca" line 4c. click the "Interface" tab at the top of the NetLogo window now the label "setup" on your one button is black, meaning: no errors next, experiment with commands to sprout or create turtles and move them around to nice locations add these commands to your setup procedure and test them out by clicking the "setup" button end