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.

Disabling Attack and Setting a Var to Target ID

There are two things that I've been trying to do, and that ought to be done quite simply, but I can't figure them out. First, I need to disable the "Attack" command when a character has no weapon equipped. I modified the Game_Battler script so that one character would get ATK instead of PDEF from shields (an archer that equips arrows in the weapon slot and bows in the shield slot). Unfortunately, that makes it so that you don't have to equip arrows to attack and do damage. Another solution I thought of is to prevent you from equipping nothing in the weapon slot, but again, I don't know how to do that. Which do you think would be easier, and how would I do it?

The other one is somewhat simpler, but I still can't solve it. I'm working on a primarily event-based steal system (none of the script based ones I found do what I want), but I need to figure out how to set a variable to the ID of the target of the steal skill. I tried inserting $game_variables[1] = self into Game_Battler, but nothing happened (no bugs, either). What do I do?
 

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