+ 1
Working on making a Character sheet from scratch
So it's kinda tricky because the code needs a script and I'm rusty haven't coded in years. Basically I need field someone manually enters a number into, that when it reaches a specific amount it forces the character level to increase by one and experience points needed has to go up by 10,000 every time the character levels.
3 ответов
+ 3
You could analyze this example and use some code snipets in your project of ourse if you like:
https://sololearn.com/compiler-playground/WHl9x8w4dldn/?ref=app
+ 2
Sounds like you need a piece of paper and on it you can write that you need what looks like 4 variables - the user input field, the character level and the user's experience points and the increasing exp requirement.
Using pseudocode you could map out how to do it and what connects to it, where it goes etc.
Then code.
+ 1
I know the whole mathematics part of it. Basically lvl 1 start at 0 xp with a goal of 10,000. Once the 0 gets to 10,000. The intial goal needs to go to 20,000, and lvl from 1 to 2.
Rinse and repeat till level 50 with the final xp count at 500,000.