i have this script for changing the states from names to icons
but that only works for the actors. help me, how do i work the same thing to the enemies???
Code:
#--------------------------------------------------------------------------
# Window_Base.draw_actor_state Modification
#--------------------------------------------------------------------------
# * Draw State
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : draw spot width
#--------------------------------------------------------------------------
def draw_actor_state(actor, x, y, width = 120)
# calc space
if actor.states.size > 5
space = ((width - 24) / (actor.states.size - 1)).floor
else
space = ((width - 24 * 5) / 4).floor + 24
end
# draw states
for i in actor.states
if $data_states[i].rating >= 1
bitmap = RPG::Cache.icon("state_" + $data_states[i].name)
src_rect = Rect.new(0, 0, 24, 24)
self.contents.blt(x, y + 6, bitmap, src_rect, 170)
x += space
end
end
end