How to set targets for a skill that was cast by a Common Event

Hello!

I'm trying to create a caster spell that calls a common event that gives you choices. Each choice has a skill.

I created a Common Event called "Conjure". It ask you for choices for each element. Then, ask you again if you want to cast it on a single target or multiple targets. This was done without any script. I just used the RPG Maker MV Event Commands using Variables for each option. Then, checking every variable, the skill is casted by the user.

The skill works but don't ask the player which enemy do you want target.

Is there any way to do this more efficiently with scripts?
Thanks a lot.
the skill is casted by the user.
how did you cast the skill?

if you're using force action, that command contains the target selection and you need to use different versions of the command depending on the selections of the player before the force action is used.
Thanks for the answer.

When I noticed the target problems, I set the skill to target one enemy before running the common event.

Works completely fine with the multiple target option but not with the single target option.

If i didn't do this, it just always attack randomly.

What i want is a target selection for the player that allows me to target anyone in battle. But i don't think it is possible without scripts.
I set the skill to target one enemy before running the common event.
that does not answer my question and doesn't make sense directly either.

we need to see what you have done, so please give screenshots that explain how the common event is called, what skill should be used by the common event and of the common event itself.

I suspect that you have something wrong in your sequence because you misinterpreted some effects, and we need to see the entire thing to check that and tell you how to do it the way you want.
that does not answer my question and doesn't make sense directly either.

Sorry, my bad.

Here is a pic of my Common Event. (Sorry for the native language)

UuR9lQV.jpg


GEPcbRb.jpg


And here is a pic of my skills. I highlighted this skill that calls the common event. Also, you can see the skills that should be casted if you choose each options.

bPVqMV4.jpg


Thanks a lot.
With force action, "Last Target" means that the skill will be targeted on the last target that was selected by a previous skill.
That is why you can never select the target with that option.

If you want your common event to select the target, then you need to make several conditional branches and use the force action with "index #" with the indices 1 to 8 depending on which target the skill should get.
If the skill is targeted at an enemy then the index will be the number the enemy has in the party, if it is targeted at an ally then the index will be used as the party index.
and that also depends on the subject using the skill - if an actor uses a skill on allies the index will be the party ID, if an enemy uses a skill on allies the index will be the enemy number.
If you want your common event to select the target, then you need to make several conditional branches and use the force action with "index #" with the indices 1 to 8 depending on which target the skill should get.

That's what i want to do but i have no idea how to do it.
What if i want to add more skills later in the game that can be used by the player using the same command? Maybe something that can target the player, allies or all battlers? What should I do if i need to make the player target the enemy after using this skill?
your description and ideas are a bit confusing, but if I understand you right:

every change will require a different force action command. that includes changes in target selection, changes in skill user and changes in which skill to use.

for every different force action, you need a different conditional branch on the selection criteria.

for every different conditional branch you need to have something that sets the data for the branch.

And if you need to set everything, then you are better of NOT to use force action.

Which brings me back to your starting point:
why do you even use a common event? From what you described so far that is the completely wrong way.

Please take a step back and describe to us what you want to achive, not how you want to achieve something.
Because there are other ways to do things, and most likely you're better of deleting the common event and use other means to achieve what you want. But we can't help you without a better description of what you want to make (ingame terms) instead of how you want to make something unknown that might be wrong in the first place.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-set-targets-for-a-skill-that-was-cast-by-a-common-event.109757/