Force action on ally?

Icelord888

Veteran
Veteran
Joined
Apr 13, 2018
Messages
42
Reaction score
23
First Language
Romanian
Primarily Uses
RMMV
Recently I have been doing a lot of battle event-ing in MV and I use force action often, but now I have hit a blocker of sorts, how can I make an actor or enemy cast something on a specific ally? I discovered how to use the Indexes through conditions and variables to make an actor attack or use a spell against a specific enemy, but I cannot think how to do it on a specific ally.

In summary, what I want to achieve is the following:
If party has actors A B C and D, if actor A gets bellow 50% hp, actor C panics and heals actor A, is this possible to do in game without plugins?

(Solution):
While the advice received bellow is certainly useful, there is another more simple solution (atleast if you take away the formation aspect <if you include it you have to keep track of the actor's indexes through variables>), but when Force action is called for a skill that targets an ally the target group will no longer refer to the enemy's party but to the player's party. I've found this in an older thread were Llareian mentioned this simple solution.
 
Last edited:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,603
Reaction score
5,071
First Language
English
Primarily Uses
RMVXA
The short answer is no. You could try to get around it with really cute eventing, such as having the skill run a common event (instead of directly healing someone) which checks each battler's HP and restores some HP if it's below 50% of its max... but that leaves you without a lot of the normal tools and controls that skills normally offer.

So in practice, you should use a plugin to do this type of thing. Yanfly's Battle AI Core will let you specify enemies' targeting. His Actor Auto Battle AI Core will let you specify the targeting for allies that are on Auto Battle. I'm not sure what you are trying to do with "Actor C panics and heals Actor A", since normally the player is allowed to choose a target for their skills - if you are trying to take away some of that control, then you will probably need to make some creative use of Yanfly's Skill Core - possibly determine the most injured actor in a Pre-Skill notetag, and set the value for the Heal "value" to 0 for all allies except the most injured one in a Pre-Damage Eval notetag.
 

Icelord888

Veteran
Veteran
Joined
Apr 13, 2018
Messages
42
Reaction score
23
First Language
Romanian
Primarily Uses
RMMV
@Wavelength I see... I am preety far into my game and adding a new plugin might be a bit of an overkill for me, even if I already have a lot of Yanfly's plugins, but I will give it a shot with the common event, it might just work... Thanks!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,273
Reaction score
7,633
First Language
German
Primarily Uses
RMMV
there is a way, but it requires tricky eventing.

"random" targeting will always use the target rate for target probability - that is how a tank's taunts redirect an enemies random atatck to the tank.

force action will already be in a event structure because it is an event command.
so you need to do the following event command before and after it:
1) give the desired target ally a state that increases target rate to a high number
2) give all undesired target allies a state that reduces target rate to zero
3) have the force action target a random ally
4) remove the states that manipulate the target rate.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


My only regret is the portal mirror effect is too subtle to show up in these GIFs. It probably just needs more sparkles. :LZSwink:
Microsoft: Hey, let's waste money advertising the Xbox Series X when nobody has any in stock, we don't seem to be making more, we aren't taking preorders and you can't get on a waiting list. BEST. IDEA. EVER.
So I'm practicing ITC with a spirit box, and decide to try to contact my deceased soulmate. It actually gave me multiple identifiers. Me, still a bit skeptical, asked aloud "Fine but does he still love me?" and the box spoke and printed the word "Forever" at the same time. Been a mess of tears since. :kaocry:
Been scratching away at my game and making progress, but just had a revelation. I'm working in full screen and adjusting all my pictures accordingly, but will they resize if someone's screen is smaller?? I hope this doesn't turn out to be a problem later.

Forum statistics

Threads
105,635
Messages
1,015,166
Members
137,306
Latest member
lzh1703
Top