- Joined
- May 13, 2019
- Messages
- 19
- Reaction score
- 2
- First Language
- English
- Primarily Uses
- RMMV
Hi, everyone. I'm currently writing some scripts in order to implement a new graphical feature in battle scene. One important information I need for this task is the targeting information on the battleground (Who is targeting who with which skill). After some research, I found that BattleManager._action is a good place to get most of the data I need. During the attack from an actor to an enemy, the data would look like:
In the data above, I know that actor 1 is attacking target with index of 2. Now the problem is: When an enemy is attacking an actor, the data would look like:
In this data, I get that enemy with index of 2 is attacking someone, but I have verified it multiple times and confirm that neither _subjectActorId nor _targetIndex shows the real actor been attacked. Even if an enemy attack the teammate 4, the _subjectActorId still displays 0.
Now I have no clue about where to continue searching for the solution. Could someone provide me with some guidance on any other data object that could get this information? I would be grateful for your help
Code:
{
_subjectActorId: 1,
_subjectEnemyIndex: -1,
_forcing: false,
_item: {
_dataClass: "skill",
_itemId: 12
},
_targetIndex: 2
}
Code:
{
_subjectActorId: 0,
_subjectEnemyIndex: 2,
_forcing: false,
_item: {
_dataClass: "skill",
_itemId: 29
},
_targetIndex: -1
}
Now I have no clue about where to continue searching for the solution. Could someone provide me with some guidance on any other data object that could get this information? I would be grateful for your help
Last edited:


