Stat system | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Stat system

I'm currently learning html and css to make a Choose Your Own Adventure game but i want to make a Stat system based on their choose and a Saving system. How do i do that?

5th Sep 2018, 12:29 AM
Redd Wield
Redd Wield - avatar
3 Answers
+ 1
There is no way with just HTML and CSS, at a minimum you will need to learn Javascript where stats should be fairly straight forward. Saving will either require storing information in a database or possibly with session cookies
5th Sep 2018, 3:16 AM
JME
0
Jason Edelson do you know anything how to do that with javascript? and i heard something about localStorage, is that what you mean?
5th Sep 2018, 4:24 AM
Redd Wield
Redd Wield - avatar
0
Warning cookies are not a robust storage method and can be unreliable. https://www.w3schools.com/js/js_cookies.asp
5th Sep 2018, 5:42 AM
JME