When using a enemy ID above 30 I recieve the following error under the XAS - System Code
Here is a clip from the code and it highlights the last line.
#Skill Effect
def skill_effect(user, skill)
@actor = $game_party.actors[0]
self.critical = false
if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
return false
end
effective = false
effective |= skill.common_event_id > 0
hit = skill.hit
if skill.atk_f > 0
hit *= user.hit / 100
end
Line 864 is the line it crashes on.
How do i fix this problem please help
Here is a clip from the code and it highlights the last line.
#Skill Effect
def skill_effect(user, skill)
@actor = $game_party.actors[0]
self.critical = false
if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
return false
end
effective = false
effective |= skill.common_event_id > 0
hit = skill.hit
if skill.atk_f > 0
hit *= user.hit / 100
end
Line 864 is the line it crashes on.
How do i fix this problem please help