I am trying to figure out how to setup a function that has variables within it that may be called from other classes. The best way to describe this is to setup a scenario.
I have a Game_Party class which handles everything as it relates to the members within the heros party. One of the functions (Members(id)) I would like to use to access the array which holds the active_party for a specific member (Members(1) refers to _active_party(1)). Now within this function Members, I would like to be able to have various other variables which pull specific data from the _active_party array. So if I go Members(1).alias then the alias or name of the member being accessed is displayed. How best can I do this? I don’t want to set up a new class or anything like that.