Issue with status ailments in Chrono engine

Yeah, mine was pretty quick to inflict poison so something is holding your attack state hostage or changing it. I edited above but you'll need to try a fresh Chrono Engine project and test from there. Hopefully it's not something that will take long.

Also, Altimit Movement and Cross Engine (and the other script patches) are not perfect so that could also cause issues.
Altimit and Cross Engine are not the problem. I put them in the new chrono engine i downloaded and the state applies without problems.
Is the attack doing damage, just not applying the state? Also what happens if you change the tool priority to same as characters instead of above?
Yes, the attack does the damage it should do, it just don´t apply the state. And nothing happens, put the priority adove, below or same is exactly the same result.
Yes, the attack does the damage it should do, it just don´t apply the state. And nothing happens, put the priority adove, below or same is exactly the same result.
Could you press F8 (or Fn then F8) after you attack an enemy and see if there's an error message?
Altimit and Cross Engine are not the problem. I put them in the new chrono engine i downloaded and the state applies without problems.
Yup... gonna have to do the plugins one by one then... Yay. I turn 4-6 off at a time and then narrow it down from there. Slightly quicker.
Could you press F8 (or Fn then F8) after you attack an enemy and see if there's an error message?
I´m pressing F8 and nothing happens. And i think my keyboard don´t have Fn.
And just to double check, the enemy you're testing on doesn't have poison immunity or anything like that?
And just to double check, the enemy you're testing on doesn't have poison immunity or anything like that?
No, it doesn´t have any inmunity.
Yup... gonna have to do the plugins one by one then... Yay. I turn 4-6 off at a time and then narrow it down from there. Slightly quicker.
I don´t know. I even copied all the plugins from the other project. Made a copy of mine. Move all the plugins with the configurations of that project, and still doesn´t work. The copy of my project have the same plugins and configurations that the other, and it´s the same. I´m completly out of ideas, honestly.
Nobody have ideas?
Could you press F8 (or Fn then F8) after you attack an enemy and see if there's an error message?
Hey, there is a way to inflict a status ailment with an event? Some kind of script call that inflict that ailment when the event of the tool map connect with the player or other event. Maybe that could be the solution. And maybe don´t inflict it immediately, but with a chance.
Hey, there is a way to inflict a status ailment with an event? Some kind of script call that inflict that ailment when the event of the tool map connect with the player or other event. Maybe that could be the solution. And maybe don´t inflict it immediately, but with a chance.
Or maybe using other plugin for that.
In the database try changing your weapon tool ID to 91 instead of 92
Nobody have ideas?
There is something wrong with your setup, or you broke the ChronoEngine code when you edited it. You need to isolate what exactly is going wrong. Is it all states not working or just poison? What happens if you manually add the state another way, like using the Add State: command in an event on the map? Did you turn off every plugin except the ChronoEngine plugins?

You also need to show the console log which would be F8 or F12
There is something wrong with your setup, or you broke the ChronoEngine code when you edited it. You need to isolate what exactly is going wrong. Is it all states not working or just poison? What happens if you manually add the state another way, like using the Add State: command in an event on the map? Did you turn off every plugin except the ChronoEngine plugins?

You also need to show the console log which would be F8 or F12
Oooooh, man. I finally got it. And was a super stupid thing. For whatever reason the state don´t apply if the skill is not tagged as "Certain hit". I noticed this searching for a skill that applies a status effect in the base Chrono engine. Seriously, i feel so stupid because it was something that simple.

And funny thing, the items don´t need to be in Certain hit to apply the status. I don´t understand, but at least it works now.
There is something wrong with your setup, or you broke the ChronoEngine code when you edited it. You need to isolate what exactly is going wrong. Is it all states not working or just poison? What happens if you manually add the state another way, like using the Add State: command in an event on the map? Did you turn off every plugin except the ChronoEngine plugins?

You also need to show the console log which would be F8 or F12
Also, remember this code?

for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
char = $gameMap.allEnemiesOnMap();
battler = $gameMap.allEnemiesOnMap().battler();
if(battler.isStateAffected(15)){battler.gainHp(-Math.floor(battler.mhp*0.003 + 12));
if(battler.isDead() && battler.isEnemy()){char.setDeadEnemy(char, battler);}}
battler.startDamagePopup();
battler.updateStateTurns(); battler.updateBuffTurns();
battler.removeStatesAuto(1); battler.removeStatesAuto(2);}

Is the one used to damage enemies when they are poisoned. But turns out, if is the poison what kills the enemy, the enemy don´t give any XP or money, the game doesn´t consider that kill as yours.
Also, remember this code?

for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
char = $gameMap.allEnemiesOnMap();
battler = $gameMap.allEnemiesOnMap().battler();

if(battler.isStateAffected(15)){battler.gainHp(-Math.floor(battler.mhp*0.003 + 12));
if(battler.isDead() && battler.isEnemy()){char.setDeadEnemy(char, battler);}}
battler.startDamagePopup();
battler.updateStateTurns(); battler.updateBuffTurns();
battler.removeStatesAuto(1); battler.removeStatesAuto(2);}

Is the one used to damage enemies when they are poisoned. But turns out, if is the poison what kills the enemy, the enemy don´t give any XP or money, the game doesn´t consider that kill as yours.
If there is only one player and that player is the only way an enemy can be poisoned it wouldn't be that hard to just give the player the money and XP whenever an enemy dies of poison. If you have multiple party members or the enemy can be poisoned another way it gets a lot more complicated.
If there is only one player and that player is the only way an enemy can be poisoned it wouldn't be that hard to just give the player the money and XP whenever an enemy dies of poison. If you have multiple party members or the enemy can be poisoned another way it gets a lot more complicated.
Is only one party member, how i can do that?
Code:
for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
char = $gameMap.allEnemiesOnMap()[i];
battler = $gameMap.allEnemiesOnMap()[i].battler();
 if(battler.isStateAffected(4)){battler.gainHp(-Math.floor(battler.mhp*.10));}
if(battler.isDead() && battler.isEnemy()){char.setDeadEnemy(char, battler); $gameParty.gainGold(battler.gold());
var oldLevel = $gameParty.leader()._level; $gameParty.leader().gainExpCN(battler.exp());
if ($gameParty.leader()._level > oldLevel) {$gameParty.leader().requestAnimation(Number(Moghunter.ras_levelAnimationID));}}
battler.startDamagePopup(); battler.updateStateTurns(); battler.updateBuffTurns();
battler.removeStatesAuto(1); battler.removeStatesAuto(2);}
This bypasses the normal gainExpGold function though so you won't get any gold or exp multipliers if you have traits or equipment that change that.
Code:
for (var i = 0; i < $gameMap.allEnemiesOnMap().length; i++) {
char = $gameMap.allEnemiesOnMap()[i];
battler = $gameMap.allEnemiesOnMap()[i].battler();
 if(battler.isStateAffected(4)){battler.gainHp(-Math.floor(battler.mhp*.10));}
if(battler.isDead() && battler.isEnemy()){char.setDeadEnemy(char, battler); $gameParty.gainGold(battler.gold());
var oldLevel = $gameParty.leader()._level; $gameParty.leader().gainExpCN(battler.exp());
if ($gameParty.leader()._level > oldLevel) {$gameParty.leader().requestAnimation(Number(Moghunter.ras_levelAnimationID));}}
battler.startDamagePopup(); battler.updateStateTurns(); battler.updateBuffTurns();
battler.removeStatesAuto(1); battler.removeStatesAuto(2);}
This bypasses the normal gainExpGold function though so you won't get any gold or exp multipliers if you have traits or equipment that change that.
For me it´s fine. This works as intended, the only thing is that when you level up, the level up animation don´t appear, but is not a big problem for me.
For me it´s fine. This works as intended, the only thing is that when you level up, the level up animation don´t appear, but is not a big problem for me.
Change
Code:
$gameParty.leader().requestAnimation(Number(Moghunter.ras_levelAnimationID))
to
Code:
$gamePlayer.requestAnimation(Number(Moghunter.ras_levelAnimationID))

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-status-ailments-in-chrono-engine.161865/