- Joined
- Mar 6, 2021
- Messages
- 4
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMMV
hi, i want to try to set up a system where i can insert a series of phrases into an array, assign a label to the lists depending on the event i want it associated with, then call that label as a command to insert a random phrase during specific battles between turns, sorta in an undertale like style.
i asked a friend of mine who knows java about how this would be set up, and he gave me this:
let numbers=[0,1,2,3,4,5,6,7,8,9];
print( numbers[int(random(0, numbers.length))];
I want to achieve something like that for mv, but have multiple arrays with different names (like battleslime, battlebat etc) to call on different phrases, preferably by adding <battleslime> as a function in the regular text editor like how text plugins work. somebody else told me to have variables have the phrases and assign them based on that, but I want to be able to quickly open up a text editor or the array and edit the phrases without having to go through a whole variable.
would this be possible to transfer into mv code? i don't know much about java, nor how the specific code is for mv, so any help is appreciated
i asked a friend of mine who knows java about how this would be set up, and he gave me this:
let numbers=[0,1,2,3,4,5,6,7,8,9];
print( numbers[int(random(0, numbers.length))];
I want to achieve something like that for mv, but have multiple arrays with different names (like battleslime, battlebat etc) to call on different phrases, preferably by adding <battleslime> as a function in the regular text editor like how text plugins work. somebody else told me to have variables have the phrases and assign them based on that, but I want to be able to quickly open up a text editor or the array and edit the phrases without having to go through a whole variable.
would this be possible to transfer into mv code? i don't know much about java, nor how the specific code is for mv, so any help is appreciated