Ellye's State Damage

Firstly, I'd like to express my sincerest appreciation for this plugin. As such, I'd really like to use it!

This doesn't seem to have been reported yet, so I'm not entirely sure what's going on... probably an error on my part but here goes:

Plugins being used: Nothing BUT Ellye's State Damage.

I had some states note tagged with custom formulas to use with this plugin. I haven't gotten around to actually applying those states yet. However, if any actor receives a state including death/KO, the game can no longer be saved. In fact it seems to corrupt my save files entirely, making them entirely unusable! (To clarify, the save menu that shows up in game. Any attempt to save after an actor has had a state added is met with nothing but a buzzer. Restarting the game then erases all save data.) Then I just removed all note tags from my states and tried again. The problem persisted.

To cut a long story short, eventually I hit that little F8 button. Every attempt to save output the following error:

Error: Object too deep {stack: "Error: Object too deep↵    at Function.JsonEx._enc…nts/Games/Project%20Test/js/rpg_core.js:7774:35)", message: "Object too deep"}

It references rpg_managers.js:335

For some reason it seems this script is messing with the core scripts at some point or another or is otherwise creating something it does not like, or maybe I'm just doing something wrong.

EDIT 1:

Hmm, works fine in a fresh project though, for some reason. I guess I'll do some more digging.

EDIT 2:

Okay, still able to reproduce the same error even in a completely fresh project.
Hi, I've updated the plugin - can you check if it works properly now, on a fresh project?

Thanks!
Thanks for all your efforts Ellye.

Do you plan to make your script compatible with Yanflys' ATB? I just double checked and its still breaking the ATB guage and timing.

Again, thanks for your time. 😉
Thanks for all your efforts Ellye.

Do you plan to make your script compatible with Yanflys' ATB? I just double checked and its still breaking the ATB guage and timing.

Again, thanks for your time. 😉
I'll try to, after I fix a few other pending issues on this plugin.
Hi Ellye do you know why some <formula:a.luk*0.23> does 0 damage while others <formula:a.luk*0.23> deals 56 damage with a character of 245 LUK.

Same element on same monster, variance is 1.

I have set an actor with a 50% chance to apply a bleed effect with  <formula:a.luk*0.25>  and it ticks for 0.

I did some testing it turns out both a and b are pulling the Luk state from the monster for some reason.

A monster with  100 luck will take 25 damage from the dot regardless of a or b in the a.luk.

The wierd thing is it only apply to some of the  <formula:a.luk*x> formulas.

It turns out the 56 with working <formula:a.luk*0.23> dot was applied from a skill.

and the 0 damage dot was applied via normal attack.

It looks like that skills with <formula:a.luk*0.23> are working intended but normal attack pulls stats from the monster regardless of <formula:a.luk*x> or <formula:b.luk*x>
Hi, I've updated the plugin - can you check if it works properly now, on a fresh project?

Thanks!
From what I can tell, there does not seem to be any further issues. I did get an error from the battle manager earlier once but I seem unable to reproduce it. Might not be from your plugin anyway. This was all on a fresh project, using your plugin only. All I'm getting now is your console output from line 99 : ).

To add further, the issue also appears to be fixed in my main project, both with and without additional plugins! Looks great! Thank you so much for looking into this!
From what I can tell, there does not seem to be any further issues. I did get an error from the battle manager earlier once but I seem unable to reproduce it. Might not be from your plugin anyway. This was all on a fresh project, using your plugin only. All I'm getting now is your console output from line 99 : ).

To add further, the issue also appears to be fixed in my main project, both with and without additional plugins! Looks great! Thank you so much for looking into this!
Thanks a lot!

And thanks for pointing out that I forgot a console output there, I'll clean that up!
I'd like to report a "bug"...

If you try to make a formula using the operators '>' or '>=', like this one:

<formula:if( a.agi > b.agi){ 4 * a.atk } else { 4 * a.atk - 2 * b.def }>
 

it won't work, because of the way meta data on notes is handled by the core script. The way the formula is written in the example above, state.meta.formula will be 'if (a.agi', due to the '>' that signals the meta data end.

Users of your plugin can avoid this by simply not using the operator '>' or '>=', or you could change line 164 from:

var formula = state.meta.formula;to something like:

var formula = state.note.match(/<formula🙁.*)>/)[1];I'm not sure if this is the best fix, but it worked anyway...

BTW, thanks a lot for this wonderful plugin!
.

I'd like to report a "bug"...

If you try to make a formula using the operators '>' or '>=', like this one:

<formula:if( a.agi > b.agi){ 4 * a.atk } else { 4 * a.atk - 2 * b.def }>
 

it won't work, because of the way meta data on notes is handled by the core script. The way the formula is written in the example above, state.meta.formula will be 'if (a.agi', due to the '>' that signals the meta data end.

Users of your plugin can avoid this by simply not using the operator '>' or '>=', or you could change line 164 from:

var formula = state.meta.formula;to something like:

var formula = state.note.match(/<formula🙁.*)>/)[1];I'm not sure if this is the best fix, but it worked anyway...

BTW, thanks a lot for this wonderful plugin!
Hmm, that's a good point. Hadn't thought about that. I guess I might use RegEx to parse the Note field instead of using the default meta.data then. I'll remember to do this when I rework this plugin!

Hi Ellye do you know why some <formula:a.luk*0.23> does 0 damage while others <formula:a.luk*0.23> deals 56 damage with a character of 245 LUK.

Same element on same monster, variance is 1.

I have set an actor with a 50% chance to apply a bleed effect with  <formula:a.luk*0.25>  and it ticks for 0.

I did some testing it turns out both a and b are pulling the Luk state from the monster for some reason.

A monster with  100 luck will take 25 damage from the dot regardless of a or b in the a.luk.

The wierd thing is it only apply to some of the  <formula:a.luk*x> formulas.

It turns out the 56 with working <formula:a.luk*0.23> dot was applied from a skill.

and the 0 damage dot was applied via normal attack.

It looks like that skills with <formula:a.luk*0.23> are working intended but normal attack pulls stats from the monster regardless of <formula:a.luk*x> or <formula:b.luk*x>
Thanks for reporting this!

So if you use you formulas on a Skill it works as normal, but if it's a normal attack, it always get stats from the monster. I'll take a look on why this is happening.
Any update on the fix?  🙂
Sorry for the delay! Those larger changes I can only really work with in the weekend, and today I've been working on my ATB plugin.

I'll try to solve at least the more pressing issues of this one tomorrow.

Edit / Update: Sunday was quite a bit busier than I expect, so unfortunately I couldn't work much here.
Hi Ellye,

Thanks for making another great plugin. I am running into one issue with it: when a state ticks while on the field, the game crashes with the error "Cannot read property 'refresh' of undefined". This is in an otherwise blank project. Here's what I have in the notebox for the state:

 

<formula:2><element:1><variance:0>I tried different values of all three variables, with the damage popup set to 0 and 1. I also tried it with the tags for heal, mp heal, and mp damage. I got the same result every time. Here's the console log:

bug2.png


Thanks again for making this. Hope this helped.
Hey, thanks for making a great plugin first of all.  However, I am running into issues with it.  I am using a bunch of Yanfly plugins as well as your plugin.  Before I installed Yanfly's plugins yours worked just fine and my poison state would tick for the appropriate damage.  Now, after I installed Yanfly's stuff it doesn't tick at all. 
Hi!

Like I mentioned a few posts ago, I've been re-working quite a bit of this plugin.

Unfortunatelly, I really am not having a lot of time to actually test the results.

So, if anyone might want to help, I've uploaded a new, separated, beta version of this plugin here:

http://pastebin.com/kEzn0y9D

It might solve some of the current bugs, and might introduce some other new bugs. Any feedback on this new version would be helpful! I'll be working more on it in the coming days.
Hi!

Like I mentioned a few posts ago, I've been re-working quite a bit of this plugin.

Unfortunatelly, I really am not having a lot of time to actually test the results.

So, if anyone might want to help, I've uploaded a new, separated, beta version of this plugin here:

http://pastebin.com/kEzn0y9D

It might solve some of the current bugs, and might introduce some other new bugs. Any feedback on this new version would be helpful! I'll be working more on it in the coming days.
I'll give it a try bit later. Be back with results. 🙂

EDIT:

I have tried with 2 states. One regen and one degen, Both worked when I used ATB script (ticked and took effect same time as a normal MP regen trait i have with some classes). Only issues I had were:

- there were no pop-ups

- the formula returned a non-integer and i had my regen healing 60.25 HP. not sure if this was affected by your plug-in.

How I knew it worked - HP was healed and enemies died after a turn tick (had the degen formula high to verify that it was working).

I hope that helps!
I'll give it a try bit later. Be back with results. 🙂

EDIT:

I have tried with 2 states. One regen and one degen, Both worked when I used ATB script (ticked and took effect same time as a normal MP regen trait i have with some classes). Only issues I had were:

- there were no pop-ups

- the formula returned a non-integer and i had my regen healing 60.25 HP. not sure if this was affected by your plug-in.

How I knew it worked - HP was healed and enemies died after a turn tick (had the degen formula high to verify that it was working).

I hope that helps!
Thanks! Popups are showing up for me, I'll take a look at what it might be causing them to not show up there; and also at those decimal results.

The ATB plugin you were using together with this one was mine or Yanfly's?
Thanks! Popups are showing up for me, I'll take a look at what it might be causing them to not show up there; and also at those decimal results.

The ATB plugin you were using together with this one was mine or Yanfly's?
Ah, the ATB plugin was Yanfly's.
Ah, the ATB plugin was Yanfly's.
Thanks, I'll test with it later on too. 🙂
Thanks, I'll test with it later on too. 🙂
Hey, I have tried moving this plug-in to top of other plug-ins (non-YEP) ones and the pop-up shows. But the calculations still return decimals and it shows as pop-ups too (except no dots, so 60.25 showed as 60 25). I have tried disabling those non-YEP plug-ins and had same decimal results.
I've uploaded the fix to the decimal damage (http://pastebin.com/kEzn0y9D), I'll be looking into compatibility and a few other issues.
I've uploaded the fix to the decimal damage (http://pastebin.com/kEzn0y9D), I'll be looking into compatibility and a few other issues.
Just updated and tested it. Worked nicely! Good job! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ellyes-state-damage.48631/