So I started this discussion here on this old thread, but it is against the rules, so I created a new thread instead.
The plugins I'm using are from Yanfly:
Target Core
Selection Control, and extension from Target Core
Battle AI Core
Row Formation
Instant Cast
- The problem:
I have a <Custom Select Condition> from an enemy that is bugging my party.
The <Custom Select Condition> blocks the use of some skills from my party.
- Part 1: The Skill and the <Custom Select Condition> setup
An enemy has a skill that Targets Everybody:
AND this skill Targets Everybody excepts the user, using the following code:
If you remove the <Target: Everybody> the bug still happens. Only removing the <Custom Select Condition> that makes the bug not happen.
Here is the skill:
- Part 2: How <Custom Select Condition> affects the party
I am using Battle AI Core without the Dynamic Actions options. This means that the AI decides to use a skill at the beggining of a turn, before I even select any skill to use.
I changed the AI of this enemy to ALWAYS use this skill, so I can replicate the bug.
When it is the turn for the enemy to use the bugged skill, the skill blocks all skills from my party that can't target the user. Not only that, it only happens when the enemy is the ONLY ENEMY in combat. If there are more enemies on the field, the bug DOES NOT HAPPEN.
Here are some skills that are blocked because they cannot target the user:
However, any skill that CAN target the user are available for use, as you can see here:
- Part 3: Choosing a Skill that Selects a Row crashes the game.
I am also using Row Formation!
So what happens is that any skill that Targets a Row will crash the game. The moment I choose a Skill that target a Row, right before selecting a Row, crashes the game.
This is the code for my Area Heal I skill:
I removed the <Custom Select Condition> from the Area Heal I skill and the crash still happened. However, if I remove the <Target: Ally Row>, the bug does not happen. So I assume the issue is with the Row Formation Target.
Here is the crash:
You can see more crash info at the pinned images.
(first image and second image are from Target Core, and third is from Battle Engine Core).
- Part 4: Removing the bug with a Skill that can target the user and does not use the Row Target
So I was really luck to discover this...
I have a <Instant Cast> skill, which means it does not cost a turn.
This skill can target the user, and does not use Row Target.
Once I use this instant cast skill, the bug disappears, allowing me to use any skill with no issues.
What I'm saying here is that once I use a Skill that can target the user, it removes the bug (the Instant Cast was mentioned on this post just to show the method I used to make this discovery, the Instant Cast has no effect in this situation).
However, on the next turn, since the AI of the enemy is programmed to always use the skill that is bugged, the bug appears again.
- Part 5: The bug and its relation with Row Formation
I don't think Row Formation has anything to do with the bug. I mentioned it because it crashes, allowing us to see some extra info from the plugins.
(the plugins are in order).
Any ideias what the issue is?
I just spent 1 hours writting this I'm even a bit dizzy lol. Let me know if I need to give more info >.<
The plugins I'm using are from Yanfly:
Target Core
Selection Control, and extension from Target Core
Battle AI Core
Row Formation
Instant Cast
- The problem:
I have a <Custom Select Condition> from an enemy that is bugging my party.
The <Custom Select Condition> blocks the use of some skills from my party.
- Part 1: The Skill and the <Custom Select Condition> setup
An enemy has a skill that Targets Everybody:
Code:
<Target: Everybody>
Code:
<Custom Select Condition>
if (user != target) condition = true;
else condition = false;
</Custom Select Condition>
Here is the skill:
- Part 2: How <Custom Select Condition> affects the party
I am using Battle AI Core without the Dynamic Actions options. This means that the AI decides to use a skill at the beggining of a turn, before I even select any skill to use.
I changed the AI of this enemy to ALWAYS use this skill, so I can replicate the bug.
When it is the turn for the enemy to use the bugged skill, the skill blocks all skills from my party that can't target the user. Not only that, it only happens when the enemy is the ONLY ENEMY in combat. If there are more enemies on the field, the bug DOES NOT HAPPEN.
Here are some skills that are blocked because they cannot target the user:
However, any skill that CAN target the user are available for use, as you can see here:
- Part 3: Choosing a Skill that Selects a Row crashes the game.
I am also using Row Formation!
So what happens is that any skill that Targets a Row will crash the game. The moment I choose a Skill that target a Row, right before selecting a Row, crashes the game.
This is the code for my Area Heal I skill:
Code:
<Target: Ally Row>
Code:
<Custom Select Condition>
if (target.isStateAffected(1)) condition = false;
else condition = true;
</Custom Select Condition>
Here is the crash:
You can see more crash info at the pinned images.
(first image and second image are from Target Core, and third is from Battle Engine Core).
- Part 4: Removing the bug with a Skill that can target the user and does not use the Row Target
So I was really luck to discover this...
I have a <Instant Cast> skill, which means it does not cost a turn.
This skill can target the user, and does not use Row Target.
Once I use this instant cast skill, the bug disappears, allowing me to use any skill with no issues.
What I'm saying here is that once I use a Skill that can target the user, it removes the bug (the Instant Cast was mentioned on this post just to show the method I used to make this discovery, the Instant Cast has no effect in this situation).
However, on the next turn, since the AI of the enemy is programmed to always use the skill that is bugged, the bug appears again.
- Part 5: The bug and its relation with Row Formation
I don't think Row Formation has anything to do with the bug. I mentioned it because it crashes, allowing us to see some extra info from the plugins.
(the plugins are in order).
Any ideias what the issue is?
I just spent 1 hours writting this I'm even a bit dizzy lol. Let me know if I need to give more info >.<