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.

Change switch based on whether equipment is equipped or not?

kkxkn

Member

Hi,

Just to give the setup, I'm using VXA, with the Yanfly core, battle and equip systems and the Yanfly CTB battle system addon and order gauge. Now, the order gauge has an option to show or hide depending on whether a switch is set.

What I want to be able to do is tie this switch to a piece of equipment. So, when the equipment is equipped the switch will turn on, when it's removed the switch will turn off. Ideally this would be immediate, still inside the Equip scene. I don't mind whether the equipment ID is hardcoded or detected by a notetag.

Just to be clear, it doesn't matter *who* the equipment is on, only whether or not it's on someone in the active party. It also does not need to have any different effects when more than one is equipped.


EDIT: Also, if a hacky solution is easier, the switch only actually matters in battle - so instead of trying to update on party changes, forced equipment changes, etc, it could just check at the start of battle and in the equip scene (equip scene can be called from in battle, but only for one character at a time).
 

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