[XP] CBS help / looking for a scripter

Hello, i apologize in advance if this is a big ask.
I need someone to help me with my battle system; it functions similarly to the standard battle system but instead of all party members attacking every turn, you choose just one member to attack and the remaining members do some sort of support command, like an item or a spell. Effectively, choosing your action during your turn is split up into an attack phase and a support phase. (Preferrably, the attack phase should be skippable.)

Notable scripts i'm using are the Timed Hit Add-On by Zephren (very old and a bit clunky but it works), Blizz-ABS (ONLY FOR MOVEMENT ENHANCES, i gutted the battle stuff from it and am just using the default battle system) and some other various scripts that wouldnt be really important to keep in mind (like an anti-lag one that only affects the overworld)

Here's some images i drew to conceptualize the whole thing:

memes1.png

memes2.png

memes3.png

memes4.png


Again, i know this might be a large request. If anyone is willing, i'm able to pay you for this script if necessary. I know there's barely any scripters for XP anymore, but i still want to at least see if anyone is willing to help me with this!
Here are my two cents. Making the attack phase skippable might make it hard for the player to win battles. Nobody here knows what portions of Blizzard's ABS you're currently using. This makes your request kind of hard to accept.
Okay, i'll try and give you some more information. The ABS part of the scripts is not active, since i have it set to disable ABS controls on maps with no enemies (and there are no maps with enemies.) Like i said, i'm only using it for the ability to use caterpillar and pixel-movement at the same time. It shouldn't be affecting the battle system at all since i'm not even using an ABS just using it for it's movement engine. Also, I see what you're saying about the battle phase being skippable, but I mean when there's only one party member you have to choose from using an item or dealing damage already, so i don't see how that would be much different from already having one party member. That part can be omitted if it's a bad idea, though, i don't really mind. Thanks for your response!
OK, based on your latest reply I get the impression that you just want to remove the party window IF there's just a single hero active or alive. Well, that makes sense. It'd require us to come up with a condition that would check how many actors are currently alive. If more than one are active, then it would display the window. Otherwise it would hide it and jump to the actor's window. That's not complicated.

EDIT: Here's my first take.

Ruby:
# * XP Skip Party Window * #
#   2024-09-25

class Game_Actor
  def is_alive?
    @hp > 0 or @immortal
  end

  def can_fight?
    !@hidden and restriction <= 1 and is_alive?
  end
end

class Game_Party
  def active_actors
    @actors.select {|actor| actor.can_fight? }
  end
end

class Scene_Battle
  def start_phase2
    @phase = 2
    total = $game_party.active_actors.size
    many_actors = total > 1
    @actor_index = many_actors ? -1 : 0
    @active_battler = nil
    @party_command_window.active = many_actors
    @party_command_window.visible = many_actors
    @actor_command_window.active = !many_actors
    @actor_command_window.visible = !many_actors
    $game_temp.battle_main_phase = false
    $game_party.clear_actions
    if total == 1
      start_phase3
      return
    end
    unless $game_party.inputable?
      start_phase4
    end
  end
end
OK, based on your latest reply I get the impression that you just want to remove the party window IF there's just a single hero active or alive. Well, that makes sense. It'd require us to come up with a condition that would check how many actors are currently alive. If more than one are active, then it would display the window. Otherwise it would hide it and jump to the actor's window. That's not complicated.
By the party window you're referring to the selection of which party member to attack? In which case, yes that'd be way easier to just skip it when there's one member in the party. Hadn't considered that actually.
I mainly wanted to do the two stage attack thing because I'm planning on doing different action commands for each party member and I'd rather not have the player do four of those per turn so battles don't turn into a slog, so I figured having only one party member attack per turn instead of all four would be a better way to go about that (Adjusting enemy stats to account for that as well). That's really the main reason I'm looking for a script like this. I appreciate your correspondence!
The code above would only remove the Fight or Escape window.
I never mentioned anything related to how an actor's window is supposed to work. I haven't touched that at all nor suggested anything like what you're now telling me here.
The code above would only remove the Fight or Escape window.
I never mentioned anything related to how an actor's window is supposed to work. I haven't touched that at all nor suggested anything like what you're now telling me here.
Well that was my original idea that i mentioned in the original post. The images might be too confusing in that case? I apologize for any miscommunication
You'd need to pick an actor's feature to let a script figure out who's the guy attacking and who's supporting. I mean, there are fighters and wizards out there but how would you make sure a guy with high SP is an attacker and not a healer? So you'd need to come up with a system or just a very specific feature to pick who'd be that lone attacker...
You'd need to pick an actor's feature to let a script figure out who's the guy attacking and who's supporting. I mean, there are fighters and wizards out there but how would you make sure a guy with high SP is an attacker and not a healer? So you'd need to come up with a system or just a very specific feature to pick who'd be that lone attacker...
No, the player picks the attacker. The lineup is four damaging actors, i want a script in which YOU pick, not the game? but either way yeah i do want a feature to pick the lone attacker for one turn, just like the images i linked... my game does not have any characters that attack using spells or skills, so they're just for support in my case, which is why i wanted to be able to pick the lone attacker per turn. i hope that makes sense
OK, that part of picking the attacker first is not timed, right? Might be feasible IF the start of phase 2 gets rewritten... again. It would include a flag to alert the system that the attacker has been chosen and has picked an attack or anything else that turn. Later on the flag would be used to jump to normal selection as usual.

What I can do is to let you pick the attacker and then his or her action on an enemy (if any), and then it'd jump to the normal selection. I guess that's not really what you've been asking for but that's what I can offer right now.
I mean that's pretty close! I would appreciate it very much! Also, yeah the attacker selection is not timed. All the timing based stuff is during the actual attack. Thanks for helping me with this!
Here's the script I've been working on. So far the chosen attacker will only let you pick the Attack and Defend commands. Anything else should throw you a fatal error because I haven't implemented the other options as of now. Support guys won't have any issues while using any of the available options.

Spoiler: The Script
Ruby:
# * Pick Attacker XP * #
#   Scripter : Kyonides Arkanthes
#   v0.5.1 - 2024-09-26

class Game_Actor
  def is_alive?
    @hp > 0 or @immortal
  end

  def can_fight?
    !@hidden and restriction <= 1 and is_alive?
  end
end

class Game_Party
  def active_actors
    @actors.select {|actor| actor.can_fight? }
  end
end

class Game_BattleAction
  def choose_attack
    @kind = 0
    @basic = 0
  end

  def choose_skill
    @kind = 1
  end

  def choose_guard
    @kind = 0
    @basic = 1
  end

  def choose_item
    @kind = 2
  end
end

class Scene_Battle
  alias :kyon_pick_atk_scn_btl_up_ph2 :update_phase2
  def start_phase2
    @phase = 2
    @attacker_phase = 0
    @actor_index = -1
    @attacker_index = @active_battler = nil
    @party_command_window.active = false
    @party_command_window.visible = false
    @actor_command_window.active = false
    @actor_command_window.visible = false
    $game_temp.battle_main_phase = false
    $game_party.clear_actions
    $game_party.inputable? ? start_phase2_attacker : start_phase4
  end

  def start_phase2_attacker
    @attacker_arrow = Arrow_Actor.new(@spriteset.viewport2)
    @attacker_arrow.help_window = @help_window
  end

  def end_phase2_attacker
    @attacker_arrow.dispose
    @attacker_arrow = nil
  end

  def update_phase2
    case @attacker_phase
    when 0
      update_phase2_choose_attacker
    when 1
      update_phase2_choose_attacker_command
    when 2
      update_phase2_choose_attacker_enemy
    when 3
      kyon_pick_atk_scn_btl_up_ph2
    end
  end

  def update_phase2_choose_attacker
    @attacker_arrow.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      return
    elsif Input.trigger?(Input::C)
      @attacker_index = @attacker_arrow.index
      @active_battler = $game_party.actors[@attacker_index]
      unless @active_battler.inputable?
        $game_system.se_play($data_system.buzzer_se)
        return @active_battler = nil
      end
      $game_system.se_play($data_system.decision_se)
      @attacker_phase = 1
      @active_battler.blink = true
      @attacker_arrow.visible = false
      phase2_attacker_setup_command_window
    end
  end

  def phase2_attacker_setup_command_window
    @actor_command_window.active = true
    @actor_command_window.visible = true
    @actor_command_window.x = @attacker_index * 160
    @actor_command_window.index = 0
  end

  def goto_phase3
    @active_battler.blink = false
    @active_battler = nil
    start_phase3
  end

  def update_phase2_choose_attacker_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @attacker_phase = 0
      @active_battler.blink = false
      @actor_command_window.active = false
      @actor_command_window.visible = false
      @attacker_arrow.visible = true
      @attacker_index = @active_battler = nil
      return
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @attacker_phase = 2
      update_phase2_attacker_chosen_command
      end_phase2_attacker
    end
  end

  def update_phase2_attacker_chosen_command
    case @actor_command_window.index
    when 0  # attack
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_attack
      start_enemy_select
    when 1  # skill
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_skill
      start_skill_select
    when 2  # guard
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_guard
      goto_phase3
    when 3  # item
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_item
      start_item_select
    end
  end

  def update_phase2_choose_attacker_enemy
    @enemy_arrow.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      @attacker_phase = 1
      end_enemy_select
      return
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.target_index = @enemy_arrow.index
      end_enemy_select
      if @skill_window != nil
        end_skill_select
      end
      if @item_window != nil
        end_item_select
      end
      goto_phase3
    end
  end

  def phase3_next_actor
    begin
      if @active_battler != nil
        @active_battler.blink = false
      end
      if @actor_index == $game_party.actors.size - 1
        start_phase4
        return
      end
      @actor_index += 1
      @actor_index += 1 if @attacker_index == @actor_index
      @active_battler = $game_party.actors[@actor_index]
      @active_battler.blink = true
    end until @active_battler.inputable?
    phase3_setup_command_window
  end

  def phase3_prior_actor
    begin
      if @active_battler != nil
        @active_battler.blink = false
      end
      if @actor_index == 0
        start_phase2
        return
      end
      @actor_index -= 1
      @actor_index -= 1 if @attacker_index == @actor_index
      @active_battler = $game_party.actors[@actor_index]
      @active_battler.blink = true
    end until @active_battler.inputable?
    phase3_setup_command_window
  end
end
This looks great for a start! Tested it out a bit with a few battles, and I like how it's looking! I think you should re include the fight or run menu at the top so you can still run away from battles, but i like the actor stats at the top of the screen for choosing an attacker! I very much appreciate your help!
Well, this version of my script now lets you pick a skill and I think it's valid for items, too.

EDIT: I have updated this script!

Spoiler: The Script
Ruby:
# * Pick Attacker XP * #
#   Scripter : Kyonides Arkanthes
#   v0.7.0 - 2024-09-27

class Game_Actor
  def is_alive?
    @hp > 0 or @immortal
  end

  def can_fight?
    !@hidden and restriction <= 1 and is_alive?
  end
end

class Game_Party
  def active_actors
    @actors.select {|actor| actor.can_fight? }
  end
end

class Game_BattleAction
  def choose_attack
    @kind = 0
    @basic = 0
  end

  def choose_skill
    @kind = 1
  end

  def choose_guard
    @kind = 0
    @basic = 1
  end

  def choose_item
    @kind = 2
  end
end

class Scene_Battle
  alias :kyon_pick_atk_scn_btl_st_ph2 :start_phase2
  alias :kyon_pick_atk_scn_btl_up_ph2 :update_phase2
  def start_phase2
    @attacker_phase = 0
    @attacker_index = nil
    kyon_pick_atk_scn_btl_st_ph2
  end

  def hide_party_command
    @help_window.active = true
    @help_window.visible = true
    @party_command_window.active = false
    @party_command_window.visible = false
  end

  def show_party_command
    @help_window.active = false
    @help_window.visible = false
    @party_command_window.active = true
    @party_command_window.visible = true
  end

  def start_phase2_attacker
    @attacker_arrow = Arrow_Actor.new(@spriteset.viewport2)
    @attacker_arrow.help_window = @help_window
    @attacker_arrow.index = @attacker_index if @attacker_index
  end

  def end_phase2_attacker
    @attacker_arrow.dispose if @attacker_arrow
    @attacker_arrow = nil
  end

  def show_attacker_help
    actor = $game_party.actors[@attacker_index]
    @help_window.set_actor(actor)
  end

  def end_phase2_attacker_target
    @actor_arrow.dispose if @actor_arrow
    @enemy_arrow.dispose if @enemy_arrow
    @actor_arrow = @enemy_arrow = nil
    @attacker_phase = 2
  end

  def phase2_attacker_setup_command_window
    @actor_command_window.active = true
    @actor_command_window.visible = true
    @actor_command_window.x = @attacker_index * 160
    @actor_command_window.index = 0
  end

  def goto_phase3
    @active_battler.blink = false
    @active_battler = nil
    start_phase3
  end

  def phase2_attacker_show_window
    @attacker_phase = @last_attacker_phase
    case @attacker_phase
    when 4
      @skill_window.visible = true
    when 5
      @item_window.visible = true
    else
      show_attacker_help
      @attacker_phase = 2
    end
    @last_attacker_phase = nil
  end

  def update_phase2
    case @attacker_phase
    when 0
      update_phase2_fight_escape
    when 1
      update_phase2_choose_attacker
    when 2
      update_phase2_choose_attacker_command
    when 3
      update_phase2_choose_attacker_enemy
    when 4
      update_phase2_choose_attacker_skill
    when 5
      update_phase2_choose_attacker_item
    end
  end

  def update_phase2_fight_escape
    if Input.trigger?(Input::C)
      case @party_command_window.index
      when 0 # fight
        $game_system.se_play($data_system.decision_se)
        hide_party_command
        start_phase2_attacker
        @attacker_phase = 1
        return
      when 1 # escape
        unless $game_temp.battle_can_escape
          $game_system.se_play($data_system.buzzer_se)
          return
        end
        $game_system.se_play($data_system.decision_se)
        hide_party_command
        update_phase2_escape
      end
    end
  end

  def update_phase2_choose_attacker
    @attacker_arrow.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      show_party_command
      @attacker_phase = 0
      return
    elsif Input.trigger?(Input::C)
      @attacker_index = @attacker_arrow.index
      @active_battler = $game_party.actors[@attacker_index]
      unless @active_battler.inputable?
        $game_system.se_play($data_system.buzzer_se)
        return @active_battler = nil
      end
      $game_system.se_play($data_system.decision_se)
      @attacker_phase = 2
      @active_battler.blink = true
      @attacker_arrow.visible = false
      phase2_attacker_setup_command_window
    end
  end

  def update_phase2_choose_attacker_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      start_phase2_attacker unless @attacker_arrow
      @attacker_arrow.visible = true
      @active_battler.blink = false
      @actor_command_window.active = false
      @actor_command_window.visible = false
      @attacker_index = @active_battler = nil
      @attacker_phase = 1
      return
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @attacker_phase = 3
      update_phase2_attacker_chosen_command
      end_phase2_attacker
    end
  end

  def update_phase2_attacker_chosen_command
    case @actor_command_window.index
    when 0  # attack
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_attack
      start_enemy_select
    when 1  # skill
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_skill
      @attacker_phase = 4
      start_skill_select
    when 2  # guard
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_guard
      goto_phase3
    when 3  # item
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.choose_item
      @attacker_phase = 5
      start_item_select
    end
  end

  def update_phase2_choose_attacker_enemy
    @enemy_arrow.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      end_enemy_select
      phase2_attacker_show_window
      return
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.target_index = @enemy_arrow.index
      end_enemy_select
      end_skill_select if @skill_window
      end_item_select if @item_window
      goto_phase3
    end
  end

  def update_phase2_choose_attacker_skill
    @skill_window.visible = true
    @skill_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      end_phase2_attacker_target
      end_skill_select
      show_attacker_help
      return
    elsif Input.trigger?(Input::C)
      @skill = @skill_window.skill
      if !@skill or !@active_battler.skill_can_use?(@skill.id)
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.skill_id = @skill.id
      @skill_window.visible = false
      @last_attacker_phase = @attacker_phase
      if @skill.scope == 1
        @attacker_phase = 3
        start_enemy_select
      elsif @skill.scope == 3 or @skill.scope == 5
        @attacker_phase = 3
        start_actor_select
      else
        end_skill_select
        goto_phase3
      end
    end
  end

  def update_phase2_choose_attacker_item
    @item_window.visible = true
    @item_window.update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      end_phase2_attacker_target
      end_item_select
      show_attacker_help
      return
    elsif Input.trigger?(Input::C)
      @item = @item_window.item
      unless $game_party.item_can_use?(@item.id)
        $game_system.se_play($data_system.buzzer_se)
        return
      end
      $game_system.se_play($data_system.decision_se)
      @active_battler.current_action.item_id = @item.id
      @item_window.visible = false
      @last_attacker_phase = @attacker_phase
      if @item.scope == 1
        @attacker_phase = 3
        start_enemy_select
      elsif @item.scope == 3 or @item.scope == 5
        @attacker_phase = 3
        start_actor_select
      else
        end_item_select
        goto_phase3
      end
    end
  end

  def phase3_next_actor
    total = $game_party.actors.size
    begin
      if @active_battler != nil
        @active_battler.blink = false
      end
      if @actor_index == total - 1
        start_phase4
        return
      end
      @actor_index += 1
      @actor_index += 1 if @attacker_index == @actor_index
      if @actor_index == total
        start_phase4
        return
      end
      @active_battler = $game_party.actors[@actor_index]
      @active_battler.blink = true
    end until @active_battler.inputable?
    phase3_setup_command_window
  end

  def phase3_prior_actor
    begin
      if @active_battler != nil
        @active_battler.blink = false
      end
      if @actor_index == 0
        start_phase2
        return
      end
      @actor_index -= 1
      @actor_index -= 1 if @attacker_index == @actor_index
      if @actor_index < 0
        start_phase2
        return
      end
      @active_battler = $game_party.actors[@actor_index]
      @active_battler.blink = true
    end until @active_battler.inputable?
    phase3_setup_command_window
  end
end
Awesome! This is looking really good! Is it possible to make the command box only show the valid commands there too, so it doesn't get confusing? I very much appreciate this script help!
Yes, that's why I asked you via DM about the specific list of commands for both the attacker and every supporter, especially if they need custom command names. The alternative to that would be to let you use a hash to define those specific command lists for each supporter. I explained this in my latest DM.

Original thread: https://forums.rpgmakerweb.com/threads/xp-cbs-help-looking-for-a-scripter.172153/