State: Receive(another)state when hero takes damage

● ARCHIVED · READ-ONLY
Started by MrB 3 posts View original ↗
  1. Hello everyone,

    I want my hero to have a chance of obtaining a state, whenever he takes damage.
    I figured doing this through a state would be easiest.. It would look like this:


    If: Target Has state X
    &: Target Has been Attacked
    &: Chance it succeeds = true
    Then: Apply state Y


    I've been looking around for plugins that do that for me.. the closest I got was YanFly's Auto Passive States plugin, but even that plugin does not have the condition "when target takes damage".


    I figured I could use lunatic mode to do something like this:

    <Custom Passive Condition>
    if (user takes damage) {
    condition = true;
    } else {
    condition = false;
    }
    </Custom Passive Condition>


    But:
    - I don't know how to say "user takes damage" in Java-scriptian
    - This is a 100% occurance, I want it to be a chance(20% or something)
    - I don't think it'll work anyways, since this will only apply the state once, and not over and over again(What I want)

    (Actually, now I am typing this, I might be able to fix those through a common event.. I have one running at the end of each turn anyways, it could fit in there maybe.)

    Anyways, I already have a plugin that allows states to stack, so I'm good in that department.

    If anyone could help me out, that would be amazing!
  2. This needs to move to either JS Plugin Requests, if you want a different plugin, or to Javascript/Plugin Support if you want to use Lunatic States/Auto Passive States. Your post is not very clear what it is you would prefer.

    Could you please clarify so that this can go to where it should be.
    Thanks.
  3. Oh sure, sorry.

    Uhm.. Actually I want something that works haha.
    But I guess if I could solve it through Lunatic mode, that would be the easiest