- Joined
- Apr 7, 2020
- Messages
- 2
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMVXA
Hi There! Long time Lurker first time poster.
So I'm having an issue with the last target on the force action system and I understand from this post
forums.rpgmakerweb.com
that there is a bug in it.
Problem is I implemented Archeia's code and the issue is still happening.
More details:
I am putting together a diplomacy system in my game that requires eventing to interact with the enemy. The user uses the diplomacy skill and it calls a common event. If successful it makes the enemy leave and rewards players with Exp. If unsuccessful it makes the enemy annoyed and gives them a state that makes them attack harder. Both of these I am currently handling with states that are granted by a force action call from the event to make the actor use a skill granting the state on the last target after a very long string of branching paths. The interaction tree is working great but when I get to the force action it automatically targets enemy 1 not last target.
I have also tried finding a script call that just grants the targeted enemy the required state (I already have a variable that is being set to the enemy's troop id for reference upon use of the skill). This or forcing the enemy to leave when successful would be a more elegant solution but no such script call seems to exist in my extensive research.
The only out of house scripts I am using are:
Yanfly's Ace Message System
Kread-EX's Game Over Event
Mr. Trivel's Roguelike Saves
I am trying to limit my use of other folks script as much as possible as an exercise to try and get better, unless I find an issue that is WAY beyond my understanding. I am teaching myself the basics of coding and I've learned a lot but this one has stumped me.
HELP!
Edit: tried a few more things and found how to script last target enemy sate
Skill has: $game_variable[x]=b.id;
before the damage code.
Then in script call:
a = $game_variables[x]
$game_troop.members[a].add_state(y)
This solves the specific issue of this skill but not the general issue of last target which other skills in my game use, so I definitely still need help with that!
So I'm having an issue with the last target on the force action system and I understand from this post
Force Action Target Question.
Hello RM Folks =D I had a question that I hope is fairly simple to answer regarding Force Action Targeting options... I currently have a duo of characters who use skills that force the other to do a skill immediately after. Forcing the actions is fine but the options of targeting with Forced...
Problem is I implemented Archeia's code and the issue is still happening.
More details:
I am putting together a diplomacy system in my game that requires eventing to interact with the enemy. The user uses the diplomacy skill and it calls a common event. If successful it makes the enemy leave and rewards players with Exp. If unsuccessful it makes the enemy annoyed and gives them a state that makes them attack harder. Both of these I am currently handling with states that are granted by a force action call from the event to make the actor use a skill granting the state on the last target after a very long string of branching paths. The interaction tree is working great but when I get to the force action it automatically targets enemy 1 not last target.
I have also tried finding a script call that just grants the targeted enemy the required state (I already have a variable that is being set to the enemy's troop id for reference upon use of the skill). This or forcing the enemy to leave when successful would be a more elegant solution but no such script call seems to exist in my extensive research.
The only out of house scripts I am using are:
Yanfly's Ace Message System
Kread-EX's Game Over Event
Mr. Trivel's Roguelike Saves
I am trying to limit my use of other folks script as much as possible as an exercise to try and get better, unless I find an issue that is WAY beyond my understanding. I am teaching myself the basics of coding and I've learned a lot but this one has stumped me.
HELP!
Edit: tried a few more things and found how to script last target enemy sate
Skill has: $game_variable[x]=b.id;
before the damage code.
Then in script call:
a = $game_variables[x]
$game_troop.members[a].add_state(y)
This solves the specific issue of this skill but not the general issue of last target which other skills in my game use, so I definitely still need help with that!
Last edited:

