Best way to add a Monster Pool (RPG)

Get help using Construct 2

Post » Wed Mar 12, 2014 12:40 pm

Hello,

The game I'm working on has "random encounters" with monsters/animals/whatever, similar to a Final Fantasy style, where it transitions from the world view to the battle screen. I'm wondering how to go about setting up different monsters for the player to battle, and what is the simplest way to achieve a pool of monsters to pick from?

Would be build each monster from scratch in Construct 2 the easiest way, or is there some way to use something like Excel for the program to pull the stats from for each monster? I would find it immensely easier to fill in a spreadsheet of various monsters and their stats, rather than code each one individually.

Any other ideas or suggestions are welcome. I'm obviously still learning (and eager) and will try out all version suggested to better understand the capabilities of Construct 2. My only request is that if you have a suggestion/idea, include enough information for me to at least add one monster through your method. IE: If a particular event function is required to work, it'd be nice to point it out for me.

I had a look at the "How Do I..." FAQ but didn't find anything related to my question (I expected it to be under RPG section). If I did miss solutions already dealt with, please just include a link to the relevant post.

Thanks for all your help!
B
5
S
1
Posts: 31
Reputation: 437

Post » Wed Mar 12, 2014 12:57 pm

I would use an array for this. WIth an array you don't have to create trillions of variables.

You can make the theoretical work and balancing in excel. This is common. Than you type these values in the array. I don't know if there is any way to import these values automatically. I don't think it is possible.

Are you common with the use of arrays?
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Wed Mar 12, 2014 1:26 pm

Sadly no. I've not yet used them in Construct 2.
B
5
S
1
Posts: 31
Reputation: 437

Post » Wed Mar 12, 2014 2:14 pm

Ok you can read a good tutorial here. Copy this after scirra dot com: /tutorials/307/arrays-for-beginners
B
10
S
2
Posts: 135
Reputation: 1,090

Post » Wed Mar 19, 2014 6:54 pm

It seems like there are quite a few of us looking to get a turn based RPG done.

Perhaps as more of us look into it, we could pool our findings to create some uniform code that others could have to form a good foundation for such a game. With the ability to change the code as they see fit, it would provide a nice starting point.

Just to give you a link to some information I am using to help me figure out how to work with my similarly focused project. Here is a link that illustrates many of the algorithms that Square used to calculate damage, hit, random encounters, etc. in Final Fantasy 6 (or 3 in North America): http://www.rpglegion.com/ff6/algs/algs.htm
B
3
G
1
Posts: 9
Reputation: 318

Post » Wed Mar 19, 2014 8:21 pm

dukehenry wrote:Perhaps as more of us look into it, we could pool our findings to create some uniform code that others could have to form a good foundation for such a game. With the ability to change the code as they see fit, it would provide a nice starting point.

This would be cool, because there doesn't seem to be any good tutorials or guides on turn based combat, or melee combat for this (or none which I've found).
Last edited by Aurora Australis on Wed Mar 19, 2014 8:25 pm, edited 1 time in total.
B
27
S
9
G
2
Posts: 154
Reputation: 2,838

Post » Wed Mar 19, 2014 8:25 pm

@AlexandrTheGreat: As I understand things, you could put all enemies into a family, and have instance values (?) for the entire family. And then set up a random probability on which type of enemy you get, and maybe a add/minus event value on an individual enemy's instance value on creation.
B
27
S
9
G
2
Posts: 154
Reputation: 2,838

Post » Thu Mar 20, 2014 1:56 am

Aurora Australis wrote:
dukehenry wrote:Perhaps as more of us look into it, we could pool our findings to create some uniform code that others could have to form a good foundation for such a game. With the ability to change the code as they see fit, it would provide a nice starting point.

This would be cool, because there doesn't seem to be any good tutorials or guides on turn based combat, or melee combat for this (or none which I've found).


Agreed. I think there are some key elements to such a game that will have to be done by any interested party(ies) that include (but may not be limited to):

Character Progression System (aka leveling up, learning new abilities as you level up, etc)
Random Battle System (relatively easy to figure out, delve into systems with random encounters, but then also spawn specific enemies based on the layout (or specific area of the layout) you are in.
Menu System (Not only the opening welcome screen, but when in game and you want to see your characters, equip different items, use items in inventory, use abilities when not in combat, etc.
Battle System (most likely a twist on the above menu system) (battle menu system to use specific abilities in a turn based format against enemies. Include enemies AI as far as attacking your characters. Perhaps some specific method of attack for boss enemies that is a little harder, and also include specific cool abilities for more rare enemies.
Skill/Ability System (add skills both in the battle menus, but also spells/abilities that specific characters (or character classes) can learn as they progress.
Inventory System (a menu and activation system to be used both in and out of battles where you can use items in inventory, see their stats [and perhaps the effect of equipping for specific characters - aka new weapon does more damage than currently equipped, etc])

Lots of things that if developed with proper commenting, could greatly help anyone else who wants to develop a specific game.

I also know that if people plan on putting that much work into a game, it is natural to want to keep the code to themselves to reward their hard work.

On the other hand, I plan on learning as much as I can and will release the systems as I develop them (assuming I can figure out how to!) to anyone out there because I think it is an area of Construct that is severely lacking.

In any event I digress.

To help with your original question I have also come across this topic in my searches and families do appear to be a commonly referred to fix.

Basically you create a family called "monsters" for example, and in that family you can create instance variables with the specific information you would want to use in battle. Things like HP, resource (mana or energy for example), as well as attributes that can help determine how much damage they can dish out or take (like strength, stamina, etc.) could also be used if you want to calculate such things in a similar way that would apply to your characters.

Good luck!
B
3
G
1
Posts: 9
Reputation: 318

Post » Thu Mar 20, 2014 3:50 am

dukehenry wrote:Character Progression System (aka leveling up, learning new abilities as you level up, etc)

That's very easy, just set up an instance variable called "Level", and an event for when you level up.

dukehenry wrote:Battle System (most likely a twist on the above menu system) (battle menu system to use specific abilities in a turn based format against enemies. Include enemies AI as far as attacking your characters. Perhaps some specific method of attack for boss enemies that is a little harder, and also include specific cool abilities for more rare enemies.

Once you understand the basics of combat mechanism, the rest of this is fillers.
Trouble is, nobody seems to want to say how the basics of combat works, either turn based, or melee; no tutorials, nor simple capx. This basic unhelpfulness is a bit frustrating.
B
27
S
9
G
2
Posts: 154
Reputation: 2,838

Post » Thu Mar 20, 2014 9:17 am

O_o Wow, I thought this thread was dead but it looks like it has had some action over the last bit.

I really like the idea of collaborating on an RPG standards guide. I was considering writing a tutorial once I get all the initial bits in place. Currently, I'm trying to determine how to launch to battle screen only once when stepping on a "long grass" square, as right now even if I try and close out the window, it restarts because of the overlap.

I've been playing around with Families, Groups, and Subfolders lately, which honestly makes it a ton more organized (far better than comments for large sections).

Edit: Perhaps we should make a thread to start compiling various RPG oriented resources / discoveries / questions?
B
5
S
1
Posts: 31
Reputation: 437

Next

Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, Yahoo [Bot] and 22 guests