def execute_sensor_effect(enable,key)
@pattern = 0
@pattern_count = 0
$game_self_switches[key] = enable
if $game_self_switches[key]
@animation_id = 113 #动画ID
@wait_count = 20 #等待帧数
else
@animation_id = 114 #动画ID
@wait_count = 20 #等待帧数
end
self.refresh
end
end
def execute_sensor_effect(enable,key)
@pattern = 0
@pattern_count = 0
$game_self_switches[key] = enable
if $game_self_switches[key]
@animation_id = 113 #动画ID
@wait_count = 20 #等待帧数
else
@animation_id = 114 #动画ID
@wait_count = 20 #等待帧数
end
self.refresh
end
end