Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

error under the XAS - System Code

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
 
I think its 2nd before end
We set to enemy id
And put it on enemy 31
Using any attack or skill it crashes on hit
We used a attack I believe useing weapon T - MOG99 weapon ID 8
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top