RPG Maker Forums

Hello!

I was hoping someone could help me create a script that can assign "Types" to enemies.

To better explain, types are just the monster's defensive element. For example, all Flying type Pokemon are weak to electric, rock, and ice attacks, while resisting steel and fighting attacks, and additionally, are immune to ground attacks. While this is possible to set up with element rates for each monster, with several hundred monsters that I'm hoping to apply types to, I'm hoping this could greatly reduce the workload of setting them each up individually, as well as allow for future-proofing, in case I change any type weaknesses/resistances in the future.

Pretty much what I'm hoping to have is an editable section in the script, set up something like this:

1 => "Flying", [2,3,4], [5,6], [7]

In which:
1 is the element ID in the database
"Flying" is the name of the element, used in a note tag below
[2,3,4] are the weaknesses, that deal 200% damage
[5,6] are the resistances, that deal 50% damage
[7] are the immunities, that deal no damage

Once that's set up, I'm hoping to have a note tag along the lines of <PKtype: Flying, Fire> to give an enemy, and give them their appointed weaknesses/resistances/immunities.

There are some creatures that are duel type (such as the Flying and Fire example above). In such cases, those types' weaknesses/resistances/immunities would combine. For example, if they were both weak to Rock element attacks, then the damage would become 400%. Likewise, if they both resisted Steel attacks, they would only receive 25% damage. Lastly, imminities outweigh anything else, meaning if flying is immune to Ground attacks, but fire is weak to them, then the flying/fire monster is still immune.

I didn't really realize how massive of a request this was until I sat down and typed it all out, I'm sorry if it's overwhelming. I hope this all makes some sense. By all means, let me know if you have any questions.

Thank you! :kaohi:

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top