I'm curious how you would use a python file like this as a battle in another text based adventure game? so.. in the adventure game a battle would come up in order to get a key to unlock a door. but that's a lot of script in one file. so I'm wondering how you'd append or execute a battle file within another game file?
You could re-write the code to have classes and functions for all aspects and then import these classes & functions in the file you require them. Have a little look into importing your own class to another file! Thanks for the nice words! Appreciate the support 🙌🏼
When I try to write the code, it seems to have a problem at lines 33 and 34 when trying to define ‘Player’ and gives me a “did you mean: ‘player’?”. I know that this is a later version of python than used in the video and was wondering if you have any solutions to fixing it?
So I did this, made my own story, but when I try to run it, it shuts down the program, do I have to run it through an IDE?
I'm curious how you would use a python file like this as a battle in another text based adventure game?
so.. in the adventure game a battle would come up in order to get a key to unlock a door.
but that's a lot of script in one file. so I'm wondering how you'd append or execute a battle file within another game file?
also kickass video by the way! I'm tuned into your stuff now! Thanks for the insight!
You could re-write the code to have classes and functions for all aspects and then import these classes & functions in the file you require them. Have a little look into importing your own class to another file! Thanks for the nice words! Appreciate the support 🙌🏼
When I try to write the code, it seems to have a problem at lines 33 and 34 when trying to define ‘Player’ and gives me a “did you mean: ‘player’?”. I know that this is a later version of python than used in the video and was wondering if you have any solutions to fixing it?
I have tried making it lowercase and it just causes more problems than solved
You don’t explain what the codes do, we don’t know class or any of that stuff
I have already released a playlist explaining Python basics. This can be found here: ruclips.net/p/PLg23gvtTlgzn8u_wXmV02vMWwCU2ZztHy
can I have the script pls , I wrothe the whole code but with 20 mistakes :( can´t fix them
This is what i want to find... Just too many repeated command