I'm trying to do the following in netlogo: I have four agents in netlogo with a random heading and a variable (random 1-99). The agents search the closest agent with "let nearest-turtle min-one-of other turtles [ distance myself ]"
The agent with the highest variable (for example 90 versus 10) will calculate the difference between the variables (for example 90-10 =80). This difference is used as a probability with the statement "random 100 < 80". When the random number is lower than the difference, the agent with the highest value will force his heading on the turtle with the lower value. My problem is that when the agent with the highest value loses the die, he has to copy the heading of the agent with the lower value. I don't know how to do this: "myself" does not work. I'm stuck.