Code B1
Add a Family. Add 'object' to the family.
Add an instance variable 'id' to the family.
Add an instance variable 'hp' to the family
Add an instance variable 'my_money' to the family
Get some code in place that gives numbers to 'id'.
Add an event.
Object > Is on Screen
Family > is on screen
Object > Compare instance variable > Id = 100012
Family > Compare instance variable > Id = 100711
System > Compare two values ... First value = object.hp = Equal to .. Second value = Family.my_money
Add an action to that event > Family > choose Set X .... X = self.x + 17