===============================================================================
Credits
KK20 : Creating this script edit
Blizzard : So that you can use this script in BlizzABS (duh
)
Sin86 : For the idea and bug report
===============================================================================
=end
class Map_Enemy < Map_Battler
<----- {This is the Error Line} #----------------------------------------------------------------------------
# triggered?
# trigger_id : The ID of the trigger type (i.e. CETPlayerTouch, CETWeapon)
# object_id : The ID of the object (i.e weapon ID, skill ID, item ID)
# Returns if the event was triggered by a certain trigger.
#----------------------------------------------------------------------------
def triggered?(trigger_id, object_id = nil)
return (@event_trigger[0] == trigger_id) if object_id.nil?
return @event_trigger == [trigger_id, object_id]
end
#----------------------------------------------------------------------------
# Initialization
# ** Initialize variable 'event_trigger'
#----------------------------------------------------------------------------
alias init_map_enemy_after initialize
def initialize(map_id, event, id = 0, group = 0, attributes = 0x00,
move = false, immortal = false, full_passable = false,
custom = false, delay = 40, view = 5, hear = 40, nojump = false)
@event_trigger = [-1, -1]
init_map_enemy_after(map_id, event, id, group, attributes,
move, immortal, full_passable,
custom, delay, view, hear, nojump)
end