I'm trying to tell in another way:
Foreach Insect :
- If Insect.hungry = 1
- - Pick Up the Nearest Insect (who is not the same, and fit to its taste)
So far : it's good, I got Insect (the victim) and Insect(0) (the predator)
PROBLEM:
How do I update the predator ?
If I make some changes to Insect, that will use the victim.
If I pick up the predator by UID, it doesn't work, probably because i'm in the Loop "foreach Insect" ..
There's a basic thing I don't get, if someone can tell me any method to do what I'm trying to do, it will be greatly appreciated.
BONUS SUGGESTION : that would be awesome to get some aliases, like in mysql, like :
- Pick up Insect.hungry = 1 as Predator
- - Pick up nearest Insecte (not me, etc) as Victim
Predator.target_uid = Victim.uid
What do you think ?
Cheers
Charles