Simple one actor item/skill selection edit

Hey 🙂

I'm looking for a script that modifies how item/skill targeting on allies works.

In normal battle, if you'd use a skill/item on a party member, you'd have to select which one you want to use the skill/item on, even if there's only 1 party member (kinda unnecessary)

My request  is: if there's only 1 party member, it would skip this targeting and instantly use the skill/item on that party member.
Changing the scope for out of battle items to "All Allies" does this.  Would it also work in battle?
If you are making a single character game, simply set the skill/item to "User" will skip the selection part.

You don't have to rely on a snippet to get things work because as far as i can tell, this require an overwrite to work

But if you are planning to make a game that have other characters, you will need a script.

And here's the Snippet to makes it work.

Put this above all other custom scripts you are using.

Edit: Please keep in mind that this script overwrites whatever script that uses the same methods above it.

Edit again: Forgot to add a condition on the target so it's setting the target to self as long as party members = 1,

it's fixed now and should be targeting self only when you use an skill/item for friend and party member = 1, please use the new one below.

Spoiler
Code:
#==============================================================================# ■ Meow Face Character Selection Skip#------------------------------------------------------------------------------# Author: Meow Face# Type: Plug & Play# How to Use: Put this script below Material and above other custom scripts# Overwrite Warning! This script uses the overwrite method and might not be# compatible with other custom scripts!#==============================================================================class Game_Action  def item_target_candidates    if $game_party.members.count == 1 && item.for_friend?      [subject]    elsif item.for_opponent?      opponents_unit.alive_members    elsif item.for_user?      [subject]    elsif item.for_dead_friend?      friends_unit.dead_members    else      friends_unit.alive_members    end  endendclass Scene_Battle < Scene_Base  def on_item_ok    @item = @item_window.item    BattleManager.actor.input.set_item(@item.id)    if [email protected]_selection? || ($game_party.members.count == 1 && @item.for_friend?)      @item_window.hide      next_command    elsif @item.for_opponent?      select_enemy_selection    else      select_actor_selection    end    $game_party.last_item.object = @item  endend

Original thread: https://forums.rpgmakerweb.com/threads/simple-one-actor-item-skill-selection-edit.44446/