I currently making a small project where the player goes in to a cave and sees how long they can survive running from a monster. In my hub world I want a place for them to view the past days and how well they did. I have the area made for them to view it, but how would I go about doing this?
Score Keeping System?
RPG Maker VXAce Supportyou'll need variables to store the data - then you can display it in text boxes or with scripts.
To go into more detail you'll need to tell us exactly what kind of data you want to store.
To go into more detail you'll need to tell us exactly what kind of data you want to store.
Okay, the way the game works is every time the player exits the cave, the day ends. I want the player to be able to be able to talk to an NPC and he will show them the times for each day. I want the player to be able to filter the list and be able to view the best days he/she has had. If the player is caught by the monster I want their score to be zero. Basically, I want a variable to made each day and then for it to be displayed. The problem I'm running in to is the fact that the days go on forever until he skips a day by sleeping.
No, you didn't understand my question.
What is to be scored? The number of steps in the dungeon, how many monsters were killed or how many minutes the player was in the dungeon and so on.
After you have that number, you can compare it to the existing high-scores and use conditional branches to decide wether to store the new value or keep the old
Your Idea needs a lot of mathematical operations to work, and that means a mixture of many control variable commands, conditional branches and variables to store the results.
If you already have an event, please post a screenshot of it so we can check it for problems.
What is to be scored? The number of steps in the dungeon, how many monsters were killed or how many minutes the player was in the dungeon and so on.
After you have that number, you can compare it to the existing high-scores and use conditional branches to decide wether to store the new value or keep the old
Your Idea needs a lot of mathematical operations to work, and that means a mixture of many control variable commands, conditional branches and variables to store the results.
If you already have an event, please post a screenshot of it so we can check it for problems.
No, I did answer your question, in my first post. I want to store the amount of time the player survived.
What is amount of time? It might not be obvious, but amount of time, when speaking in game terms is actually abstract...
Is it real-time? game-time? steps? etc...
Is it real-time? game-time? steps? etc...
I think seconds you survived, but not sure too. :/
If it is seconds, then he can make a parallel process in a common event, that add every 60 frames to Variable 1 +1.
Then he can enter in a text box /V[1] to show the score. 😉 (\s/)
If it is seconds, then he can make a parallel process in a common event, that add every 60 frames to Variable 1 +1.
Then he can enter in a text box /V[1] to show the score. 😉 (\s/)
This is what I am currently doing, but my problem is I want the game to go on forever until the player screws up. The game is split in to days, and I want it to display the amount of seconds for each day.
You could use multiple variables or use an array
But you can't generate variables in-game. As I've said, I want infinite days so that would mean I need infinite variables.
I assumed you want a high-score instead of saving all scores.
If you want to store all possible scores, then you'll need a script that handles the data as well as the display of those data - there is no way to do this with eventing as the game variables are limited.
You'll need to make a script request, and for the script request you'll need to be much more detailed and more precise. You'll need to tell the scripter what commands you need to check, how exactly the time is counted (for example, does opening the menu screen counts as stopping time, and what is if the player simply goes away and let's the game running instead of playing), mockups of any screens you want and so on.
As an estimate, if your script request is less than 300 words then you're probably missing details and any scripter needs to ask you further.
If you want to store all possible scores, then you'll need a script that handles the data as well as the display of those data - there is no way to do this with eventing as the game variables are limited.
You'll need to make a script request, and for the script request you'll need to be much more detailed and more precise. You'll need to tell the scripter what commands you need to check, how exactly the time is counted (for example, does opening the menu screen counts as stopping time, and what is if the player simply goes away and let's the game running instead of playing), mockups of any screens you want and so on.
As an estimate, if your script request is less than 300 words then you're probably missing details and any scripter needs to ask you further.
Arrays... You could use Arrays... Or Hashes...
Yeah. Use an array. Define it as an attribute of $game_party or similar. Each time the game ends and the player receives a score, push it into the array. Sort it whenever you please.
The easiest way to display the scores to the player would be to assign the numbers from your array to actual Game Variables right before you display them (there are much more efficient ways to do it, but they are also more technically complex to implement).
Use the Ruby documentation for Arrays if you're rusty on some of the keywords.
Or if you don't know Ruby at all, you'll need to make a Script Request or Commission.
The easiest way to display the scores to the player would be to assign the numbers from your array to actual Game Variables right before you display them (there are much more efficient ways to do it, but they are also more technically complex to implement).
Use the Ruby documentation for Arrays if you're rusty on some of the keywords.
Or if you don't know Ruby at all, you'll need to make a Script Request or Commission.
Original thread: https://forums.rpgmakerweb.com/threads/score-keeping-system.35298/