[RM2K] FOUR DIGIT CODE FOR CHEST.
Posts
Pages:
1
I have a chest which needs a four digit code to open (on the left). Using the "Input Number event command" and following the Example I went ahead and created it. I seem to be having trouble in the 2nd example it tells me to set a variable. I tried using input number, change variable and password but for the life of me I can't seem to work it out. I need to be able just to type in the four digits as it stands now all I get is a blank screen with four rectangles to punch in the codes. And then the message pops up and you have to enter the code once more. Could someone please let me know what I missing here please thank you in advance.


If it's not showing the digits in the rectangles you might need a font patch.
Edit: However, looking at the event there, your first "Input Number" should be "Set Variable". Set it to the actual number you want the user to input.
Edit: However, looking at the event there, your first "Input Number" should be "Set Variable". Set it to the actual number you want the user to input.
That input number event file doesn't look very clear or helpful, and I can see how you got what you came up with, but clearly, you don't have what you need by a long shot.
For one, you seem to misunderstand how variables work. When you create a variable and type a number into the window, you're not storing the number; you're just naming the variable.
You create a variable that can call numbers. It should look something like this:

Next, you need a window where the player can input the necessary numbers and a way for those input numbers to call the fork conditions. To do this, you make a fork condition, and in the first part of the branch, you use "show choice".
For the four numbers you want in your combination, you would then create four forks, each of which call this variable and each of which call a specific number 0-9. There are a number of tutorials, including this one, this one, and this one that you'll likely find very helpful.
Don't worry that these tutorials are for RM2k3. The event editors may be laid out different, but they're still basically the same, and only a few terms are changed, for example, fork condition is called branch condition. There's also a few instances in which 2k3 has some new options and scraps some old options from 2k, but these instances are few and if you do run into them, are usually pretty easily worked around.
Edit: Just an aside; I was learning C++ and after two years, was still only doing text adventures, so I downloaded the Don Miguel version of RM2000. For about a month, I had quite a bit of difficulty figuring out the ins and outs. I finally downloaded 2k3 and had a much easier time with it. They're essentially the same but 2k3 has a lot more functionality. If you ever get it in your head, though, I'd recommend ponying up the cash to buy a copy of VX Ace. No feeling quite like having a properly licensed 3rd party software that you can legally sell games with...even if you're a long way off from making a game worth selling.
For one, you seem to misunderstand how variables work. When you create a variable and type a number into the window, you're not storing the number; you're just naming the variable.
You create a variable that can call numbers. It should look something like this:
Next, you need a window where the player can input the necessary numbers and a way for those input numbers to call the fork conditions. To do this, you make a fork condition, and in the first part of the branch, you use "show choice".
For the four numbers you want in your combination, you would then create four forks, each of which call this variable and each of which call a specific number 0-9. There are a number of tutorials, including this one, this one, and this one that you'll likely find very helpful.
Don't worry that these tutorials are for RM2k3. The event editors may be laid out different, but they're still basically the same, and only a few terms are changed, for example, fork condition is called branch condition. There's also a few instances in which 2k3 has some new options and scraps some old options from 2k, but these instances are few and if you do run into them, are usually pretty easily worked around.
Edit: Just an aside; I was learning C++ and after two years, was still only doing text adventures, so I downloaded the Don Miguel version of RM2000. For about a month, I had quite a bit of difficulty figuring out the ins and outs. I finally downloaded 2k3 and had a much easier time with it. They're essentially the same but 2k3 has a lot more functionality. If you ever get it in your head, though, I'd recommend ponying up the cash to buy a copy of VX Ace. No feeling quite like having a properly licensed 3rd party software that you can legally sell games with...even if you're a long way off from making a game worth selling.
Pages:
1














