I have a scene where the characters are ordering food at a café, how do you make it where it can remember the choice you made?
How to remember choices
Visual Novel Maker SupportWhat do you want to do after the choice?
You could use a Switch or a Variable to remember the choice.
Or maybe something else depending on what you want to use the stored choice for.
You could use a Switch or a Variable to remember the choice.
Or maybe something else depending on what you want to use the stored choice for.
@Spacebunnymoon In case you're a beginner, like I once was, and don't know how switches and variables work, it works like this. You create a switch, such as "ran into the tree". Then you create an event at the tree. Then when you run into the tree, you tell the game "switch 'ran into the tree' is ON" when your character touches the event. Then when the switch has been triggered, you have something different happen, or nothing at all, which you can do by leaving the space on what's supposed to happen with the event blank. Anyway, thought I'd explain this, as it was hard for me to understand how that stuff worked for a while. Variables work about the same way.
control variables or control switches would be your best choice.
I'm sorry but I still don't understand
I know the feeling; took me a while to understand how it worked too; it's very simple but if you don't know how it works, it's easy to get confused. Look, to learn how to do it, just do one of the default tutorials that comes with RPG Maker MV. It tells you how to do it and how it works. Either go to a game you already started making, or make a new game. At the top of the screen in the editor when you're editing a game, there's a "Help" option. Then go to "Tutorials". Tutorials 5 and 6 deal with this very thing. They'll walk you through it. Don't worry about it; it's easy. Ok? 🙂
If you still don't know how to do it yourself after watching the tutorials, it's always fine to go back and watch them again until you can memorize what you're supposed to do. I think I may have had to watch them about two or three times before I "got" it.
I can’t show screenshots, but let me try to give an example.
Using Show Choices you can let the player pick things to order. For example: Fish, Hamburger, Fries, Cake, Pie, Nothing.
The Show Choices creates When statements in the event.
In each When statement, you set a Variable to match the choice that is selected. For example: When Fish, Variable First Choice = “Fish”. Putting something in quotes saves the content as a string in the Variable.
Or, instead of a matching word in the Variable, you could just a number that you correlate to the food choice. Instead of “Fish” the value is 1.
When you want to recall the food choices later, you can use the value of the Variables to do that.
Does that makes sense?
I also agree that watching and recreating basic tutorials also helps.
Good luck!
Using Show Choices you can let the player pick things to order. For example: Fish, Hamburger, Fries, Cake, Pie, Nothing.
The Show Choices creates When statements in the event.
In each When statement, you set a Variable to match the choice that is selected. For example: When Fish, Variable First Choice = “Fish”. Putting something in quotes saves the content as a string in the Variable.
Or, instead of a matching word in the Variable, you could just a number that you correlate to the food choice. Instead of “Fish” the value is 1.
When you want to recall the food choices later, you can use the value of the Variables to do that.
Does that makes sense?
I also agree that watching and recreating basic tutorials also helps.
Good luck!
Folks who are replying, be sure to double check that the advice is applicable to the original post. This topic is about VN Maker and not RM.
I would imagine VNM uses switches and variables just like RM, but since I have no experience using the software, I cannot really suggest the right course of action.
I would imagine VNM uses switches and variables just like RM, but since I have no experience using the software, I cannot really suggest the right course of action.
I've only tried Visual Novel Maker a little, so this is clunky and bad (the basic command's options seem somehow limited?), but:
Show message: Your order?
Add choice: Coffee / On select: bind to / Switch: coffee
Add choice: Tea / On select: bind to / Switch: tea
Show choices
Check switch: Coffee / On / Jump to: Coffee
Check switch: Tea / On / Jump to: Tea
Label: Coffee
Show message: You ordered coffee.
Jump to label: End
Label: Tea
Show message: You ordered tea.
Label: End
Better way to do it (particularly with multiple items) would be to for example control a variable based on what you order (if you picked choice "coffee", then variable X == "coffee") and then show text: "You ordered [variable X]", but I don't know how to do that LOL.
Show message: Your order?
Add choice: Coffee / On select: bind to / Switch: coffee
Add choice: Tea / On select: bind to / Switch: tea
Show choices
Check switch: Coffee / On / Jump to: Coffee
Check switch: Tea / On / Jump to: Tea
Label: Coffee
Show message: You ordered coffee.
Jump to label: End
Label: Tea
Show message: You ordered tea.
Label: End
Better way to do it (particularly with multiple items) would be to for example control a variable based on what you order (if you picked choice "coffee", then variable X == "coffee") and then show text: "You ordered [variable X]", but I don't know how to do that LOL.
That was my bad. I didn’t even notice where this was posted when I tried to help. I was just thinking that the OP was doing something like a visual novel in RM. That is what happens when you multitask at work.
Sorry for any confusion!
Oh God....now I feel really bad for wasting this poor person's time with useless advice.🙁
(I'm sorry)
You didn't waste too much of my time-only, like a few seconds of it. You don't need to feel bad. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/how-to-remember-choices.157576/