hi im interested in making a text rpg like this

i see that it uses php and javascript to scroll down automatically
but im wondering whats the best way to do something like this
like store everything in a database or in a script

and how u can make an account and resume your adventure where u left off