Variables - Even with variable in between two values

Hello there people.

I need some help while programming an event during a fight.

Here's what I wish for it to do:

The main character is attempting to defend an artifact, while the enemy's attacks will not only damage him but even the artifact itself.

The damage to the artifact is done through a variable, each enemy attack adds a +1 to such value and the player can use a particular skill to heal the artifact of 2 damage values.

Now, the situation gets complicated when the artifact starts reaching some "critical levels", that are supposed to give the player a certain buff too:

-4 Levels of Damage - Surface breached

Defender Buff level 1

-8 Levels of Damage - Core Exposed

Defender Buff level 2

What I cannot do is to set the even to recognize the values in between the values... What I would like to have is something like this:

Conditional Branch:

When Variable "Artifact" is in between 4 and 7, give the player the Buff "Defender - Level 1"

Conditional Branch:

When Vabriable "Artifact" in between 8, give the player the Buff "Defender - Level 2" and remove "Defender - Level 1"

My problem is that I cannot set the "in between" calculation with the normal conditional branch. Any suggestions on how to handle this?

Thanks!
yes, you can - you need a sequence of conditional branches. One conditional branch for checking >4, and one logic level deeper a second conditional branch testing for >7.


If it is not greater than seven, it is between 4 and 7...
I've moved this thread to Support, RPG Maker VX Ace. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/variables-even-with-variable-in-between-two-values.42639/