I have two breeds, prts and bizs, with 2 prts visiting 10 bizs. Two local variables, p_str and b_str, randomly assigned value of 0 or 1. Code so far is:
to go
if (host > maxwho) [stop]
ask prts [move-to one-of [neighbors] of one-of bizs
if p_str = 1 and b_str = 1 [set pcolor red]
if p_str = 1 and b_str = 0 [set pcolor red]
if p_str = 0 and p_str = 1 [set pcolor blue]
if p_str = 0 and p_str = 0 [set pcolor yellow]
]
set host (host + 1)
display
end
Problem is pcolor on which prt is located changes color. I want to change the color of patch on which the visited biz resides adjacent to the visiting prt on neighboring patch. Solution?
Thanks, RB
--
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/8f185cc6-3712-4f64-adb4-8cc6e2e2431bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/CACv-4rB6XszBd8AVO7TfQyObqOUcxNjcJbSWfnzmk7-xokpnsA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/1d93cdc3-18e8-4836-b5b2-50aea3384afcn%40googlegroups.com.