So I’m creating a game using RPG maker XP, which uses RGSS. But I am using a text editor to make sure the a method works before pasting it into the game.
I have created a method that loops through an array and when it finds what it’s looking for, it returns the index it is in. This needs to be an integer and it is returning as an integer in the text editor.
But when I use it in the game I get an error saying cannot convert range to integer. It should be noted that in the game the method is inside an object whereas it is not in the text editor. Any ideas?