Page 1 of 2

RPG Battle Engine (similar to RPG Maker)

Posted: Thu Jan 22, 2015 4:00 pm
by demonangelz
Hi guys,
I was playing around with renpy and was trying to see if I could make an rpg with purely screen languages and not too much python code. I liked the default RPG maker engine and was trying to imitate that style. So far, I have a basic code that shows how I did everything. The GUI is just a simple one I made but it can be changed easily.
The code itself has comments which I hope will explain how it works. If you need to me add anymore information, I'll be glad to.
This is really simple and doesn't have a lot of features. However, it's to show a basic RPG system and I hope it'll be helpful to you guys.
Current missing:
Animations
Transitions
Ability to change the number of players/party member fighting

If there's anything I did incorrectly, please tell me or if there is any bugs, do tell. The coding I do in renpy is all self taught with a lot of tutorials so I know there might be a traditional or better way to do things that I don't know about.

I attached a couple screenshots below:
ss-capture1.PNG
ss-capture2.PNG
Download from: https://www.dropbox.com/s/g81njii9ejyrt ... e.zip?dl=0
Hope this helps!
Credit me by linking back to this site or look in the credits.txt for alternative ways for crediting. The code is free to change or modify for anyone, you don't need to tell me ^^

quick edit: small change in checking monsters dead parameters, should work fine now!

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Thu Jan 22, 2015 4:19 pm
by demonangelz
Quick note, you may have to make the monster3_hp parameter 0 if you only are using only 2 monsters, sorry I will change that in the code so you don't have to do that once I get back on my computer

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Thu Jan 29, 2015 5:05 am
by squark
This is lovely, thank you ^^

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Tue Feb 03, 2015 7:15 am
by squark
Okay, so I load this into the launcher and hit launch.
Brings up the main menu, I hit Start and it crashes.
Do I need to update Ren'Py or something?

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Sun Mar 01, 2015 7:46 am
by Karen
Have been searching for something like this for a while atleast atleast ATLEAST!!!!!!
found it :lol:

thx anyway

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Wed May 13, 2015 5:29 pm
by demonangelz
@ squark
Sorry for the late reply! Super busy lately >__<
Yeah, I believe you need to update renpy, I'm not having any problems on my side when I launch the game.

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Sat May 16, 2015 7:43 am
by paktek123
This is very well done! I love the battle system. I am trying to do something similar too but you have done in a more classical style! My advise (constructive criticism) would be:

- at the moment things are a little too 'hard coded' especially with all the 'if' statements, would be good to turn those into renpy call statements (calling a label with params) or python functions. This way you don't have to put all those 'if' statements.

- If you are going to do a full rpg maker would be great to see an open world aspect too. Emulating the free world with player moving isn't easy and will probably require python code but I suggest you give it a shot!

I don't mind helping out if you need.

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Mon Jun 01, 2015 8:59 pm
by demonangelz
Hi paktek123,
Thanks! Yeah, this was the first time I coded something in renpy and didn't know about using python functions. But that sounds better and much more abstract, I'll keep that in mind and try it out once things get less busy for me ^^.
I'm not sure how I would go about open world although I think someone has already done something like that in the cookbook. I'll look into it in the future and PM you if I need help :)

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Sat Jul 11, 2015 8:58 pm
by Kokoro Hane
This code looks cool, something I definitely need. Curious; what version of Ren'Py do you use? Just wondering, as I wanna make sure if I can sue it on the version I use or if I should use it in a later version.

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Fri Jul 17, 2015 6:31 pm
by demonangelz
Ack sorry I don't check lemma often enough >__< you should be able to run it on an earlier version since I coded this up around January. However, if it doesn't work then you might need to upgrade to the latest version. It's currently running fine for me and I'm have the latest version of Ren'Py.
Feel free to ask if you have any questions or run into any issues with it! :)

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Fri Jul 17, 2015 7:04 pm
by noeinan
This looks awesome! Do you have a restriction on commercial use?

Also, would it be okay with you if I added this or modified code to my Ren'Py Quickstart (with credit, of course)? (Link: http://lemmasoft.renai.us/forums/viewto ... 51&t=22393 )

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Sat Jul 18, 2015 1:01 am
by demonangelz
There's no restrictions at all ^_^ so commercial use is fine! Yep, sure, you can modify it however you like for the quickstart! Glad you found it helpful :D

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Wed Jul 22, 2015 12:39 pm
by Tentacles
Would I be able to open to learn how you did it? I've been looking for something like this for a while.

Mainly I'm wanting it to focus on Attack and Defend. And then maybe add features like distance factor. Which basically means, the more you select that option the greater the distance variable. 1 nullifies your defence, 2 cuts it in half, et cetera until it reaches a max of $distance_factor = 4.

And then some other stuff, like the dynamic of the battle changing based on if you're back attacked or front attacked.

This looks absolutely excellent though.

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Fri Jul 24, 2015 1:51 pm
by demonangelz
Hi! Yes, the code is totally open for you to look into it and see how everything is done. Not sure about your question but I think distance is possible to incorporate? I haven't done that before so I'll have to look into it myself but the code is free for you to modify in any way you want so youcan always play around with it! XD

Re: RPG Battle Engine (similar to RPG Maker)

Posted: Mon Oct 26, 2015 6:54 am
by fah-renheit
Thank you so much for providing us a free battle engine!
Thank you again!!