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.

Mr.Mo's ABS - casting skills

Hiya, I made a "skill tab" for Mr.Mo's ABS, and copied the cast skill method so I could make the skills cast when you click the buttons:

Code:
class MrMo_ABS
  def cast_skill_wyatt(skill_id)
    key = skill_id
    #p key
    if STATE_EFFECTS
      #for i in $game_party.actors[0].states
      #  return if STUN_EFFECT.include?(i) or PARALAYZE_EFFECT.include?(i) or MUTE_EFFECT.include?(i)
      #end
      id = @actor.skill_keys[key]
      if RANGE_EXPLODE.has_key?(id)
        return player_explode(id)
      else
        return player_skill(id)
      end
    end
  end
end

The problem I have, is it still casts the skill on the enemy if they are dead. Does anyone know a condition I can put in here, to test if the enemy is dead, so that the skill wont cast?
 

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