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!
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!