Here are a list of commands that patches can run, within an ask-patches statement. These commands all have notes explaining this in their descriptions.
acos
alive?-of
and
asin
ask-breed-with
ask-list-of-turtles
ask-patch-at
ask-turtle
atan
average-of-breed
average-of-breed-with
average-of-list
average-of-patches
average-of-patches-with
average-of-turtles
average-of-turtles-with
bitand
bitnot
bitor
bitxor
bl (butlast)
black
blue
breed-at
breed-of
breed-towards
brown
butfirst (bf)
butlast (bl)
clear-plot (clearplot)
clearplot (clear-plot)
color
color-at
color-of
color-towards
copy-list
cos
count-breed
count-breed-at
count-breed-towards
count-breed-with
count-color
count-patches
count-patches-with
count-pc
count-pc-range
count-plot-pens
count-turtles
count-turtles-at
count-turtles-here
count-turtles-towards
count-turtles-with
cyan
distance-nowrap
div
dolist
dotimes
empty?
every
exp
fput
get-scheduler-random-seed
gray (grey)
green
grey (gray)
heading-of
heading-towards
ifelse
ignore
insert
int
item
last
length
let
lime
list
list-of-breed
list-of-breed-at
list-of-breed-towards
list-of-breed-with
list-of-turtles
list-of-turtles-at
list-of-turtles-towards
list-of-turtles-with
list?
ln
log
loop
lput
make-list
max (maximum)
max-of-breed
max-of-breed-with
max-of-list
max-of-patches
max-of-patches-with
max-of-turtles
max-of-turtles-with
maximum (max)
maxnum
median-of-breed
median-of-breed-with
median-of-list
median-of-patches
median-of-patches-with
median-of-turtles
median-of-turtles-with
member?
min (minimum)
min-of-breed
min-of-breed-with
min-of-list
min-of-patches
min-of-patches-with
min-of-turtles
min-of-turtles-with
minimum (min)
minnum
mod
mode-of-breed
mode-of-breed-with
mode-of-list
mode-of-patches
mode-of-patches-with
mode-of-turtles
mode-of-turtles-with
mouse-down?
mouse-xcor
mouse-ycor
not
number?
one-of-breed-at
one-of-breed-at-with
one-of-breed-here-with
one-of-breed-towards
one-of-breed-towards-with
one-of-breed-with
one-of-turtles
one-of-turtles-at
one-of-turtles-at-with
one-of-turtles-towards
one-of-turtles-towards-with
one-of-turtles-with
or
orange
output
partners
patchcolor (pc)
pc (patchcolor)
pc-at
pc-towards
pendown?-at
pendown?-of
pendown?-towards
pi
pick
pink
plot
plot-grid-off
plot-grid-on
plot-grid?
plot-title
plot-xlabel
plot-xmax
plot-xmin
plot-ylabel
plot-ymax
plot-ymin
plotid
plotxy
position
pp
ppc
ppd
ppreset
ppu
ppxcor
ppycor
print
print-status
pstamp
pstamp-at
pstamp-towards
purple
random-gaussian
red
remove
remove-element
repeat
reset-timer (resett)
resett (reset-timer)
reverse
round
screen-half-height
screen-half-width
screen-height
screen-width
sdev-of-breed
sdev-of-breed-with
sdev-of-list
sdev-of-patches
sdev-of-patches-with
sdev-of-turtles
sdev-of-turtles-with
se (sentence)
sentence (se)
set
setbg
setbreed-at
setbreed-of
setbreed-towards
setc-at
setc-of
setc-towards
seth-at
seth-of
seth-towards
setitem
setpatchcolor (setpc)
setpc (setpatchcolor)
setpendown?-at
setpendown?-of
setpendown?-towards
setplot-bar-width
setplot-title
setplot-xlabel
setplot-xmax
setplot-xmin
setplot-xrange
setplot-ylabel
setplot-ymax
setplot-ymin
setplot-yrange
setppc
setshape-at
setshape-of
setshape-towards
setshown?-at
setshown?-of
setshown?-towards
setslidervar
setvariable
setvariable-at
setvariable-of
setvariable-towards
setx-at (setxcor-at)
setx-of (setxcor-of)
setx-towards (setxcor-towards)
setxcor-at (setx-at)
setxcor-of (setx-of)
setxcor-towards (setx-towards)
setxy-at
setxy-of
setxy-towards
sety-at (setycor-at)
sety-of (setycor-of)
sety-towards (setycor-towards)
setycor-at (sety-at)
setycor-of (sety-of)
setycor-towards (sety-towards)
shape-at
shape-of
shape-towards
show
shown?-at
shown?-of
shown?-towards
sin
sky
sort-num-list
sprout
sqrt
stop
stopall
sublist
sum-of-breed
sum-of-breed-with
sum-of-list
sum-of-patches
sum-of-patches-with
sum-of-turtles
sum-of-turtles-with
timer
to-delimited-string
to-list
to-string
towards
towards-nowrap
turquoise
type
variable-at
variable-of
variable-towards
variance-of-breed
variance-of-breed-with
variance-of-list
variance-of-patches
variance-of-patches-with
variance-of-turtles
variance-of-turtles-with
view-plot
wait-until
white
who-max-of-breed
who-max-of-breed-with
who-max-of-turtles
who-max-of-turtles-with
who-min-of-breed
who-min-of-breed-with
who-min-of-turtles
who-min-of-turtles-with
word?
xcor-at
xcor-of
xcor-towards
xor
ycor-at
ycor-of
ycor-towards
yellow