RPG Battle Engine (similar to RPG Maker)

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
curry nochi rice
Miko-Class Veteran
Posts: 746
Joined: Sat Mar 27, 2010 3:12 am
Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
Organization: Circle Cosine
IRC Nick: Curry
Skype: after.curry.rice
itch: project-rothera
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#16 Post by curry nochi rice »

I'll try to refine the code a bit. @.@
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

User avatar
SKmuffinEXE
Newbie
Posts: 24
Joined: Fri Apr 08, 2016 12:20 am
Skype: SKmuffin
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#17 Post by SKmuffinEXE »

Thank you! This would be really helpful and I don't have to come up with some sort of code myself! This seems really neat as well. Keep up the good work!

User avatar
Bryy
Veteran
Posts: 407
Joined: Thu Dec 20, 2012 10:12 pm
Completed: 30+ games so far
Projects: Furry Shakespeare
Organization: Stegalosaurus Game Development
Location: Portage, MI
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#18 Post by Bryy »

This is awesome.

era27
Newbie
Posts: 6
Joined: Thu May 12, 2016 5:52 am
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#19 Post by era27 »

Thanks, this is really cool.

But, I was wondering about a few things:

- When battle ends, it doesn't seem to check for the end until after the last character takes a turn.

- I am unable to change the number of monsters to anything but three, even when altering the code according to your notes in the code.

- The MP meter doesn't seem to be doing anything.

- Some way to keep HP as it is from the end of the previous battle into the next one. Currently the HP resets to full at the beginning of battle. Even if I comment out that code, it gives me a game-breaking error.

- Is there a way to randomize the monsters from a pool? For example, if there are 15 potential monsters, pull three from that potential pool.

- When one character dies, it seems to end the combat completely.

Thanks

era27
Newbie
Posts: 6
Joined: Thu May 12, 2016 5:52 am
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#20 Post by era27 »

So, I have been playing around with this code for awhile now.

I fixed some things, like the monster turn ending late, monsters attacking the dead, etc.

And I added some functionality, like MP and health not refreshing to full after combat.

Here is what I have so far. I am a bit of a beginner at this, so if the code is a bit messy, please forgive me.

Also, if anyone else has any input or help, please let me know.

I am currently trying to implement a error control for players who try to cast a spell, but don't have enough mana.

Thanks.
Attachments
battle.rpy
(33.4 KiB) Downloaded 183 times

User avatar
Coren
Mindscrew Driver
Posts: 1691
Joined: Fri Sep 18, 2009 9:24 am
Completed: Dear Mariko, Six Rules, Ribbon of Green, RE: Prince of Nigeria, Doppelganger, Cole's Gate Demo, Crimson Rafflesia Demo, Mica: Apoptosis Demo
Projects: Crimson Rafflesia, Mica: Apoptosis, Fantasy Euthanasia
Organization: Soyasushi Productions
Tumblr: CorenBaili
Deviantart: CorenB
Skype: coren.baili
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#21 Post by Coren »

This is a really cool engine! Thanks for sharing this!

By the way, is it possible to implement a heal command?

agl
Regular
Posts: 54
Joined: Tue Jul 19, 2016 5:09 am
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#22 Post by agl »

I am using this engine (although i am heavily reworked it) in my wip game.
Thank you very much.

era27
Newbie
Posts: 6
Joined: Thu May 12, 2016 5:52 am
Contact:

Re: RPG Battle Engine (similar to RPG Maker)

#23 Post by era27 »

agl wrote:I am using this engine (although i am heavily reworked it) in my wip game.
Thank you very much.
Care to share your code?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]