Share your repls and programming experiences

← Back to all posts
🏆Hero Legends - RPG Game🏆
Seazyns (212)

Helpers: Ezolite and Xobeen
Full Patchnotes: https://pastebin.com/raw/81Pfk51Y
To Fork The Game: https://repl.it/@Seazyns/Hero-Legends

Commentshotnewtop
dillonjoshua68 (70)

Dude, there’s a glitch , when trying To log in @Seazyns

dillonjoshua68 (70)

@Seazyns , do u recommend I learn java first or c++?

DJWang (1238)

Cool game! Can you teach me how to save progress using txt files?

Seazyns (212)

@DJWang Sure, just contact me on discord: Seazyns#8376

GabrielK1 (1)

Hello! Very good game you got here, really like it. I'm creating my own text adventure game as well and I'm wondering how you use Pickle to create save files for the game. I really can't figure it out, I'm stumped. Can you help?

Seazyns (212)

@GabrielK1 Very simple, just check out lines 161 to 173. The code is self explanatory, just think of it as a sentence. Filename would be replaced with example.txt and player would be replaced without your variable/object

Seazyns (212)

@GabrielK1 If you need further help contact me on discord: Seazyns#8376

Giothecoder (130)

Why was foods and backpacks removed?

Seazyns (212)

@Giothecoder It was an idea we had but we soon though of moving to something else such as drops from monsters and etc. Also we have been working on developing story mode for the past week and it will be released soon. No ETA

TheBlacksmith (17)

I forked the game, and for some reason, it has an unlimited amount of monsters in the levels and never makes it to the bosses.

Seazyns (212)

@TheBlacksmith Thanks for letting me know, I have fixed the issue. I had just re-optimized the code a couple days ago and it is a little buggy.

EthanH03 (0)

there is a coding error in line 22 and the game cant be played

Giothecoder (130)

@EthanH03 there isn’t anything on line 22. And it can be played.

Giothecoder (130)

@EthanH03 you just need to fork it and then make an account.

Rumble330 (3)

I'm having a lot of fun playing this game!! Really cool idea, but when it's more fully developed, it'll be way cooler. Suggestions: make each level rewarding in some way, maybe some fun colored text or something, make damage scale with levels, more levels with harder mobs, a tavern to recruit more heroes (though the latter would be difficult, would make it feel like a real campaign). Thx!

Rumble330 (3)

maybe also a chance to miss your attacks would be funny

Seazyns (212)

@Rumble330 Yeah that's a cool idea. Right now me and my friends are working hard on Story Mode, we don't have an ETA to when it will release but I had to re optimize the entire code and now we started the story mode code.

JaydenGonzalez (4)

this is so fun dude so glad i found out about this game

JaydenGonzalez (4)

BTW how do you make the games?

Seazyns (212)

@JaydenGonzalez Just a little bit of practice :)

DanteG1 (1)

The monsters have too much health and are too numorus for the amount of mana but otherwise a good game.

Seazyns (212)

@DanteG1 We are still figuring out new ways to heal in order to replenish mana, but thanks for the feedback.

midhi (3)

@Seazyns the melee attack should replenish the mana because you are not using mana

Seazyns (212)

@midhi There is going to be other ways but that isn't a bad idea, we will think about it. Right now our focus is on story mode, once we release it, we will prioritize work on both modes.

zhidao (14)

@DanteG1 yes you are correct in my ôpîöñ.

RileyGrooms1 (3)

my account was deleted this is a scam

Seazyns (212)

@RileyGrooms1 Whenever the game gets updated, the accounts are removed, if you want a stable version of the game, please fork it. Otherwise, you are limited to guest mode, for the time being.

midhi (3)

is it ok if i modifiy your code a bit

Seazyns (212)

@midhi Yea, if you just wanted to show me, then just share it with me, but if you are sharing it to the public just give me some credit and link this! :)

ChristopherLi5 (13)

VERY NICE GAME! LOVE IT! Literally the only game that is good with the accounts. I LOVE IT! This deserves 1000 upvotes (literally)

Seazyns (212)

@ChristopherLi5 Thanks so much, greatly appreciated! Sorry for the late reply.

JaydenGonzalez (4)

i have now tried it it is a really fun game

Seazyns (212)

@JaydenGonzalez Thank you really appreciated!

AQDProjects (21)

Good premise. You should add attacks that can affect statuses rather than just damage like poisoned, asleep, paralyzed, confused, scared, attack up, enemy attack down, defense up, enemy defense down, etc. (think all the flavors of Pokemon attacks) This would add in alot more complexities to combat and replayablity

Seazyns (212)

@AQDProjects Yes, that was actually one of the ideas we had, and it will most likely get implemented in the future.

JaydenGonzalez (4)

hey btw how do you code

Seazyns (212)

@JaydenGonzalez There is a lot of grey area in that comment, but just go online and learn the basics and start getting more advanced from there. I am a self learner and whenever I struggle I get help from the internet or some people. Just pick a language and start coding.

JaydenGonzalez (4)

i never played it but alr the title seems pretty cool i hope i can try it one day

Seazyns (212)

@JaydenGonzalez Well if you want to play, just hit the green triangle to run it and play as guest.

JaydenGonzalez (4)

this seems like a very cool game

SamuelKim10 (1)

this is so far amazing

Seazyns (212)

@SamuelKim10 Thank you, I appreciate it.

Taotio (1)

Your game is really cool! Congrats! I´ve just started learning python and this really an incentive for me to start! Thank you.
Is there a way to contact you? Just for some question and some chatting about your game :D
Kind regards
Tao

Seazyns (212)

@Taotio Thank you so much for the feedback, if you want to contact me, my discord tag is Seazyns#8376. Feel free to contact me there.

TheBlacksmith (17)

I look forward to seeing future updates.

TheBlacksmith (17)

Are the login and saving supposed to be only temporary? (As in when I sign-up, play the game, and then save, it doesn't let me log-in after the page is closed or refreshed.) It says "Account Does Not Exist." I just wanted to make sure it was working properly.

Seazyns (212)

@TheBlacksmith You have to make sure that you fork the game. It's going to make a version of the game for yourself, only thing is that it won't update when I release a new version. That's the way account storing works. If you play as a guest, you can play right here.

Seazyns (212)

@TAL0S Alright, thanks for linking it as well, I'll take a look at it to see if I can add it to my code.

Seazyns (212)

@TAL0S Hey, I looked over Json Store, the issue is I use classes, and I store character properties as user = Character(name,damage,mana) etc. Is there a way to store class objects, because I tried it and it didn't work. If you have time can you discord me if you know how I can do it. Seazyns#8376

TAL0S (5)

@Seazyns I'm not to sure if you can store functions inside of store, but you can store objects (e.g. colours = {"red":red, "green":green, "blue":blue, "white":white, "grey":grey, "aqua":aqua, "teal":teal} ), If that might help.
My discord handle is Arkanic#3070 if you wanted to know.

Highwayman (1358)

@Seazyns it’s too bad you can’t get closer to the bytes from what I can tell. How deep can you look at an object?

Seazyns (212)

@TAL0S I'll definitely contact you some time around, there might be a work around I can use that I have in mind, but I might need some help.

TAL0S (5)

@Seazyns i'm not that good at python, but sure!
(i prefer javascript)

AQDProjects (21)

@Seazyns XML might be another save I/O option instead of JSON for class objects. You could probably also use a structured .txt file. Also, you might be able to import stored values as new variables and then construct the class object variables with the newly imported variables.

Seazyns (212)

@AQDProjects Honestly, I understood nothing, -_-. I'm not that advanced yet, still learning.

maazzubair99 (58)

Your game is great. One thing I would suggest would be to get the keyboard inputs directly, like @mat1 did with his hacker typer(https://repl.it/talk/share/keyboard-Hacker-Typer/18897). It would allow the game to progress much faster as players don't have to press enter for every action.

I also found a bug. If, in battle, you spam an attack and enter, it will continue to use that attack. I'm not sure if this is a problem with your code or with repl.it, but i thought you should know

Seazyns (212)

@maazzubair99 I agree with your suggestion of getting keyboard inputs and I will see if I can add it, as for the problem/bug I have no clue how to fix it as the input that is supposed to have after printing the lines, gives people the chance to provide input before.

Highwayman (1358)

@Seazyns to be honest I like the fact that you have to press enter, it makes it so I have time to decide.

Seazyns (212)

@maazzubair99 I see, I looked through the link you sent me, and honestly it didn't make sense to me. I wasn't exactly sure how to add it. But I'm glad you like that feature. Something related to that is key binds which we will probably add in the future.

Highwayman (1358)

@Seazyns um. Pinged the wrong person.

NihalAnand (14)

I was looking through your update pastebins, and I noticed that you are looking to add skills. What exactly does that entail?
I ask because I love your game and I'm curious to see what you'll do next!

Oh, by the way, if you have a lot of time, maybe consider having a global database in which to store usernames and passwords so you don't have to store it within a fork. I understand if that's too much to ask, but it's just a suggestion. I know how hard these things can be :D

Seazyns (212)

@NihalAnand For skills, I was thinking some characters can get different buffs. Also for the database, I think it is a wonderful idea, but I'm not sure how to get it to work. Can we talk later, my discord is Seazyns#8376

NihalAnand (14)

@Seazyns Sorry it took so long, maybe this will help. I'd give this to you personally, but it might be useful to everyone out there looking at doing this themselves. This website tells how I've made a similar database before with Google Sheets. (I didn't write the article; looking at it again the wording here is a little confusing) I did it locally so I don't know if it would work on REPL, but I assume it would. https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html
And here is the documentation for the library they use.
https://gspread.readthedocs.io/en/latest/
Hope this helps :)

firefish (556)

Apparently you can gamble negative amounts....my account (same name as repl.it username) has got a vast negative amount. That is a problem.... I may need to delete my account in this game. I can't do anything other than bet more negative amounts and winning "less" money.

Seazyns (212)

@johnstev111 Ill fix that right away, thanks for letting me know.
Edit: Now fixed

firefish (556)

@Seazyns Thanks for fixing the bug! I have now recreated my account and there are no more bugs that I can find.

Seazyns (212)

@johnstev111 Thanks for letting me know, if there are more in the future, definitely let me know.