I would like to encode the following:
The world is closed (box) and has 5 colors: green, pink, cyan, blue and gray (represents vegetation types)
The turtle asks what color the patch is in if it is green or pink, it can walk on the green or pink patches. If it is blue or cyan, the turtle can walk on blue or cyan patches
If the color patch is gray fd 1
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/cdbdff5c-addf-44f2-b81b-85917b8d7710n%40googlegroups.com.
Hi Lorena,
The color names are NetLogo variables, so they should not be in quotes.
[ move-to one-of patches with [ pcolor = green or pcolor = pink ]
If you type show pink in the command center it will output 135, the number corresponding to pink.
You could initialize your colors as set pcolors [green pink blue cyan gray ] if you wanted.
Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
From: <netlog...@googlegroups.com> on behalf of Rafaela Lorena <rafael...@gmail.com>
Date: Friday, May 21, 2021 at 9:59 AM
To: netlogo-users <netlog...@googlegroups.com>
Subject: [netlogo-users] Error: MOVE-TO expected input to be an agent but got NOBODY instead. NetLogo
Hello everyone,
Sorry to be pestering you. I am starting at NetLogo. And sometimes errors appear that I don't understand if someone can help with suggestions or models that already exist that do what I'm trying to code. I am very grateful.
I would like to encode the following:
1. The world is closed (box) and has 5 colors: green, pink, cyan, blue and gray (represents vegetation types)
2. The turtle asks what color the patch is in if it is green or pink, it can walk on the green or pink patches. If it is blue or cyan, the turtle can walk on blue or cyan patches
3. If the color patch is gray fd 1
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
netlogo-user...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/netlogo-users/CAHs8kB9H%3Dko_QT6Egp7LwP%2ByESB03xwkVDcyK%2BkqCgBrczh2hQ%40mail.gmail.com.