Injured Status
Version: 1.02
Introduction
So, I requested this awhile ago, and being the impatient little bitch that I am... I couldn't help but figure it out myself. Basically, it adds a status (injured, for example) once your battler's hp gets to 25% or lower. Hopefully someone might find this useful as well.
Edit- Now the injured state is crisis_color!
Screenshots
Demo
Nah, no use right?
Script
Instructions
Find Appropriate Classes at the top of your scripts
Find Appropriate Methods
Replace the original methods with my methods
Create whatever status you'd like, and change the number in my script to the number your "injured" status is.
FAQ
Quite easy really.
Compatibility
There was a problem with my alias, because I suck at them -_-. However, there really shouldn't be any compatibility issues...
Credits and Thanks
Da2DBM's limited patience :P
Version: 1.02
Introduction
So, I requested this awhile ago, and being the impatient little bitch that I am... I couldn't help but figure it out myself. Basically, it adds a status (injured, for example) once your battler's hp gets to 25% or lower. Hopefully someone might find this useful as well.
Edit- Now the injured state is crisis_color!
Screenshots
http://img154.imageshack.us/img154/7043/injuredre8.png[/IMG]
Demo
Nah, no use right?
Script
Code:
def hp=(hp)
@hp = [[hp, maxhp].min, 0].max
# Da2dbm injured state
if self.hp <= self.maxhp / 4
add_state(2) # change number to whatever state you want
else
remove_state(2) # use same number two lines up
end
# add or exclude incapacitation
for i in 1...$data_states.size
if $data_states[i].zero_hp
if self.dead?
add_state(i)
else
remove_state(i)
end
end
end
end
Code:
def draw_actor_state(actor, x, y, width = 120)
text = make_battler_state_text(actor, width, true)
self.contents.font.color = actor.hp == 0 ? knockout_color :
actor.hp <= actor.maxhp / 4 ? crisis_color : normal_color
self.contents.draw_text(x, y, width, 32, text)
end
Instructions
Find Appropriate Classes at the top of your scripts
Find Appropriate Methods
Replace the original methods with my methods
Create whatever status you'd like, and change the number in my script to the number your "injured" status is.
FAQ
Quite easy really.
Compatibility
There was a problem with my alias, because I suck at them -_-. However, there really shouldn't be any compatibility issues...
Credits and Thanks
Da2DBM's limited patience :P