OK, I changed it so that there is only one target sprites with the instance variable "tar". I call it "target" There are three representations of it, and the instance variable is set to 1, 2 and three for them respectively. The sprite that moves with the Pathfinding Behavior has the variable "var" set to 3. I call it "walker'.
Then I have these two Events:
---
1:
System Every 0.3 seconds walker find target to (target.x, target.y)
walker var=target.tar
2:
walker On Pathfinding path found walker Move along path
---
Then nothing happens, so it somehow does not work.
If, however, I disable or delete the second condition at the first event (walker var=target.tar) so that the instance variables are not used, then it works and "walker" goes for the first one of the targets (because it was created first).