I've created a Drown State which encases the actor in a water sphere. It causes damage over time and is dispelled by attacking the actor to burst the bubble.
It seemed to work, but I wanted to give it a bit of flavour buy adding a drowning sound effect every turn the state is active. I had the sound effect encased in encased in a <Custom Regeneration Effect> notetag in the State, advice I found online, but it doesn't seem to work. I put in a console.log in the notetag and it wasn't being called. Further digging seems to indicate <Custom Regeneration Effect> doesn't exist in my VisuStella MZ plugins.
What is the best way to run a piece of code each time a state is active, especially a slip damage one? I have the VisuStella 8-Waves collection if that helps.
It seemed to work, but I wanted to give it a bit of flavour buy adding a drowning sound effect every turn the state is active. I had the sound effect encased in encased in a <Custom Regeneration Effect> notetag in the State, advice I found online, but it doesn't seem to work. I put in a console.log in the notetag and it wasn't being called. Further digging seems to indicate <Custom Regeneration Effect> doesn't exist in my VisuStella MZ plugins.
What is the best way to run a piece of code each time a state is active, especially a slip damage one? I have the VisuStella 8-Waves collection if that helps.
