Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================
- # http://thiagodd.blogspot.com.br
- # [TSDA] Cancel Skill
- # --> Version 1.0
- # by thiago_d_d
- #
- #--------------------------------------------------------------
- # * Features
- #--------------------------------------------------------------
- # + With this script, some skills of your choice can be
- # canceled if the target has more inteligence than the user.
- #
- #--------------------------------------------------------------
- # * Install
- #--------------------------------------------------------------
- # Put this script above Main
- #
- #--------------------------------------------------------------
- # * Configuration
- #--------------------------------------------------------------
- # Specify the skills IDs below. Put only skills that can
- # be canceled.
- #==============================================================
- module TSDA
- CANCEL_IDS=[7,6,8]
- end
- #--------------------------------------------------------------
- class Game_Battler
- alias old_skill_effect_th skill_effect
- def skill_effect(user,skill)
- if TSDA::CANCEL_IDS.include?(skill.id)
- if user.int < self.int
- rate = user.int.to_f / self.int.to_f
- r = rand(nil)
- if rate <= r
- self.damage = "Cancelado!"
- return true
- end
- end
- end
- old_skill_effect_th(user,skill)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement