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.

menu and skills

I have most of my script made now, the only problem when i use a skill through the menu

I have it set up so that a variable is increased by 1 when the skill is used, but i only want that to happen in a battle, at the moment it also happens in the menu.

The modification i have is in game_battler 3

under
Code:
      # Substract damage from HP
      last_hp = self.hp
      self.hp -= self.damage
      effective |= self.hp != last_hp

i have

Code:
      if user.is_a?(Game_Actor) and skill.id == 1
        $game_variables[9] += 1
      end

I dont want to stop the skill from being used in the menu, just stop the variable being added to
 

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