So, I am wondering if there are any substantive or significant differences in these two different ways of making an array.
#1 Event Command > Page 1 Control Variable > Script
#2 Event Command > Page 3 Advanced > Script
I am experimenting with using arrays to track skills, skill levels, and skill exp to next level. And I am thinking of either doing an array for each skill with data for each actor who could be in the party OR an array for each actor who could be in the party with data for all of that actor's skills.
with either option, the arrays could be fairly large.
For instance, an array for a skill might look like this:
Locks & Traps Array (for all actors)
Reid, 0, 0, Priscilla, 0, 0, Gale, 0, 0, etc.
OR
Actor Skills Array (for one actor)
Locks & Traps, 0, 0, Alchemy, 0, 0, Crafting, 0, 0, Persuasion, 0, 0, etc.
The first 0 is the current skill level and the second 0 is to track the EXP from use. Once the EXP gets to a certain number, the level of the skill increases and the EXP returns to 0.
I have already tested an array like the skill for all actors and it works great.
With larger arrays, I am wondering if there is any difference or benefit to creating the array with option #1 or #2 above.
I don't know very much about Java Script and this doesn't seem to be anything I can determine just by testing each option to create the arrays.
Any thoughts are greatly appreciated.
Thanks!
#1 Event Command > Page 1 Control Variable > Script
#2 Event Command > Page 3 Advanced > Script
I am experimenting with using arrays to track skills, skill levels, and skill exp to next level. And I am thinking of either doing an array for each skill with data for each actor who could be in the party OR an array for each actor who could be in the party with data for all of that actor's skills.
with either option, the arrays could be fairly large.
For instance, an array for a skill might look like this:
Locks & Traps Array (for all actors)
Reid, 0, 0, Priscilla, 0, 0, Gale, 0, 0, etc.
OR
Actor Skills Array (for one actor)
Locks & Traps, 0, 0, Alchemy, 0, 0, Crafting, 0, 0, Persuasion, 0, 0, etc.
The first 0 is the current skill level and the second 0 is to track the EXP from use. Once the EXP gets to a certain number, the level of the skill increases and the EXP returns to 0.
I have already tested an array like the skill for all actors and it works great.
With larger arrays, I am wondering if there is any difference or benefit to creating the array with option #1 or #2 above.
I don't know very much about Java Script and this doesn't seem to be anything I can determine just by testing each option to create the arrays.
Any thoughts are greatly appreciated.
Thanks!