Victor Engine - Leap Attack Fighting with Archeia Engine Turn Order

Hi all,

I've been having trouble with the Victor Engine Leap Attack script. When I select the "Jump" command, the character goes up, but doesn't come back down until it gets to her turn again and "Jump" is selected once more.

There are two issues with this: one, she gets a turn when she's not supposed to, as I have set the Jump command to keep her offscreen for two turns. Two, she's able to select other commands while in the air, e.g. Attack, Item, etc.

It's taken a couple hours, but I've narrowed the issue down to three Archeia Engine scripts: AEA_BattleCore, AEA_TurnOrder, and AEA_Fixes. I suspect the issue is that these scripts and VE_LeapAttack are both manipulating turns, which is causing the wonkiness.

I've listed all the classes that each of these scripts edit here, and will also attach the scripts in case anyone is able to help me figure out exactly where things are going wrong. I suspect they're stepping on each other's toes somewhere, but I'm starting to go a little cross-eyed...

Any help/advice is appreciated. Happy to provide more context/info if needed. Thanks!

AEA_BATTLECORE
class Scene_Battle < Scene_Base
class Game_Actor < Game_Battler

AEA_TURNORDER
class Window_Order < Window_Base
class Game_Battler < Game_BattlerBase
class Game_Enemy < Game_Battler

AEA_FIXES
module BattleManager
class Game_Temp
class Game_Battler < Game_BattlerBase
class Scene_Battle < Scene_Base

VE_LEAPATTACK
class RPG::UsableItem < RPG::BaseItem
class << BattleManager
class Game_Action
class Game_BattlerBase
class Game_Battler < Game_BattlerBase
class Game_Actor < Game_Battler
class Game_Enemy < Game_Battler
class Game_Unit
class Game_BattlerPose
class Game_PoseValue
class Game_PoseAction
class Sprite_Battler < Sprite_Base
class Window_BattleActor < Window_BattleStatus
class Window_BattleEnemy < Window_Selectable
class Scene_Battle < Scene_Base
bump
Please provide a demo project to test with.
Thanks -- here's the link to the project: [Removed]

The save in the second save slot should load you into the overworld map, if you walk around there a bit you will get into a random encounter and be able to replicate the issue. Thanks!!
Please take your demo down. You're sharing Time Fantasy tilesets.
I haven't looked them up specifically but they should be paid for tilesets.

This works for the leap, but still doesn't correct for the action orders
the line at the bottom of this post does.

Ruby:
class Scene_Battle < Scene_Base
 
  def process_action
    BattleManager.make_action_orders
    return if scene_changing? || !BattleManager.actor.nil?
    if !@subject || [email protected]_action
      @subject = BattleManager.next_subject
      @subject.on_action_begin if @subject
      @order_window.refresh
      @status_window.refresh
    end
    if $imported[:ve_leap_attack]
      if @subject.leap
        if @subject.leap_time.to_i == 0
          @subject.make_actions
        else
          @subject.update_leap_time
          return
        end
      end
    end
    if @subject.is_a?(Game_Actor) and [email protected]_action
      next_command
      return
    elsif @subject.is_a?(Game_Enemy) and @subject.current_action.nil?
      @subject.make_actions
    elsif @subject.nil?
      refresh_status
      BattleManager.judge_win_loss
      ($game_party.battle_members + $game_troop.members).each do |battler|
        next if !battler.movable? ||battler.nil?
        battler.result.clear
      end
      return
    end
    if @subject.current_action
      if $imported["YEL-BattleLuna"]
        @actor_command_window.close if @actor_command_window.open?
      end
      @subject.current_action.prepare
      if @subject.current_action.valid?
        @status_window.open
        execute_action
      end
      @subject.make_speed
      @subject.remove_current_action
    end
    process_action_end unless @subject.current_action
    while BattleManager.ctb_turn_end?
      $game_troop.increase_turn
      all_battle_members.each do |battler|
        battler.on_turn_end
        refresh_status
        @log_window.display_auto_affected_status(battler)
        @log_window.wait_and_clear
      end
    end
  end
 
end

In turn order script add this on line 82
battlers.delete(battler) if battler.leap
Ah, you're right - apologies. I've removed the demo.

Two questions:

1. I assume the long script should replace the Scene_Battle < Scene_Base in the AEA_Fixes script?

2. I put the battlers.delete(battler) if battler.leap inside the for battler in battlers loop. However, instead of removing the box entirely from the turn order display, a blank box appears, like this:
1717254458881.png

1717254535167.png


Shouldn't the battlers.delete(battler)line skip this entirely if it's in the loop from lines 79-82 (assuming this is "Sadie's turn")? It removes dead enemies' turns from the order fine, but not Sadie's while she is in the air.

Thanks for all your help with this!
The blue squares is an image and cannot be adjusted without disposing it and drawing a different one.
If you want something in there then change the blank_icon image to something else maybe a question mark. Otherwise you can remove the edit to the order script and the leap battler will show but can't be used until the leap is complete.

Actually just tested this and it is just a visual patch.
Add below the previous line
battlers.push(battlers[0]) if battler.leap
bless you. This rules. Working perfectly now, thank you so much!!!

Original thread: https://forums.rpgmakerweb.com/threads/victor-engine-leap-attack-fighting-with-archeia-engine-turn-order.168700/