"Receive less DMG from Plant Monster"? How implement it?

As title says, as example.


I'm sure, after all it'll be pretty simple, but I don't get it.


So.. I want to add various races/properties on monsters, then add items being influenced by them.


Example: "Deal more damage to elfs" (I don't have elfs tho, but as example ^^)


Thought of using YEP Passive States, adding "elf" as one.


Still, how do I apply the effect on the weapon?


Like.. it would need to check, if the state "elf" is true on the enemy, if it is, you'll deal extra damage.


Not to be confused with elements.. tho I have been thinking yet if it might be easier to implement it that way.


But this would require monsters to be able to have more than 1 element, not being influenced by each other..


And I think, MV let's you only modify attack's element?


And I don't intent to have "elf" only on the autoattack of the enemy (like in case of "receive less damage from elfes"), but on every possible damage output from thatb enemy.
The usual way is to use damage elements - which is why they work a bit differently than in a lot of other games.


You can have only one attack element, but the target can have as many elemental damage rates as there are elements defined.


So a plant monster would have an attack element "plant", and all actors would have different damage rates for plant damage, which can also be modified by equipment.


So you would have to revert your thinking. Instead of "deal more damage to elves" you have to think "elves receive more damages from", and you can use the elements directly.
Just remember that

  • high elemental damage = take more damage
  • low elemental damage = takes less damage
If you add a passive state "Elf", you can use the WeaponSkill plugin that comes with the maker (it adds automatically when you create a new project, or at least it does in the new version, I just bought it) to change the attack of the weapon to a skill, and you change the skill's damage formula so that if the enemy has the state elf it does more damage.


Not that the attack element is a bad idea, but this way you can have a weapon with an element and strong against elves.
If you add a passive state "Elf", you can use the WeaponSkill plugin that comes with the maker (it adds automatically when you create a new project, or at least it does in the new version, I just bought it) to change the attack of the weapon to a skill, and you change the skill's damage formula so that if the enemy has the state elf it does more damage.


Not that the attack element is a bad idea, but this way you can have a weapon with an element and strong against elves.



This is kinda, what I had in mind!


But still not sure how to do it.


When I look at it, if I use a skill, I can change the damage element of the skill (would require some "anti-elf-element") and on the weapon the atk element can be changed - let's say, it is neutral. So both elements will apply? Or will one of them have priority?


Then let's say, enchantmants come with that -> change atk ele of the weapon from neutral into water.


I guess that would go w/o problem.


If I'd like to add monster sizes (small, medium, large) and modify damage to it, I'd need more elements, right?


Like.. neutral/small, neutral/medium, neutral/large.


Right so far?


Why I have a feeling that I missed sth ;o


So.. just to clarify..


Let's say I have an axe and it does extra dmg to large monsters but less to small..


It should be enough to change its element to "neutral/large", then for example


- large monster: 125% from neutral/large


- small monster: 75% from neutral/large


medium would stay at 100%


Then the large monster is an elf-giant (elf race)


So the neutral/large weapon get its own atk via skill which will have the "anti-elf"-element on attack (let's say it adds another 20% dmg)


So the axe which does 20% extra on elf would inflict on an elf-giant 45% more damage?


Oh and thinking further, I guess I'll need yep element core, so multiple elements will work.


(like.. I have the axe dealing neutral/large dmg and use an enchantment. as the enchant can be used on any weapon, I wouldn't be able to determine its exact element yet, in case of replacement.. I guess element core would solve this)
Well, in my idea you'd just put in the damage formula of the weapon's skill attack


"c = damageFormula; b.isStateAffected(elfNumberHere) ? c * 1.5 : c"


This way, if the monster is affected by the state Elf it'd take 50% more damage


But this idea is based on you making the elf start the battle under the Elf passive status, something you mentioned before

Original thread: https://forums.rpgmakerweb.com/threads/receive-less-dmg-from-plant-monster-how-implement-it.68199/