tl;dr: My first Repl project is a text-base simple RPG game. More will be added later so comeback every now and then :)
So I recently took a class in coding Python, but like my other classes I took I would make these one-off creative projects but I could never really "share" them because we installed our own IDEs. So after a bit of searching I found Repl and welp, now I'm here able to show anyone one of those projects :). I'm new, and probably could of made a "hello everybody post" beforehand but getting this project up to even just a sandbox prototype I wanted to share it.
Battle Pets is a text-based classical RPG styled fighting game. Create a pet, battle weird enemies from different towns, level up and learn new skills. There's maybe not too much to it yet, many things don't have much differences (wave/flame or other moves not having resistances yet), but hopefully if I keep working on it, soon enough it will become a game for great fun. I've made a semi-decent save code function, so even if you want to return you don't necessarily have to start over.
I'm ALL OPEN to any suggestions, criticism, ideas, improvements, or offered help. I'm new and wish for any community involvement I can get.
- Added Party Switching! You can now get up to 3 different pets to train throughout the game!.
- Are Bosses! You will need to defeat them in order to pass to the next area. Old saves will still need to beat the bosses to move on.
Great game. Would love to see if it could be autosaved and you wouldn't have to copy everything. Also, you can make moves before the turn happens. for example, my snare and flame combo does over 25 so I just press 2 and type pass then press 3 then I can just sit back, relax, and watch... Great mechanic so I can save a lot of time
Yeah getting an autosave would really help. I have to look up stuff on how to do saves online (new to repl.it). As for making move "shortcuts" as you described, that is a pretty cool idea and I'll take it into consideration. There's still a bit I want to add to the game (party mechanics, story, progression, and balancing whatever i can lol). @Gameknight2169
To make autosaves better (Your way is still a good way to do it tho), I suggest you learn to use jsonstoreclient. It is very well known and very useful. However, it does allow people to change autosaves themselves. All they need is the key and people can delete everything if they want. To do make private variables, like the key variable. To do this, make a file named '.env', Thats it. Then, make a variable in there like you would do in regular python. To get that variable, use os.getenv('VARIABLE_NAME_HERE'). Hope this helps!
This code works lol
The 1 has to be first
The 'Pet's can be anything they're just names
The first 2 numbers are level and xp
The 5 numbers after are the stats
The last 3 numbers are the moves the pet knows (0-29)
Yeah its relatively simple to hack for now. Maybe Ill make it harder in the future but at that point it would have to be when I'm ready to clean wipe since its kind of just a sandbox atm
Also, the 3rd line is actually your Pet type, so if its not one of the ones in the game youll literally get no stat boosts from leveling up lol. @16hedgar