Moved to: RGSS3 Script Requests
For 2 Players? Who knows...
The rest is easy but that Construction part sounds like it might be a pain depending on your plans for it. I mean, the Mini Game Title scene is easy, the problem is knowing what should it call next because we don't know what you'd need to do then.
Thanks for replying.
Sorry maybe the image was bad.
Actually, we are creating a 1-player game.
I would like to make a title screen with the 1 player part replaced by "start" and the 2 player part replaced by "back" in a format similar to the image.
I refuse to work on this because there are details that can alter how the scene is supposed to work. What should happen if the player prefers to go back? What should it call if they hit the start button?
Press the start button to start the mini-game. If you want to go back, press the back button to exit the mini-game.
Coding is not magic, you can't tell it go to a supermarket because it doesn't know what a supermarket actually is. We need specific names of classes that hold all that logic. The only part that might have been confirmed here was going back to the map, a well known class. If that's not what should happen by pressing the cancel button, you need to tell me what other scene or menu should be called at that moment.
The mini-game event I want to create looks like this.
When a player examines a mini-game event, the first thing that happens is a split on whether or not to play the mini-game.
If "Yes" is selected, the mini-game title screen is displayed, and if "No" is selected, the branching ends.
The mini-game title screen will appear, where you will find "Start" and "Exit" buttons.
Press "Start" to start the game and "Exit" to return to the map
Examples appear in yume nikki.
It is like a mini-game event at NASU.
The most you can get with such descriptions that stay away from addressing the coding issues I have exposed here is a mockup of your mini game menu that shows images and some texts but does NOTHING. Well, it can still go back to the map and that's all.
If you don't tell us all what script or map comes AFTER choosing the start command, you'll go nowhere.
Selecting "start" will display a map for mini-games.
The format of the mini-game itself is a small action game in which the player moves left and right to avoid objects falling from above.
The menu on the title screen should be like a typical NES game, where you can actually select the menu displayed on the screen.
I don't plan on using scripts at this point, but is there anything you think I could use?
I don't know why kyonides is being so dense about this. He's a helpful dude - I've seen him write tons of scripts for folks but the personable skills are a bit lacking sometimes.
Anyways, I'm not familiar with VX Ace, but I believe the event calls are similar to MV in most cases, so you can create this through eventing. It'll take a lot of work and play testing to test to make sure you've set up the logic correctly, but at it's most fundamental:
When the player is asked if they want to play the mini game and they say yes:
Show Image 1 (this is your title screen)
Show image 2 (this is your cursor)
Set variable "cursor selection" to 0
Loop
(conditional branch) if input UP is pressed
->Move picture 2 (next to your "START" title screen command)
->Set Cursor Selection to 0
(second conditional branch) if input DOWN is pressed
->Move picture 2 (next to your "BACK" or "EXIT" command)
->Set Cursor Selection to 1
(3rd conditional) if input OK is pressed
->(nested conditional) if Cursor Selection = 0
->->Start mini game
->(nested conditional) if Cursor Selection = 1
->->Remove all images, end event processing.
A few notes on this:
1) I would actually move this logic into a separate event. So instead of processing this logic in the same event with the conditional branch asking the player if they want to play, I would instead use a switch that is turned on when they say "yes" that will enable another event that is an auto run event (probably best as a common event)
2) The default "is button pressed" event command is whether or not the button is held down. This can cause some unwanted behaviors, so I would add a wait time (you should add a wait time no matter what for auto-run and parallel event, but in this case I would make it longer than your standard parallel event; maybe 15 or 20 wait frames. There is also a script call for when the button is "tapped" that a) I don't recall what the script is exactly, and b) that would be for MV anyways and may not be the same for VX Ace)
3) 2 "show pictures" is the minimum for this to work. But you can add some flare to your title menu by using more show pictures with more move picture commands. Such as making the commands "start" and "exit" animate when you select those options.
I hope that helps!
Edit: you'll need to put the 3 conditionals into a loop just after setting the variable.
To the OP, please DON'T contact me.
I'm not dense, just a scripter. I don't care about events. I pretty much ignore them by default. So my approach will always be scripts first. The problem is that the OP can't fathom the difference between how you event it and how you craft the code to accomplish a similar goal.
OP is not planning to use scripts as the first option. OK. If the OP wants to do it by using pictures, I'm fine with it. I really am. Yet, a script needs to get several details to make it work. One of them is where it's supposed to go after leaving the custom menu described here. Without the actual name of the class that will initialize the game, the mini game WON'T RUN.
As I told the OP before, now we know for certain that the cancel button must take the player back to the map. That was a first step forward but we still need the last one: the destination.
A script doesn't know what "Mini Game" is supposed to mean. There should be a class with a custom name that can be called by the script. Classes represent the bare bones of virtual objects, in this particular case a Mini Game. Without that, you'd just get a nice bunch of pictures and a blinking command window. Period. At least I'd need to know if the next step is to go to a different map or opening some other scene script or anything the like.
EDIT
In a recent post the OP mentions something about a map of mini games.
Is it an actual map with events representing mini games?
Or is it just a list of available mini game names that are supposed to trigger a script call to some map or script? I dunno and I don't care.
Again, if the OP prefers to use events instead, that's fine, too.
And even if somebody complains about my "attitude" here, keep in mind that I'd been doing this for free. Honestly, I WON'T do it. I got fed up and got other projects in mind.
TheAM-Dol, thank you for your response.
I think the way my question was written, my lack of understanding of coding, and the fact that I am using a translation site may have caused the discrepancy. I am new to vxace myself and new to posting here, so I think this is the result of that.
Back to the topic at hand, I am currently using vxace for production, but I was planning to switch to MV in the future, so I checked the specs and found that the event elements are almost the same as mentioned in TheAM-Dol's reply earlier, so I will try that method.
Thank you kyonides for your mental and physical support over the past few weeks, I really appreciate it.
I apologize for upsetting you again.
Thank you both again.