Lecode is the common event will trigger every turn 😛 ? Can you se this up to use common event once every activation?
and is there a way to do only auto remove state option?
ah ok.
I mean is there a way to auto_remove state, without auto_gain xD that state. I mean you got state by using skill, but this state drains MP if your mp is 0 then auto_remove will remove your state 🙂
Ho, I see. It's a nice idea. Added to the todo list. 😛
Perhaps I'll do a separate plugin for that feature, though.
It's great man 🙂 keep the good work but as I writed earlier, the common event trigger every turn xD (even when the state is already On my actor)
maybe my code is wrong:
<auto_trigger_common:2,true>
<auto_trigger>
a.hpRate() <= 0.3
</auto_trigger>
<auto_trigger_remove>
I just tested and the common event isn't triggered every turn.
Your code is okay, so perhaps something's wrong in the script or there is a compatibility issue.
Are you using some plugins that affect states ?
But, If the hpRate of your battler changes from a lower value than 0.3 to a higher value and vice-versa
every turn, it's normal. ( In this case the state is activated every turn, as for the common event )
Yup I when I was copying plugins I put Yur untilities above xD now it's working very good 😀 !
ah...
I just found
when you use GUARD command the common event repeats.
Hey there, awesome plugin!
I noticed something odd when I was using <auto_states:ID> on a piece of armor. When the armor is equipped, the auto states are added and removed correctly. However, the auto state is still on the actor when I remove the armor, then the state will stay applied to them, and will even ignore the normal removal conditions in the notetags. Am I doing something wrong?
Right now I have this on the armor:
<auto_states:48>and this on the state that it applies (state 48):
<auto_trigger>a.hpRate() == 1</auto_trigger><auto_trigger_remove>On a related note, would there be any way to limit the states to only be added during combat? I think having the state conditions be "in-combat-only" would solve my above issue. As of now they are added as soon as the character equips the item out of combat, allowing me to instantly remove the armor but keep the state applied.
Thanks!
Lecode check this out, my common event make flash of the screen and sound of thunder.
here is the Guard bug
I ran into a bug, where I called a common event and my game locks up. It only happens if it triggers during an in battle event. For instance, I have a battle where there is some dialogue and then I force the player to use a move. The move plays and the state triggers, but then the battle freezes before hitting the common event. I have done a lot of trouble shooting. I know it is the common event take from auto states that is causing the lock up. I tried removing the tag and battle progressed fine, I tried changing the common event and it still locked. This command works fine during normal battle just not when being trigged from an in battle event, such as after some dialog or from a forced action.
Actually scrap part of what I said, the bug only occurs when triggers from a battle action that was forced. In this instance I use the force battle action script command in the troop menu and force a battle to use a move that triggers a state. Then the game locks on the common event trigger from auto state.
Another edit, sorry. I tried forcing the state via other means in the troop scripting window. It appears to only be the force action command causing the issue.
Hello again.
Is it possible to make a trigger based on how much damage an actor takes, again regardless of much HP is left?
That way, I could make a Bleeding status effect that triggers if an actor takes damage equivalent to at least 25% of his/her Max HP.
Thanks.
Edit: By the way, I tried having a State be triggered when an Actor's TP is full.
The problem I'm having is that every time I start the game, while the actor's TP is zero (as it should be), he
has the state triggered anyway (which shouldn't be happening).
Here's the note tags I put in that state.
<auto_trigger>
a.tpRate() <= 1.0
</auto_trigger>
<auto_trigger_remove>
Hi! How do I auto trigger states randomly during battle? No conditions, just by plain probability. Thanks in advance!
Yup. Use this condition:
Math.random() <= xX is the percentage of chance.
Ex: Math.random() <= 0.5
means 50% of chance.
Hi Lecode,
This is awesome, I made it work, thanks! 😀 Another question, is this possible?
1. The autostate activates at least at the 2nd turn after battle has commenced.
Lecode i'm having a problem I have <auto_states:57> in the actor's note box and <auto_trigger: a.hpRate() > 0.9 <auto_trigger_remove> in the state note box but nothing is happening. Am I doing something wrong?
Very nice work, a lot of potential for cool stuff here, thanks!
I have a question, though: when exactly does the plug-in check whether conditions are met?
The issue I'm having is that I have a skill that puts a state on the caster and also triggers a common event that turns on a switch. The other characters all have automatic states triggered by that switch. When I use the skill, it's cast as normal and the caster gets his state immediately. However, the other characters don't get their auto-states until after their next action. This means that their next attack doesn't benefit from the state they're meant to have at that point.
The same thing happens with a different state, which is triggered by a game variable. Certain enemy troops contain an event that sets the game variable and should also trigger the auto-state. At the start of battle the variable updates right away, but the troops don't get their state until after they either take an action or are targeted by an action.
Does that make sense? Is that working as intended?
Thanks!