I have a set of arrays, which al contain ID's of scenes. Each array has its own set of ID's stored in them.
Now I need to copy the content of 1 array into that of another array.
Before:
After:
I'm not too great with javascript, but but I tried to do the following:
This indeed resulted in: Variable 59 = [5901, 5902, 5903, 6001, 6002, 6003]
However... 6001, 6002, 6003 is 1 entry, instead of 3 individual entries.
So when I try to pick a random ID from the array, i can get "5901" or "5902" or "5903" or "6001, 6002, 6003" but I won't get "6001" or "6002" or "6003"
How do I add the content from array in variable 60 into the array in variable 59 without it all being a single entry?
Now I need to copy the content of 1 array into that of another array.
Before:
Code:
Variable 59 = [5901, 5902, 5903]
Variable 60 = [6001, 6002, 6003]
After:
Code:
Variable 59 = [5901, 5902, 5903, 6001, 6002, 6003]
Variable 60 = [6001, 6002, 6003]
I'm not too great with javascript, but but I tried to do the following:
Code:
$gameVariables.value(59).push($gameVariables.value(60));
This indeed resulted in: Variable 59 = [5901, 5902, 5903, 6001, 6002, 6003]
However... 6001, 6002, 6003 is 1 entry, instead of 3 individual entries.
So when I try to pick a random ID from the array, i can get "5901" or "5902" or "5903" or "6001, 6002, 6003" but I won't get "6001" or "6002" or "6003"
How do I add the content from array in variable 60 into the array in variable 59 without it all being a single entry?