All right, I was unable to find the solution to this problem I’m having in I7. I want all of a kind of thing to do the same thing every turn, except when I’ve tried to it only applies to one instance of that kind of thing at a time. For example, I have:
A buddy is a kind of person. A buddy has has a number called hp. Bob is a buddy. Jody is a buddy. every turn: if a buddy (called B) is in the location of the player and hp of B is greater than 1: decrease HP of B by 10; say "[hp of B]".
If Bob and Jody are both buddies, and both are in the same room as the player, this code only applies to Bob, since he’s the first thing the compiler reads. How can I have it so that both Bob and Jody both execute this code every turn? Many thanks in advance.