[XP] help with elements

Started by Lanzer, July 17, 2011, 08:26:40 pm

Previous topic - Next topic

Lanzer

hi guys this time i was wondering about a way to change the custom elemental resistances calculation , change it from A-F system to a customizable percentual system via equipment
any idea if this can be done by scripting?? or any hint of how i should make this??
EX: have a fire resistant armor marked with fire resistance in the database that should halve fire based damage, but i want to change it to lets say... 5%.

scripts using: guillame`s multislot system , remake final fantasy 7 materia system, tons of addons and passive augments. default battle system.




Lanzer

BUMP! =( any hint clue on where i should search to make this possible??




ForeverZer0

Look into the "element_rate" method in Game_Actor and Game_Enemy, as well as the "elements_correct" method in Game_Battler, which is used in the "attack_effect", "skill_effect", and "item_effect" methods in the same class. 

This will allow you to see how the damage is altered depending on the elements.  You can also insert your code to alter it, depending on how you create the equipment to possess varying rates.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Lanzer

ok thanks that should be fine to start making the proper code