I came across this script on the default scripts:
#-------------------------------------------------------------------------- # * Determine Floor Effect #-------------------------------------------------------------------------- def check_floor_effect execute_floor_damage if $game_player.on_damage_floor? end #-------------------------------------------------------------------------- # * Floor Damage Processing #-------------------------------------------------------------------------- def execute_floor_damage damage = (basic_floor_damage * fdr).to_i self.hp -= [damage, max_floor_damage].min perform_map_damage_effect if damage > 0 end #-------------------------------------------------------------------------- # * Get Base Value for Floor Damage #-------------------------------------------------------------------------- def basic_floor_damage return 10 end #-------------------------------------------------------------------------- # * Get Maximum Value for Floor Damage #-------------------------------------------------------------------------- def max_floor_damage $data_system.opt_floor_death ? hp : [hp - 1, 0].max endI just want to know, what does floor damage actually do? its my first take on this so I am still clueless...
also, can someone clear me up about how would I use them or call them on my own method? say I started making a class...
i wanted to access the floor damage like...maybe adding a floor damage...or decreasing... maybe add a critical hit of one actor...
and the like.
I really hope someone can clear me up on this.
#-------------------------------------------------------------------------- # * Determine Floor Effect #-------------------------------------------------------------------------- def check_floor_effect execute_floor_damage if $game_player.on_damage_floor? end #-------------------------------------------------------------------------- # * Floor Damage Processing #-------------------------------------------------------------------------- def execute_floor_damage damage = (basic_floor_damage * fdr).to_i self.hp -= [damage, max_floor_damage].min perform_map_damage_effect if damage > 0 end #-------------------------------------------------------------------------- # * Get Base Value for Floor Damage #-------------------------------------------------------------------------- def basic_floor_damage return 10 end #-------------------------------------------------------------------------- # * Get Maximum Value for Floor Damage #-------------------------------------------------------------------------- def max_floor_damage $data_system.opt_floor_death ? hp : [hp - 1, 0].max endI just want to know, what does floor damage actually do? its my first take on this so I am still clueless...
also, can someone clear me up about how would I use them or call them on my own method? say I started making a class...
i wanted to access the floor damage like...maybe adding a floor damage...or decreasing... maybe add a critical hit of one actor...
and the like.
I really hope someone can clear me up on this.