I did take a look at your example problem is that your example only shows one array while im trying to use two different array One for party and one for game data stats. I have no problem using a call back for one array and then using a variable that the easy part. but im trying to retrieve value from an array into another array that part i cannot figure out or least knowing what code to use
another explantion i can give is that let say i have an array like this
Name,Hp,power,speed
Bob,100,50,90
As you can see bob has 100 hp but the value of bob Y is at (1) and the hp is X (1)
So in other word i want to use a function callback that if when bob is in the party then I want to load his stats from a call back such as this instead of saying retrieve value of 1,1 which is bob's health. I want the function callback to find it for me just by using ("Name") and then ("Hp") Most likely in a for each loop so that if when I add more data for new member to use it can still use the callback without needing to add in each single value as a event/action You can imagine how large of an event sheet that would be.
And the above array is just purely stats that will be the same but will only change on the party array.
I know this is semi possible because I have done it in the past of using instance variable with the reference value but id like not to do that because I know when i go to re order the value the variable might be off. And two this would save me on a-lot of recoding which is why I turned to cvs to array just to lessen the burden of seeing a very hard to visualize the making array in the program can get.
If there a way I think your "Index of" might be it but I want to be sure without pulling hairs lol
Because I think or least so far I think the code would have to be something like [insert value in party member 1,2 (which is bob hp slot)to retrieve Stat.at("partyarray.name(which is bob),"hp" (which is hp in the stat)
So that it should read it as stat.at (1,1) but as call back using name as the primary finder I am fine having to recreate this only a couple of time for health,power,speed. That is still a four hundred less to code.
And if the name isnt bob but rather Kitten then the call back should reroute the new array positional to a new Y number without me having to make a whole new event one.
Again if i confuse you please let me know this is best way to explain it. And thank you for your help. This is the last piece of my puzzle of making an rpg.