Hey all,
This is my first script, so it may be rather primitive. Let me know what you think, critique is always appreciate.
Break Status
Break status, in my diction, is a Status Ailment where the next attack will "Break" or Insta-kill the actor/enemy.
example:
Instructions
Cut and paste in Materials.
Type in which Status ailments are Breakable.
Compatibility
This should work with anything. I've yet to see any issues.
Hope this is useful guys. If you use it, just slap my name in the credits or something.
~Ikos out :thumb:
This is my first script, so it may be rather primitive. Let me know what you think, critique is always appreciate.
Break Status
Break status, in my diction, is a Status Ailment where the next attack will "Break" or Insta-kill the actor/enemy.
example:
- Ikos is inflicted with Frozen (tagged for Breakable)
- Slime attacks Ikos
- Ikos falls
Instructions
Cut and paste in Materials.
Type in which Status ailments are Breakable.
Code:
=begin
module Ikos
BreakStates = [9] #Enter the ID of the desired Breakable Status here
end
class Game_Battler
alias_method :ikos_breakstate_oldhp, :hp=
def hp=(health)
for i in 0...Ikos::BreakStates.size
if @states.include?(Ikos::BreakStates[i])
health = 0
break
end
end
self.ikos_breakstate_oldhp(health)
end
end
Compatibility
This should work with anything. I've yet to see any issues.
Hope this is useful guys. If you use it, just slap my name in the credits or something.
~Ikos out :thumb: