Hello I'm looking for a script or perhaps an alternate method of allowing an Armor Accessory to prevent the swamp tile damage when equipped on each hero. I'm using the sample swamp map provided with XV Ace.
Script to enable an armor item to prevent swamp tile floor damage
RGSSx Script SupportYou can use this bit of code:
class Game_Actor < Game_Battler def check_floor_effect return if armors.include?($data_armors[ARMOR_ID]) execute_floor_damage if $game_player.on_damage_floor? endendJust replace ARMOR_ID with the database ID number of the armor item that should prevent the damage.
class Game_Actor < Game_Battler def check_floor_effect return if armors.include?($data_armors[ARMOR_ID]) execute_floor_damage if $game_player.on_damage_floor? endendJust replace ARMOR_ID with the database ID number of the armor item that should prevent the damage.
There is no need for a script, as it is a default of the engine. In the armor tab of the data base, under Features, Sp-Parameter, select FDR = Floor Damage Rate, and set it to (I think) zero. That should do it.
Thanks ksjp17 that saved me a lot of trouble 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/script-to-enable-an-armor-item-to-prevent-swamp-tile-floor-damage.24387/