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.

Script in Enemy Troop to Determine if Actor is Defending

I noticed for conditional branches you can have a condition be a script...

Is it possible to make a script to use in here that checks to see if an actor is defending while in battle?  (Or has chosend to defend?).

Thank you in advance.
 
Code:
(a = $game_actors[actor_id]).action.kind == 0 && a.basic == 1
#or
(a = $game_party.actors[actor_index]).action.kind == 0 && a.basic == 1

The first one lets you choose actor by actor id. The second, the position in battle.
 

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