Any number * 0 = 0.
How to decide how many lvls for your game?
Game Mechanics DesignYeah... but you divide and multiply first, then you add.
12/1000*0 = 0
0+100 = 100
12/1000*0 = 0
0+100 = 100
Oh, you wanna get technical, I see. I can play along with that. Unless you are using parentheses, then the math is linear. Since I didn't include any parentheses, the outcome = 0
This isn't me arguing with you, this is just math. (A + 😎 * (E / (C * ZZtop ) * 0 = 0
.
Grab a calculator if you don't believe me. 😛
Without parentheses, * and / happen before + and -.
The outcome would be 100 😉
In fact, most calculating software even prioritize * over /. Which normally doesn't make any difference, unless there is a zero involved after the "/". You can't divide by 0. That would result in an error.
It really doesn't matter, though. Just keep in mind that when you make damage formula's, it will prioritize * and / over + and -, unless you use parentheses. (When you do, just make sure you use as many opening ones as closing ones. Otherwise you get an error still.) 😛
Without parentheses, * and / happen before + and -.
The outcome would be 100 😉
In fact, most calculating software even prioritize * over /. Which normally doesn't make any difference, unless there is a zero involved after the "/". You can't divide by 0. That would result in an error.
It really doesn't matter, though. Just keep in mind that when you make damage formula's, it will prioritize * and / over + and -, unless you use parentheses. (When you do, just make sure you use as many opening ones as closing ones. Otherwise you get an error still.) 😛
Most people were beating the last boss around 110 or so, so I made the max level 60000 something because raisins.
Most of my games don't have levels because I'm bad at math, so number balancing has just always been an issue for me. However, with Heidi, I decided to cap it at 20 because I have (don't quote me on this because it's been a long time since I've been in the game project) 8 enemies, 2 for every 5 levels. That and it's not a super long game, so 100 just wouldn't make sense because you'd never get there unless I made each level ridiculously easy to achieve.
Order of operations isn't "getting technical" it's literally just how maths works.
Hmmm... It seems you may have a valid point. But I'm still going to argue my case, because that's more fun (and also I still think I'm right). Let's agree that the equation is:
100 + 12 / 1000 * 0 = n
First I used the default calculator that I always use, the one that comes with Windows 10, and the result was 0, like I said. Then I switched from "Standard" mode (the default mode) to "Scientific", and look at that, it landed on 100, just like you said.
Well, crap. That's weird. I thought math was just math. I mean I know higher math, like physicists use, can get weird and all, but this is literally just A + B / C * D = n
Order of operations, I'm glad you brought that up. Here's the order:
100 + 12 = 112
112 / 1000 = 0.112
0.112 * 0 = 0
I know you can't divide by 0, but I'm not. I'm dividing by 1000, and then multiplying the result by 0.
When you do it in order, the the answer is 0 every time, no matter what calculator you use. People who write calculator software are not the Gods of Math. But you know what? I'm not a mathematician, and this is not a hill I want to die on. So I'll agree that you (JohnDoeNews) are half right and I'm half right right. Otherwise we're going to have to have to take it up with reddit/r/math, and that could get messy. I'm pretty sure those people are smarter at math than either of us, so it could go either way.
NOTE: I just now remembered that I'm about 3 weeks into taking Prozac for panic disorder (I've never taken meds before), and my shrink (yes, I refer to her as "my shrink") said I may have temporary personality changes and act weird for a while. I feel like I'm acting totally normally, but I have to admit that this is a rather long forum response for something completely stupid and inconsequential. So if I'm being weird, I apologize, although I feel like I'm just being myself. I can be kind of a jerk, but I usually don't type so much over some silly nonsense, so maybe I am being weird. I really can't tell at this point.
I will say this: I haven't had a panic attack in the last 10 days, which is amazing. Hopefully I won't spend the rest of my life getting into internet arguments about random crap. I'll have to mention this to my shrink at our next meeting. But, whatever, it's 0, not 100.
The reason your simple calculator gives you 0 is that it's programmed to evaluate the result of the calculation as soon as you hit an operation key. The reason the scientific calculator does BEDMAS/BODMAS/PEMDAS/whatever is that it's programmed to evaluate the entire thing as a whole once you hit enter rather than calculating each operation.
Your simple calculator is just that: simple. That isn't how we evaluate mathematical equations when doing them manually and it's also not how most engines capable of maths operations do it. Javascript will give you 100:
I'm glad your medication is helping and that you haven't had a panic attack in 10 days, that's great! You don't seem to be acting *weird* per se, but you are wrong about this calculation and doubling down on being wrong. I wouldn't call it an argument or a debate and I'm certainly not bothered by this or getting heated, you're just factually incorrect about how maths operations work outside of your calculator app.
But we're getting woefully off-topic regardless.
Indeed. Back to levels and how to decide how many...
I've been setting up classes for an experimental project I work on and I got a new opinion on this:
I have set up 8 classes.
So far I have 5 to 10 skills per class. Most classes have 5, 6 or 7 but magic classes can have more. And that includes the 1 or 2 skills it has at level one.
Because I don't want the player to have to wait many levels to learn a new skill, I choose to cap the level of my characters to 15... For now.
I've spread out the skills per class over their levels and now all classes gain a new skill every 2, 3 or max 4 levels.
Since they play in a party of max 5 (out of 8) actors at the time and the characters are not all added to the party at once, the characters do not lvl up at the same pace. This means I have a lot of moments where a character levels up. And more often there would be a "learned skill" notification.
When I add more skills to the game, I can raise the level cap and make sure each class learns a new skill every few levels again. At the same pace I can add leveled enemies.
This way I just raise the cap bit by bit till the game is finished. Then I know how many levels I need.
99 is a good level cap for a longer project; I'm rather fond of 33 for a shorter one.
I usually use the parameters [20, 0, 26, 17] for my EXP curve, since I noticed it gives nice round numbers for the first few levels (20, 60, 120, 200, 300). With these parameters, it just happens that reaching Level 33 requires 99,998 total EXP, so that feels like a fitting place to finish.
It also works nicely with my stat curves, because the gap from Level 1 to Level 33 is 32 = 2^5, and I like to have stats go up by 8, 4, 2 or 1 per level, or 1 every 2 levels (depending on the stat).
Entirely arbitrary, of course, but it appeals to my sense of mathematical aesthetics.
I usually use the parameters [20, 0, 26, 17] for my EXP curve, since I noticed it gives nice round numbers for the first few levels (20, 60, 120, 200, 300). With these parameters, it just happens that reaching Level 33 requires 99,998 total EXP, so that feels like a fitting place to finish.
It also works nicely with my stat curves, because the gap from Level 1 to Level 33 is 32 = 2^5, and I like to have stats go up by 8, 4, 2 or 1 per level, or 1 every 2 levels (depending on the stat).
Entirely arbitrary, of course, but it appeals to my sense of mathematical aesthetics.
@JohnDoeNews
Oh, OK. I did some googling, and it seems you're right and I'm wrong. This happens sometimes. I've been wrong about 5,012,457,965 things now (I keep count) so it's not that big a deal.
For the record, I still think it's stupid to not simply default to linear order and use parentheses to change the order, but then I barely passed pre-algebra in high school, so maybe I should shut my big mouth.
Oh, OK. I did some googling, and it seems you're right and I'm wrong. This happens sometimes. I've been wrong about 5,012,457,965 things now (I keep count) so it's not that big a deal.
That's very kind of you, Thanks! I think I always acted a little weird, but now I'm just acting weird and not having panic attacks.
For the record, I still think it's stupid to not simply default to linear order and use parentheses to change the order, but then I barely passed pre-algebra in high school, so maybe I should shut my big mouth.
For what it's worth I actually agree with you. I don't really get why we can't just evaluate equations from left to right unless brackets change the order, tbh. But it is what it is. 🙂
It's cool that you admit that. But I wasn't trying to challenge you. I was trying to explain it to you.
Priority is not something everyone knows, I guess. I'm pretty sure my parents don't have a clue and would do the exact same thing you did.
Don't worry about it, though. I'm a huge math nerd and my first though was the outcome would be 100, and I was plain wrong too, Because for some reason I thought the priority of * over / wouldn't matter... which was a mistake.
There is actually a logical reason for that. Lets make it easy and put it in a practical example:
It is halloween and we go trick or treating, with a few other members of the forum. We're with the 5 of us.
But at the end of the block, you and I each have 10 candy bars while the other 3 kids each have 12, because we missed a house when we argued over what is the best candy. Trihan meets us after we're done as the 6th kid. He trick or treated on his own and he has a whooping 3 candybars.
You might say:
Together we have 2 bags of 10 candybars and 3 bags of 12 candybars and 1 bag of 3 candybars.
You can write this as:
We have 2x10 + 3x12 + 1x3 = 59 candybars
If you would actually put meaning behind the numbers, it suddenly makes sense, that you do 2x10 and 3x12 and 1x3 before you add them all up, right?
And that is why you do * before + and - rather than just calculate left to right.
I am sad that I have the least candy. 🙁
But wait, how were you wrong about it being 100? That's what I got as well and also what the JS console output for the calculation.
Well, * should get priority over /, meaning you do 10 * 0 which is 0 and then divide the 20 by 0.
20 divided by 0 is impossible.
I think javascript just registers this as "NULL".
And then in the end does 100 + NULL, which is 100 still, since null is nothing.
It is the only explanation I can think off why javascript wouldn't show an error when dividing by 0 in a larger formula.
But according to math rules, this example would be impossible, since there is simply no outcome when you divide by zero.
You weren't dividing by 0 in your example though, you were multiplying by it. Ah well, it's not important anyway. XD
In the first example: 100 + 12 / 1000 * 0
If multiplying is given priority over dividing, you get this
So, I think instead of error, javascript puts in NULL which would change the outcome:
If multiplying is given priority over dividing, you get this
Code:
100 + 12 / 1000 * 0 =
100 + 12 / 0 =
100 + ERROR =
ERROR
So, I think instead of error, javascript puts in NULL which would change the outcome:
Code:
100 + 12 / 1000 * 0 =
100 + 12 / 0 =
100 + NULL =
100
This might be slightly off topic, so I will put it in a spoiler.
Going back to the levels topic, I already gave my opinion in a previous post, but I also agree with those who say that nostalgia plays a role.
It can actually be part of the desired aesthetic of a game, in which case, having the same amount of levels of other similar games might be enough of a reason to have 99 levels (or any other number of levels, really, depends on which games should come back to the players' mind while playing).
In the end, I would say that, as almost everything in game design, it depends on what each game designer wants his or her game to be.
I doubt this can have a sure-fire pick that goes well with any game. What I can say, though, is that regardless of how many levels one has in his or her game, things can and should be balanced around that to fit the desired user experience.
After all, game design does not revolve around polarized decisions, each desired aesthetic can be improved or ruined by stylistic choices, the most important thing is to pick the right dynamics for our aesthetics. Only then can we create a game that results in a memorable experience for players.
If we, as game designers, do not take this path and decide to copy other games and incorporate part of their elements in our game, results are not guaranteed. Even nostalgia can be detrimental in the wrong game. I am not stating that incorporating other games elements in our design is wrong, it might work, but we should always ask ourselves:
"Does this element really serve a purpose in my game?"
In case of JavaScript, operators precedence for operators with same priority is left to right, which proves Trihan correct (you can try it yourself in a console or you can see it for yourself in the docs).
developer.mozilla.org
Actually, the same applies also to many other languages, where operators with the same priority, except for assignment operators, are evaluated from left to right. Assignment operators are, conversely, evaluated from right to left.
Operator precedence - JavaScript | MDN
Operator precedence determines how operators are parsed concerning each other. Operators with higher precedence become the operands of operators with lower precedence.
Actually, the same applies also to many other languages, where operators with the same priority, except for assignment operators, are evaluated from left to right. Assignment operators are, conversely, evaluated from right to left.
Going back to the levels topic, I already gave my opinion in a previous post, but I also agree with those who say that nostalgia plays a role.
It can actually be part of the desired aesthetic of a game, in which case, having the same amount of levels of other similar games might be enough of a reason to have 99 levels (or any other number of levels, really, depends on which games should come back to the players' mind while playing).
In the end, I would say that, as almost everything in game design, it depends on what each game designer wants his or her game to be.
I doubt this can have a sure-fire pick that goes well with any game. What I can say, though, is that regardless of how many levels one has in his or her game, things can and should be balanced around that to fit the desired user experience.
After all, game design does not revolve around polarized decisions, each desired aesthetic can be improved or ruined by stylistic choices, the most important thing is to pick the right dynamics for our aesthetics. Only then can we create a game that results in a memorable experience for players.
If we, as game designers, do not take this path and decide to copy other games and incorporate part of their elements in our game, results are not guaranteed. Even nostalgia can be detrimental in the wrong game. I am not stating that incorporating other games elements in our design is wrong, it might work, but we should always ask ourselves:
"Does this element really serve a purpose in my game?"
Original thread: https://forums.rpgmakerweb.com/threads/how-to-decide-how-many-lvls-for-your-game.151691/