{RPGMXP} Create a state which protects you from a certain type of attack - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Games Development (https://www.save-point.org/forum-4.html) +--- Forum: General Support (https://www.save-point.org/forum-18.html) +--- Thread: {RPGMXP} Create a state which protects you from a certain type of attack (/thread-5384.html) |
{RPGMXP} Create a state which protects you from a certain type of attack - ThePrinceofMars - 02-12-2015 This should be easy but from some reason I can't seem to get it work, I want my enemy to have a shield which stops all ballistic attacks since the player normal attacks are with guns it would make the player change to energy weapons or physical attacks so I made a Element called Ballistics gave it to all my guns then I created a state which raises the users MDEF and PDEF to 200% and Element defense Ballistics yet when I attack the enemy with guns he still takes damage not much but some and the physical and energy weapons are also affected by the shield I would prefer for them to not be affected here is a copy of my game if you think it might help thanks in advance http://www.filedropper.com/systemshockrpgmaker110215_1 RE: {RPGMXP} Create a state which protects you from a certain type of attack - habs11 - 03-09-2015 The game mechanics of the "Elemental Defense" will only reduce the damage by 1/2 with states. So, if you want to make that the "Elemental Defense" will nullify the damage, you will have to change the base script, or your CBS script if you are using one. The base script is in the "Game_Actor" script, and is located on lines 123-127. You should be able to change the result to "nil" or just 0. I'm not a programmer, I just experiment with things and see if they work ;). I hope this helps. RE: {RPGMXP} Create a state which protects you from a certain type of attack - KasperKalamity - 03-09-2015 what happens when you turn it to 900%? i use elements for different attacks, but have never tried to change it mid battle like that. RE: {RPGMXP} Create a state which protects you from a certain type of attack - Steel Beast 6Beets - 03-09-2015 You can use bearcat's Absorb, Null, and Weak Armors script. Despite the name, it can also create states that absorb and nullify elements. Code: =begin These two scripts are also necessary. Code: class Game_Actor Code: module RPG |