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