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.

Variable/ Conditional Brach help

I want to have a conditional branch during battle that checks if the character is attacking or not. I assumed storing it as a variable would have been possible, but that may need a little script info. I only need it for one character, too. Actor 006.

Thanks
 

ltid07

Member

The way i do it is pretty simple but effective...

If you want to check if a character is attacking... simply set an event in the "troops" menu,
Condition: enemy's Hp below X percent.

therefore, if the enemy's hp does not fall below X percent the character is not attacking.

Make Sense????

=]
 
That won't work, ltid07. If you get the player below X percent and you want to continue checking if the player is attacking, every turn it will continue running.

There's probably a way in RGSS. By the way, are you using XP or VX?
 
This MAY work I dont really know never actually tried it BUT... set up the characters weapon to inflict a status effect and have the conditional branch state that if enemy is inflicted with [State] then [Whatever you had in mind] .  Then all you do if you dont want it to repeat is to cancel out the inflicted state so as not to get in the way of other states you may be able to inflict and have the event change pages.  There you have it.  That should work.
 

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