Well, I was searching the Support topics to found anything that can help me, and i found this:
viewtopic.php?f=155&t=61837
Well, and inside I found this:
This code works very well for me, I add Hp to the event and works, but when my character goes to another map, and return to the old map and check the event
viewtopic.php?f=155&t=61837
Well, and inside I found this:
Code:
class Abs_Enemy
attr_accessor :hp
def initialize(hp = 100)
@hp = hp
end
end
class Game_Event
attr_reader :abs_enemy
alias_method :seph_absenemysetup_gmevt_refresh, :refresh
def refresh
seph_absenemysetup_gmevt_refresh
@abs_enemy = nil
return if @erased || @list == nil
for ec in @list
next unless ec.code == 108
if ec.parameters[0].upcase.include?('ABS::ENEMY')
parameters = ec.parameters[0].split
@abs_enemy = Abs_Enemy.new(parameters[1].to_i)
break
end
end
end
end
This code works very well for me, I add Hp to the event and works, but when my character goes to another map, and return to the old map and check the event