Ok let me explain what I'm doing... I'm basically making an turn biased Rpg style game. So I have multiple units of the same type(ie multiple copies of the same sprite each with its own numbers) on the field. I'm also going to have a leveling system so the more kills a unit gets the more improved its skills will be.
What I need is a system of events that I can use for the attack of the units, so that i can click on the attacking unit, it grabs the attacking value, then click on the target,grab its defensive values, and the attack will be calculated then attack.
The forumula I use for attacking uses the
power, Accuracy, and weapon Range of the attacking units pv
defense of the target unit's pv
It also uses the Distance between the units.
It also uses a few global variables but those can be added easy...
I hope that clears things up on what I need. I think long story short I need something that can identify each individual sprite on screen then take the pv or other values from them. something like a Unique Id however I think UID's work only with each sprite.
about families:from what I understand Families only work on all sprites in the family, meaning they can only retrive/add values to all the sprites in the families.