Marked (a la Darkest Dungeon)

I'm sorry if this has been asked before, but my searches have come up with very little.


I am trying to figure out a "Marked" state not unlike Darkest Dungeon or in some ways 4th edition D&D.


I essentially want certain skills to deal additional damage or trigger additional effects if targeting someone with Marked.


My thinking is that the skill itself needs a conditional component that checks for Marked and proceeds accordingly...


Any help would be greatly appreciated!
nothing that complex is needed.


Just make "Marked" a state that increases the damage rates for the damage types or damage elements that you want to be effected by the state.


(that is done by adding the correct traits to the state)
Or if this is similar to the dnd backstab where a rogue/sorcerer can use it on a spell make it a condition and put the condition in the damage formula via an if statement.


If target has (desired state) use


(Formula A.) else use (Formula B.)


Note this works both ways and any one with the skill gets the buff.


Unless you do two checks like this...


If user is (desired class) {


If target has (desired state) {


use (formula A)


}} else {


use (Formula B.)}
@Sekunri The if/else is exactly what I needed. Did more hunting, and discovered a wide variety of parameters and whatnot for the damage formulae.


if (I already knew about said goodies)


      {


            I completely forgot;


      }


else


      {


            I learned some useful new skills and tools;


      }
Haha. Glad I could help. If you need anything more specific that I may be able to help with feel free to send me a message.
I believe your question has been answered so Andar you're free to close this.

Original thread: https://forums.rpgmakerweb.com/threads/marked-a-la-darkest-dungeon.73310/