[VX Ace] Dekita's elemental control trouble

Hello, it's me again with another doubt, this time is about Dekita's elemental control script (https://dekitarpg.wordpress.com/2013/03/26/d13x-elemental-control/), I want to use it to make the max of resistance you can have from a element is 90% (That means, the maximum resistance is just taking 10% of damage of the attack) so I was trying with a fire spell (element id number 3) so I modified the line number 190 to try that

 Element[3] = { :atk_ele => [ -2.0  ,  2.0  ], :def_ele => [ -0.1  ,  2.0  ]}

 Element[3] = { :atk_ele => [ -2.0  ,  2.0  ], :def_ele => [ -2.0  ,  0.1  ]}

I tried both ways (because I didn't understand at all the script) but still, I put some elemental resistance to weapon and armors, and I made a state to increase the elemental resistance too, in tandem, they increase the resistance in a 100% (that means they take no damage) but with those limits, they should receive only 10% of damage, but... Well, They take no damage, and that's not what I'm looking for. With both modifications as I put in the example (again, I didn't understand the script at all so I checked both ways)

Can someone help me with that? Again, I'm looking the max resistance you can have with this element is 90%, in other words, the max resistance of an element is receiving only the 10% of the damage.

Well, thanks for your attention
You need :def_ele => [0,1, 2.0]. The first number is always the minimum, the second is the maximum. Negative means you heal from the element instead of take damage.
Yay, a time record answer! And it works, thank a lot! but... I have another trouble

I used the attack command and then this appeared

10912905_989566654405621_779771964_n.jpg


Uhh, any idea about what could be happening?
Yes. Dekita forgot to set up element 0 and element -1 (for physical attacks). You need to add those lines to the script for it to work. Try adding a line for element 0 and element -1 with appropriate mins and maxs and it should work. In other words, try adding this:

Element[0] = { :atk_ele => [ -4.0  ,  4.0  ], :def_ele => [ -4.0  ,  4.0  ]}

Same for -1, and change the -4.0 and 4.0 to what you want.
It works! Thanks again

Pretty interesting, the scripter should know about that problem

But I have a question, if element -1 is normal attack, which is the element 0?
No idea. Maybe it is for elemental none?
It's very likely... Ohh well, this post is solved, you can close it if you wish, thanks again, bgillisp

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-dekitas-elemental-control-trouble.35438/