I am sure it would be MUCH better to create a Ruby script that would do all I need, but I am lost trying to do it, so I try and get it done any other way that I can. The best thing would to have an array of words and have it get a word from the array and go from there, but again, I don't know how to do that.
You can have a max of 5000 variables to enter words. But that would be disasterous.
Let me think of it a little...
Okay let's say you gotta get a word out of an array okay?
Let's say that array got only 3 words for our example, and to simplify things, the pointer starts from 1 and not from 0.
So we got for example: Words[1], Words[2], Words[3]
So you need a Common Event to be accessed by everywhere.
You shall reserve
$game_variables[1]
and
$game_variables[2]
for this example, but you can change that, by selecting variables with id of your choice.
For the example though:
$game_variables[1] will work as a pointer of an array.
$game_variables[2] will work as the contents of the array.
You simulate an array that way, but you got data hardcoded instead:
if $game_variables[1] == 1
$game_variables[2] = "Word1"
else
# don't add anything here
end
if $game_variables[1] == 2
$game_variables[2] = "Word2"
else
# don't add anything here
end
if $game_variables[1] == 3
$game_variables[2] = "Word3"
else
# don't add anything here
end
And you are done.
Now you can set up $game_variables[1] using Control Variables.
Then you set the value of $game_variables[2] by calling the script in the common event.
Just a clumsy thought I had.
Check this out, it might help you further:
https://forums.rpgmakerweb.com/index.php?threads/script-call-collection-for-vxace.25759/
Edit:
@TheoAllen, me neither, but I made a guess.
Edit:
Question is, can we set an array as $game_variables[1]?
We can do that in JS but I am not sure for Ruby.
Second question. Can we set up a global scope array ourselves?
We probably CAN do that, but I am not sure of the commands we shall use, since I don't know Ruby.