Share your repls and programming experiences

← Back to all posts
(v0.3_01) Battle Pets!
DillanSokalczuk (38)

tl;dr: My first Repl project is a text-base simple RPG game. More will be added later so comeback every now and then :)

Hello all!

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.

Happy battling!

From 0.3.0_01

  • After a pet faints, you can now summon one of you other pets, given one is still alive.

From 0.3.0

  • New Battle UI, featuring HP/MP bars!.
  • Moves re-coded, unifying them, and making them easier make.
  • New Area, New Enemies, New Moves!
  • New 🧸 Toy and 💎 Gem items!
    • Use gems to upgrade elemental moves!
  • Inventory Size can be increased by beating Area 3, 4, and 5 bosses.
  • Capped MAX MP. You can now only get up to 30 MAX MP by leveling up.
    • IVs still go up to +10, meaning Max MP essentially capped to 40.
  • Level capped at 85.

Dill

Commentshotnewtop
FirePhoenix101 (0)

Agreed, but there's a problem with this. Let's just say you can cheat by changing the code . . .

kinanharb10 (17)

soooooooooooooooo coool !!! :-)

maxyang (60)

a "simple" RPG game... This is more complex than most RPGs I've seen. great job

Gameknight2169 (3)

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

DillanSokalczuk (38)

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

Gameknight2169 (3)

@DillanSokalczuk lemme just say, the shortcut isn't just an idea. I literally do it. absolutely hilarous.

SidSkywalker (1)

This Is an amazing project dude! Keep up that good work!

studentAlfredAl (468)

Nice job! Keep up the great work! :D

LTI2 (65)

also you have a error

DillanSokalczuk (38)

Was fixing something. It should be good now. @LTI2

EthanCulp (29)

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!

CodingPseudonym (40)

@DillanSokalczuk You can remove line 13 and use os.system('clear') when you want to clear the screen. Also how did you make the save thing. I was making another game and wondered how to save the progress.

nN34398Ff (113)

mwah ha hah I set the level to 10000 and the damage to 100000000000, 100000000000000000

AustinZhang1 (53)

You should add descriptions for items

AustinZhang1 (53)

and i am using "pass" but im not getting extra mp

DillanSokalczuk (38)

Pass gives you 2 MP instead of the normal 1 MP. If you are at max mp, or will be with 1 gained, you'll won't get the extra. For the items, oops I should. I can't expect players to just know 0.0 @AustinZhang1

AustinZhang1 (53)

@DillanSokalczuk you should make a way to have more attack slots :)

AustinZhang1 (53)

@DillanSokalczuk
hmmmmmmm why is it not clearing?

DillanSokalczuk (38)

Sadly I haven't added switching in battle yet :(, and I've thought about giving a 4th attack slot, it would require more balancing though because it seems the game seems pretty easy as is ;) @AustinZhang1

DillanSokalczuk (38)

Also lol I have to go fix that, when you get petrified and cannot move it kind of just displays the moves again dispite not being able to move. @AustinZhang1

DillanSokalczuk (38)

Fixed! For some return it didn't return 0 for damage :/ Also sorry if you lose progress for errors, I'm still relying on a manual save code system atm. I really need to figure out cloud saving :/ @AustinZhang1

AustinZhang1 (53)

@DillanSokalczuk Lol your game is so good I've been playing it on and off for like 2 hrs, but you should make a thing where the player can beat the game

BuzzawJHKE (19)

Can you add an arena for hackers and kaiju?

DillanSokalczuk (38)

Uhh, not necessarily. I don't really want to feed into people who "hack" their saves... I mostly trying to make a semi-balanced game. @jhke

BuzzawJHKE (19)

@DillanSokalczuk I mean you should add a boss arena. I'm sure people wanna fight something as powerful as this:


(BTW thats my pet^)

DillanSokalczuk (38)

Oh yeah, I plan to add bosses to each arena where you have to beat them to pass to the next arena. @jhke

BuzzawJHKE (19)

evil cackles My pet is invincible. It can beat any boss in one hit.

ironblockhd (345)

Hehe

3#hack#Warrior#1#0#6#4#3#30#2#1#1#1#1#1#10000#1000#10000#0#0#0#0#0#0#0#0#0

DillanSokalczuk (38)

Sorry! Working on semi-big update, will be done soon! @zh24eric

CandyDandyMan (0)

Much good. How did you implement a save system though?

DillanSokalczuk (38)

Little thing I remember from my Scratch days :P, it just compiles a code and then when you play again and use your code, it breaks it back down using a split() function. @CandyDandyMan

zabuzatheashura (0)

You can try to have a slow type instead of time.sleep in the tutorial
You might try considering stopping this thing

DillanSokalczuk (38)

The int() issue I found a bit ago, all the other instances I've patched it, I guess i forgot to there. I have to see how to do the slow typing thing though ;) @zabuzatheashura

3DKTH3PR0 (1)

When I play, during the battles, in the middle, I get errors. Why is that????

DillanSokalczuk (38)

It was probably due to me being in the middle of updating the game. Sorry for any inconveniences! I'll make sure to write out that I'm working on the game next time. @3DKTH3PR0

3DKTH3PR0 (1)

@DillanSokalczuk Ok! BTW Do you want to do a collab? I need more people

DillanSokalczuk (38)

Oh, oops! Has to do with a out of range inventory item and/or skill. Forget that randInt(a,b) can give b, thought it only gave b-1 :(
@3DKTH3PR0

DillanSokalczuk (38)

OMG i forgot to add the mp uses for the new moves, that's why it was crashing :/ AND then new move wasn't code right. Atleast i found it now :)
@3DKTH3PR0

3DKTH3PR0 (1)

@DillanSokalczuk Ok! Can I try it again now???

DillanSokalczuk (38)

You should be good now. I'm so sorry for the interruptions. @3DKTH3PR0

3DKTH3PR0 (1)

@DillanSokalczuk It's Okay! Anyways, I give this game an upvote

Leroy01010 (200)

are you sure its not pokemon

DillanSokalczuk (38)

I mean, as of right now your "pet" is the only pet you can get so ig not :p @Leroy01010

Leroy01010 (200)

1#techno#Elf#1#0#4#3#5#27#4#1#0#0 why is it soo long

16hedgar (0)

This code works lol
1#Pet#Pet#100#0#1000#1000#1000#1000#1000#1000#1#0#0
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)

DillanSokalczuk (38)

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

LTI2 (65)

I copy and pasted lol

DillanSokalczuk (38)

When you select quit, it gives you the code. @LTI2

LTI2 (65)

@DillanSokalczuk no i mean how do you put the save function

DillanSokalczuk (38)

@LTI2 When you play again, when it asks you if you are a returning player, say "y" for yes and then type out your code and press enter.

LTI2 (65)

make a thing skip the basics plz it's annoying man

DillanSokalczuk (38)

Sorry about that, I'll add a skip right away. @LTI2

LTI2 (65)

@DillanSokalczuk there's just something about that pokemon gameplay that dosen't need a guide flashback to every time the game thinks i don't know how to catch pokemon

JosephSanthosh (1140)

One thing though, you should put a less amount of words, because children these are way too impatient to read. But it's really good otherwise.