Happy Holidays, everyone!
I have been experimenting and trying everything that I can to figure this out, but I am failing miserably. I have searched for solutions without any luck.
I see in the MZ Script Calls that you can get an array of things like party member names or, like in the title of the thread, a list of all the skills for a specific actor.
I have used arrays and I can make an array and extract data from it and display it.
But I just can't figure out how to show any values that are returned when I use the script like in the thread title.
So, for $gameActors.actor(1).skills(), if I understand this correctly, this is supposed to get an array of the skills that Actor 1 has. It says it Returns $dataSkill[], which I don't know how to access and use.
I am setting that to a Variable to start.
But when I try to associate what gets returned to a different Variable so I can display it and see what is happening, I get things like Object, Object.
Everything that I have tried is too long to list here.
I am sure that I am missing something very simple or missing a step.
For the sake of this question, lets say that I want to get a list of all the skills that a specific party member has. I want to see that list to confirm that it got what I expected. Then I want to use that list to present back to the player.
Real game example:
The player is presented with a choice of which party member will sacrifice a know skill. So the player selects the party member, then the skills that the party member knows is presented to the player. The player selects which skill they will sacrifice. Then that skill will be removed from that party member.
To do this, I think I need to get a list of the known skills for the specific party member, then associate those skills to variables so I can display the variables as choices for the player to select.
I just can't figure out how to use the script to get the array of the information and then get the information from the array to see and use.
I hope I am explaining this in a way that makes sense.
If it isn't too much trouble, could someone give me a very clear, specific example of how to do this?
Again, the only knowledge of Java Script that I have is what I have learned while trying to learn MZ.
Thanks for any help that you can offer!
I have been experimenting and trying everything that I can to figure this out, but I am failing miserably. I have searched for solutions without any luck.
I see in the MZ Script Calls that you can get an array of things like party member names or, like in the title of the thread, a list of all the skills for a specific actor.
I have used arrays and I can make an array and extract data from it and display it.
But I just can't figure out how to show any values that are returned when I use the script like in the thread title.
So, for $gameActors.actor(1).skills(), if I understand this correctly, this is supposed to get an array of the skills that Actor 1 has. It says it Returns $dataSkill[], which I don't know how to access and use.
I am setting that to a Variable to start.
But when I try to associate what gets returned to a different Variable so I can display it and see what is happening, I get things like Object, Object.
Everything that I have tried is too long to list here.
I am sure that I am missing something very simple or missing a step.
For the sake of this question, lets say that I want to get a list of all the skills that a specific party member has. I want to see that list to confirm that it got what I expected. Then I want to use that list to present back to the player.
Real game example:
The player is presented with a choice of which party member will sacrifice a know skill. So the player selects the party member, then the skills that the party member knows is presented to the player. The player selects which skill they will sacrifice. Then that skill will be removed from that party member.
To do this, I think I need to get a list of the known skills for the specific party member, then associate those skills to variables so I can display the variables as choices for the player to select.
I just can't figure out how to use the script to get the array of the information and then get the information from the array to see and use.
I hope I am explaining this in a way that makes sense.
If it isn't too much trouble, could someone give me a very clear, specific example of how to do this?
Again, the only knowledge of Java Script that I have is what I have learned while trying to learn MZ.
Thanks for any help that you can offer!