States' Auto Trigger

Yup, you can use:

result().missedor, btw:result().evadedThat's a nice idea.

Also I think I'll change the notetag for more flexibility.

Like:

<auto_trigger>a.isLearnedSkill(10) && a.result().evaded&& v[10] === 5</auto_trigger>
This sounds like it could work with what I was talking about too. With that flexibility you could probably check current state I imagine. Anyway though I am still having issues getting it to work. Would you mind looking at some screenshots of my current build.

https://drive.google.com/file/d/0BzcZIvfMt_4_eFd2eUR0cDR6UUk/view?usp=sharing

Thanks again in advanced.
That's strange. Can you send me a screenshot of your plugin manager ?

I don't think it's due to an incompatibility issue, but who knows...

Also, try to change that number with a lower value. Like 10. Or even 0.

To see is that enemy can really reaches 100 tp.
https://drive.google.com/file/d/0BzcZIvfMt_4_QUVNU0dyb2QtOGs/view?usp=sharing

Here you go. I am using a lot of plugins and thought I might be getting some weird overlap somewhere. I have done some simple edits to the .js files but nothing around the states functions.
Just tried turning on and off a variety of plugin and still nothing. I am going to dig through your .js file and make sure something didn't get messed up in it when I downloaded it. At this point I am pretty stumped.
Did you see my edit ?

Also, try to change that number with a lower value. Like 10. Or even 0.

To see is that enemy can really reaches 100 tp.
Still not working. This is frustrating. Is anyone else having issues with this and other plugins?

I just tried setting it to true to see if it was event passing correct info. Plugin is functioning, enemy entered state at start of fight. So that narrows it down to something it doesn't like with the function.
Still not working. This is frustrating. Is anyone else having issues with this and other plugins?

I just tried setting it to true to see if it was event passing correct info. Plugin is functioning, enemy entered state at start of fight. So that narrows it down to something it doesn't like with the function.
i haven't tried using the plugin, i'm really looking forward to implementing this plugin into my game but it seems like you've been having a rough time trying to make it work, so it leaves me a little skeptical on compatibility with other plugins that I must have atm. I'll keep an eye on this plugin until all the kinks are sorted out and come back 🙂
i haven't tried using the plugin, i'm really looking forward to implementing this plugin into my game but it seems like you've been having a rough time trying to make it work, so it leaves me a little skeptical on compatibility with other plugins that I must have atm. I'll keep an eye on this plugin until all the kinks are sorted out and come back 🙂
Well It magically started working for me. It didn't seem to like '>' or '<' symbols in my particular function. I got it to work with '=='. Bizarre.
Well It magically started working for me. It didn't seem to like '>' or '<' symbols in my particular function. I got it to work with '=='. Bizarre.
Hmm... true. Looks like it considers > and < in formulas as tag open/close symbols. Difinitelly need to change definition method to <auto_trigger></auto_trigger>

Ah, yeah. Also one more suggestion.

What about making it able to apply some custom code executed when state is active. For example making it so while state is active character will lose... like... 10 MP for each attack it takes? Just an example, but such things will be great.
Hmm... true. Looks like it considers > and < in formulas as tag open/close symbols. Difinitelly need to change definition method to <auto_trigger></auto_trigger>

Ah, yeah. Also one more suggestion.

What about making it able to apply some custom code executed when state is active. For example making it so while state is active character will lose... like... 10 MP for each attack it takes? Just an example, but such things will be great.
It all makes sense now. Yeah this needs changed. 
Yeah, something is wrong with the tag with ">" symbol.

I'm surprised that the .meta function is weak at that point....

Seems like I'll use a custom regex matching like yanfly does.

~.~
actually it's kinda easy to avoid, just write <auto_trigger: 0.5 <= a.hpRate() >

instead of <auto_trigger: 0.5 >= a.hpRate() >
Would be cool if you could specify actor/enemy specific auto states, some sort of "Last Stand" thing. 🙂
New Version:

Code:
#-----------------------------------------------------------------------------# Version History#-----------------------------------------------------------------------------# - 1.0 : Initial release# - 1.1 : Improved auto_trigger tag#		  <auto_states:x> can be now applied on classes and equipements.#		  New Parameter: Global Auto States#		  Can now play an animation#                Can now start a common event
b21ec850087bcb2c7aaf56a38899ab55.png

https://gyazo.com/b21ec850087bcb2c7aaf56a38899ab55

Something gone wrong it seems
Nice update, especially thanks for the animations-option 😉

Another suggestion, now that we can apply them on equipment, the option <remove_auto_state:x> would be awesome.

E.g. creating a "Blessed Ring", which removes the auto state "wounded" which would be automaticly applied to every actor under 20% HP.
Lol, my bad. I forgot to said that now the plugin requires my Core plugin >.>

Wait a moment.

Nice update, especially thanks for the animations-option 😉

Another suggestion, now that we can apply them on equipment, the option <remove_auto_state:x> would be awesome.

E.g. creating a "Blessed Ring", which removes the auto state "wounded" which would be automaticly applied to every actor under 20% HP.
Nice idea.
Nice update, especially thanks for the animations-option 😉

Another suggestion, now that we can apply them on equipment, the option <remove_auto_state:x> would be awesome.

E.g. creating a "Blessed Ring", which removes the auto state "wounded" which would be automaticly applied to every actor under 20% HP.
That's a great idea. And thank you for the update Lecode!
Dependencies

My Utility Plugin.

Insert LeStateAutoTrigger below that plugin.
Voila.

EDIT: @below

Fixed.
It does not let me to download it. It asks for permission

Original thread: https://forums.rpgmakerweb.com/threads/states-auto-trigger.49753/