Thread:8emi95/@comment-38452727-20200213193112/@comment-38452727-20200220133811

8emi95 wrote: Thanks! If I understand the code correctly it'll change it no matter if the effect is 5/10 or 5/10/25 or whatever right? Then you don't have to change the code if the effect is changed (adding the next level's or something.)

But it also changes it where you can't get e.g. 25 because it's impossible to reach that level at that point. I was thinking to change the walkthrough accordingly, only have 5/10 between the Charm option in Ch.2 and thed last option of Ch.4 since you can't get 25 (or 50) there. But I suppose if you were to check that too it'd complicate the code a bit, no?

Also, will you add some checks if the user doesn't enter a proper integer or will it just default to level 1? I guess it's fine though. I hope no one's trying to write "two" or something. xdddd That's correct, it just solves the formula provided. It totally ignores the previous text, be it 5/10 or whatever.

Yeah, I just took for granted that they wouln't check the previous choices after they leveled up, so they wouldn't see those choices where you can't get that much xp. But it can be added to the code, though.

It currently just defaults to 1, but yes adding some checks would be wise, I can totally see someone adding a string instead of a number lol.