Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
Original title: Checking for a state in an evented battle
Source forum path: Game Development Engines > Legacy Engine Support > RPG Maker MV Support
Summary
So consider the following image: { "lightbox_close": "Close", "lightbox_next": "Next",
Archived First Post
So consider the following image:
Protected download
We see here that if Enemy 1 has 100% or less hp that we then loop and in said loop check if this enemy has the state Charmed applied.
This wont work, because the loop is always running, so the battle and the game essentially break. If I remove the loop then this page is run once, and because at the time it's run he doesn't have charmed attached to him, the console will be show the message as shown above.
If at any point in the battle he has charmed applied, I never see the message box.
What is the proper way to say: If enemy has x health and state y applied, then do z and have it, through out the battle, check: "do you have this state? No, carry on. Else, lets do something."
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.