I've been learning Ruby for about two weeks now, but I've run into a couple of problems, which I hope you guys can help me with :smile:
I had a battle system like the one in Paper Mario, where a representative monster runs around and a fight starts when you touch. With this, the battles were very easy to avoid because the event had to run straight into the character (or vice-versa).
To fix this, I made 4 variables finding out the Player's X and Y and the Event's X and Y and then compared them with the distance formula in a common event.
...and everything worked out! With only one monster, anyways. Apparently, variables can't have multiple values, even when they are called by different events. So with that long and pointless background story out of the way, here is my first question: Is there a way to have an array variable that uses the monster name for the array? I would name the monsters with numbers, and hopefully, I can assign each of them a variable with something like this: monster_variable[monster_name.to_i]
And a second question! I have a stamina system set up, but I'm having trouble getting a bar to show up on the map. I've searched RMXP and RPGRevolution for a script with some sort of bar that shows up on the map, but the only thing that I found required SDK or something. Can somebody either tell me where to find a script to do this or tell me how to make one?
I had a battle system like the one in Paper Mario, where a representative monster runs around and a fight starts when you touch. With this, the battles were very easy to avoid because the event had to run straight into the character (or vice-versa).
To fix this, I made 4 variables finding out the Player's X and Y and the Event's X and Y and then compared them with the distance formula in a common event.
...and everything worked out! With only one monster, anyways. Apparently, variables can't have multiple values, even when they are called by different events. So with that long and pointless background story out of the way, here is my first question: Is there a way to have an array variable that uses the monster name for the array? I would name the monsters with numbers, and hopefully, I can assign each of them a variable with something like this: monster_variable[monster_name.to_i]
And a second question! I have a stamina system set up, but I'm having trouble getting a bar to show up on the map. I've searched RMXP and RPGRevolution for a script with some sort of bar that shows up on the map, but the only thing that I found required SDK or something. Can somebody either tell me where to find a script to do this or tell me how to make one?