Looping to?

In the main engine (at the moment primarily RPG Maker VX Ace), I seem to keep getting Failed To Load Actor Data. So I took some time to learn some Ruby myself, and experimenting with a retro graphics style (those familiar with Dos will likely know what I mean.) I'm wanting eventually find some way to implement it in the main engine.

But for now, how do I loop to a specific location if the wrong choice from user-input process uses an incorrect typed in choice that isn't specifically programmed?

In the specifc way I'm using it, you have two choices: the right choice and the wrong choice. The wrong choice leading to a dos style game over. What I want is if the wrong choice is made, whether it is the right wrong or the wrong wrong it goes to the game over and loops back to the name input process.

I circumvented the other issue somewhat by seperating the game into chapters, though that's a temporary solution. I'm wanting to figure out how to call other programs to run if you type in the right choice.

Thanks for reading.

Edit: Oh, and I still have trouble with global variables, but previously declared one like HP = 75 is fine. It's the @ function that is tripping me up.
Maybe it's just me, but i don't really understand what you are trying to achieve.


For user choices you don't need scripts and can use labels to "jump". Also there's a "Game Over" command on the last event command page.
If I understand correctly what you want is if the player gets a game over their save file is lost or just brings them back to a certain part of the game, If that is what you are trying to do there is a script out there I think it's called story driven game over (forgot who made it) If I remember correctly it should allow you to set certain events to occur after a game over, in your case just transfer the player back to the name input screen. If what you are trying to do is have the game over occur in an event not if the character dies just set  your game over picture to appear have the game over music play and transport the player back to the map with the name input event
I'd make it a cutscene, not a script if I understand this right, add in a loop and then inside the loop add the choices. If the right choice...whatever needs to happen plus an END LOOP (if you forget that it'll still loop) if they pick wrong...use the game over button and don't place an end loop. And as for a bios game over...just add in an animated image, if possible, or create a video...about the 20 second length of a typical gameover screen that just sits there mocking you as you cry, scream, get angry and punch your best friend and then, with that video...use an online converter to make it a/an .ogv file (A lot of people either use online converters or even somehow VLC media player) and then import it in under movies...(f10 the last or second to last on the bottom)

After that (Sorry don't wanna make this an uber long post) go to your resources in VX ACE (f10 I believe it is) go to import video and then last step...hit escape or hit the red X whatever floats your Doctor DOS (Haha you might be the only person to get that reference) then hit f9 for database go to I think it's system or one of the few tabs before the end and find the gameover thing...change it to what you made and boom.

Your custom gameover screen completed.

Wow...a lot of typing.
 
Thanks guys, this is really helpful!^^

I solved the other problem about loading other ruby codes within ruby codes using load command.
Glad to hear I was able to help. Good luck with your project.

Original thread: https://forums.rpgmakerweb.com/threads/looping-to.41158/