Skip to content
← Back to Community
(v0.4) Battle Pets!
Profile icon
DillanSokalczuk

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 plentiful I've worked on it, and I've enjoyed much of the way!

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!

VERSION 0.4

  • ARMOR! Equipable items that boost stats or give elemental resistances!
  • AGILITY! New stat to determine the chance to go first.
    • New pet types as a result.
    • You no longer automatically go first.
  • Newer Items
  • New moves, enemies
  • Areas now have splash text! It's a little limited as of right now...
  • Oh, yeah. Heads up. Saves are databased now, so you just have to make up a secret save ID to use. Yeah no more old cheaty saves, sorry peeps ;(

Dill

Voters
Profile icon
WilliamXiong1
Profile icon
johnnyfrancis
Profile icon
kinanharb
Profile icon
davidyu9
Profile icon
Soccer135246
Profile icon
Dylanquang
Profile icon
tsana
Profile icon
AnshAgarwal1
Profile icon
BarnesGames2
Profile icon
RiazuMacroni
Comments
hotnewtop
Profile icon
[deleted]

this is cool

Profile icon
FirePhoenix101

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

Profile icon
Soccer135246

@FirePhoenix101 True...
I did it

Profile icon
kinanharb10

soooooooooooooooo coool !!! :-)

Profile icon
kinanharb

@kinanharb10 this is my old account btw.

Profile icon
FlaminHotValdez

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

Profile icon
Gameknight2169

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

Profile icon
DillanSokalczuk

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

Profile icon
Gameknight2169

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

Profile icon
SidSkywalker

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

Profile icon
studentAlfredAl

Nice job! Keep up the great work! :D

Profile icon
LTI2

also you have a error

Profile icon
DillanSokalczuk

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

Profile icon
zh24eric

@LTI2 agree

Profile icon
gibbsfreenergy

GOOD JOB!

Profile icon
WilliamXiong1

Hey for world 6, you could add fairy king and queen. Also a new attack type and attack: attack type is psychic, from pokemon, and the attack is spoon throw. Spoon throw(15 MP): deals medium damage. also gives you focus and raises atk and def. low chance to stun and medium chance to lower def for other team. Thank you!

Profile icon
WilliamXiong1

Hi, could you PLEASE add more attack slots? thanks.

Profile icon
WilliamXiong1

hey, if I switch pets during bossfight, It crashes. Here's the error:
Traceback (most recent call last):
File "main.py", line 2013, in
main()
File "main.py", line 1689, in main
enemy.hp -= (grabAtk(plyPet.sp4, plyPet.name,
File "/home/runner/ffEmKvNOHF4/ATK_use.py", line 507, in grabAtk
return grabMove[id](id, name, atk, mag, mp, oppo_def, plyArm1, plyArm2, enyArm1, enyArm2)
KeyError: 0

Profile icon
WilliamXiong1

Mabye you could add a tank type: high def and attk and low agi and intel.

Profile icon
johnnyfrancis

Officially your 35 upvote

Profile icon
davidyu9

pls add more levels

Profile icon
EthanCulp

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!

Profile icon
CodingPseudonym

@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.

Profile icon
nN34398Ff

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

Profile icon
nN34398Ff

Nice!

Profile icon
AustinZhang1

You should add descriptions for items

Profile icon
AustinZhang1

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

Profile icon
DillanSokalczuk

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

Profile icon
AustinZhang1

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

Profile icon
AustinZhang1

@DillanSokalczuk
imagehmmmmmmm why is it not clearing?

Profile icon
DillanSokalczuk

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

Profile icon
DillanSokalczuk

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

Profile icon
AustinZhang1

@DillanSokalczuk ahh fix pls

image

Profile icon
DillanSokalczuk

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

Profile icon
AustinZhang1

@DillanSokalczuk ngl double kick is too good

Profile icon
AustinZhang1

@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

Profile icon
BuzzawJHKE

Can you add an arena for hackers and kaiju?

Profile icon
DillanSokalczuk

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

Profile icon
BuzzawJHKE

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

image
(BTW thats my pet^)

Profile icon
DillanSokalczuk

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

Profile icon
BuzzawJHKE

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

image

Profile icon
ironblockhd

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

Profile icon
zh24eric

not finished...

Profile icon
DillanSokalczuk

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

Profile icon
zh24eric

@DillanSokalczuk got it! no problems!

Profile icon
CandyDandyMan

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

Profile icon
DillanSokalczuk

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

Profile icon
zabuzatheashura

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

Profile icon
DillanSokalczuk

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

Profile icon
[deleted]

Nice!

Profile icon
3DKTH3PR0

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

Profile icon
DillanSokalczuk

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

Profile icon
3DKTH3PR0

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

Profile icon
DillanSokalczuk

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

Profile icon
3DKTH3PR0
Profile icon
DillanSokalczuk

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

Profile icon
3DKTH3PR0

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

Profile icon
DillanSokalczuk

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

Profile icon
3DKTH3PR0

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

Profile icon
Leroy01010

are you sure its not pokemon

Profile icon
DillanSokalczuk

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

Profile icon
Leroy01010
Profile icon
Leroy01010

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

Profile icon
LTI2

@Leroy01010 lol hack time

Profile icon
16hedgar

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)

Profile icon
DillanSokalczuk

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

Profile icon
zplusfour

nice job!