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.
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.
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.
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.