[SOLVED] [RMXP] Animated Battlers Scripting Issue

Hey all, so I suddenly got inspired to sprite today and I was making an enemy sprite and implemented into my animated battle system, when suddenly, out of nowhere I got this error:

https://www.dropbox.com/s/tv259crtsggu74m/error.png

I have never gotten anything like this and I've had my animated battler script for well . . . ever now, so I am baffled that this is now consistently happening. The weird thing is depending on the battleback background I choose or the character battler I have in the test battle, sometimes I won't encounter this error. I know next to nothing about scripting so any help here would be so appreciated! Here's the script that the error is referencing:

  1. #==============================================================================
  2. # ** Sprite_Battler
  3. #------------------------------------------------------------------------------
  4. #  Animated Battlers by Minkoff
  5. #==============================================================================
  6.  
  7. class Sprite_Battler < RPG::Sprite
  8.   #--------------------------------------------------------------------------
  9.   # * Initialize
  10.   #--------------------------------------------------------------------------
  11.   alias cbs_initialize initialize
  12.   def initialize(viewport, battler = nil)
  13.     @speed = 5#7
  14.     @frames = 4
  15.     @poses = 11
  16.     @stationary_enemies = true
  17.     @stationary_actors = false
  18.     @calculate_speed = true
  19.     @phasing = true
  20.     @frame = 0
  21.     @pose = 0
  22.     @last_time = 0
  23.     @last_move_time = 0
  24.     cbs_initialize(viewport, battler)
  25.     viewport.z = 99
  26.   end
  27.   #--------------------------------------------------------------------------
  28.   # * Update
  29.   #--------------------------------------------------------------------------
  30.   alias cbs_update update
  31.   def update
  32.     return unless @battler
  33.  
  34.     # Regular Update
  35.     cbs_update
  36.  
  37.     # Start Routine
  38.     unless @started
  39.       @width = @width / @frames
  40.       @height = @height / @poses
  41.       @display_x = @battler.screen_x
  42.       @display_y = @battler.screen_y
  43.       @destination_x = @display_x
  44.       @destination_y = @display_y
  45.     end
  46.  
  47.     # Setup Sprite
  48.     self.src_rect.set(@width * @frame, @height * @pose, @width, @height)
  49.     self.mirror = @battler.is_a?(Game_Enemy) unless @started
  50.     if @battler.is_a?(Game_Actor)
  51.    @stationary_actors = [5, 7, 9].include?(@battler.class_id)
  52.     end
  53.     # Position Sprite
  54.     self.x = @display_x
  55.     self.y = @display_y
  56.     self.z = @display_y
  57.     self.ox = @width / 2
  58.     self.oy = @height
  59.  
  60.     # Setup Animation
  61.     time = Graphics.frame_count / (Graphics.frame_rate / @speed)
  62.     if @last_time < time
  63.       @frame = (@frame + 1) % @frames
  64.       if @frame == 0 or @reload
  65.         if @freeze
  66.           @frame = @frames - 1
  67.           return
  68.         end
  69.         @pose = state
  70.       end
  71.     end
  72.     @last_time = time
  73.  
  74.     # Move It
  75.     move if moving
  76.  
  77.     # Finish Up
  78.     @started = true
  79.   end
  80.   #--------------------------------------------------------------------------
  81.   # * Current State
  82.   #--------------------------------------------------------------------------
  83.   def state
  84.     # Damage State
  85.     if [nil,{}].include?(@battler.damage)
  86.       # Battler Fine
  87.       @state = 0
  88.       # Battler Wounded
  89.       @state = 0 if @battler.hp < @battler.maxhp / 4
  90.       # Battler Dead
  91.       @state = 2 if @battler.dead?
  92.     end
  93.     # Guarding State
  94.     @state = 3 if @battler.guarding?
  95.     # Moving State
  96.     if moving
  97.       # Battler Moving Left
  98.       @state = 4 if moving.eql?(0)
  99.       # Battler Moving Right
  100.       @state = 5 if moving.eql?(1)
  101.     end
  102.     # Return State
  103.     return @state
  104.   end
  105.   #--------------------------------------------------------------------------
  106.   # * Move
  107.   #--------------------------------------------------------------------------
  108.   def move
  109.     time = Graphics.frame_count / (Graphics.frame_rate.to_f / (@speed * 5))
  110.     if @last_move_time < time
  111.  
  112.       # Pause for Animation
  113.       return if @pose != state
  114.  
  115.       # Phasing
  116.       if @phasing
  117.         d1 = (@display_x - @original_x).abs
  118.         d2 = (@display_y - @original_y).abs
  119.         d3 = (@display_x - @destination_x).abs
  120.         d4 = (@display_y - @destination_y).abs
  121.         self.opacity = [255 - ([d1 + d2, d3 + d4].min * 1.75).to_i, 0].max
  122.       end
  123.  
  124.       # Calculate Difference
  125.       difference_x = (@display_x - @destination_x).abs
  126.       difference_y = (@display_y - @destination_y).abs
  127.  
  128.       # Done? Reset, Stop
  129.       if [difference_x, difference_y].max.between?(0, 8)
  130.         @display_x = @destination_x
  131.         @display_y = @destination_y
  132.         @pose = state
  133.         return
  134.       end
  135.  
  136.       # Calculate Movement Increments
  137.       increment_x = increment_y = 1
  138.       if difference_x < difference_y
  139.         increment_x = 1.0 / (difference_y.to_f / difference_x)
  140.       elsif difference_y < difference_x
  141.         increment_y = 1.0 / (difference_x.to_f / difference_y)
  142.       end
  143.      
  144.       # Calculate Movement Speed
  145.       if @calculate_speed
  146.         total = 0; $game_party.actors.each{ |actor| total += actor.agi }
  147.         speed = @battler.agi.to_f / (total / $game_party.actors.size)
  148.         increment_x *= speed
  149.         increment_y *= speed
  150.       end
  151.      
  152.       # Multiply and Move
  153.       multiplier_x = (@destination_x - @display_x > 0 ? 8 : -8)
  154.       multiplier_y = (@destination_y - @display_y > 0 ? 8 : -8)
  155.       @display_x += (increment_x * multiplier_x).to_i
  156.       @display_y += (increment_y * multiplier_y).to_i
  157.     end
  158.     @last_move_time = time
  159.   end
  160.   #--------------------------------------------------------------------------
  161.   # * Set Movement
  162.   #--------------------------------------------------------------------------
  163.   def setmove(destination_x, destination_y)
  164.     unless (@battler.is_a?(Game_Enemy) and @stationary_enemies) or
  165.            (@battler.is_a?(Game_Actor) and @stationary_actors)
  166.       @original_x = @display_x
  167.       @original_y = @display_y
  168.       @destination_x = destination_x
  169.       @destination_y = destination_y
  170.     end
  171.   end
  172.   #--------------------------------------------------------------------------
  173.   # * Movement Check
  174.   #--------------------------------------------------------------------------
  175.   def moving
  176.     if (@display_x != @destination_x and @display_y != @destination_y)
  177.       return (@display_x > @destination_x ? 0 : 1)
  178.     end
  179.   end
  180.   #--------------------------------------------------------------------------
  181.   # * Set Pose
  182.   #--------------------------------------------------------------------------
  183.   def pose=(pose)
  184.     @pose = pose
  185.     @frame = 0
  186.   end
  187.   #--------------------------------------------------------------------------
  188.   # * Freeze
  189.   #--------------------------------------------------------------------------
  190.   def freeze
  191.     @freeze = true
  192.   end
  193.   #--------------------------------------------------------------------------
  194.   # * Fallen Pose
  195.   #--------------------------------------------------------------------------
  196.   def collapse
  197.     return
  198.   end
  199. end
  200.  
  201. #==============================================================================
  202. # ** Game_Actor
  203. #==============================================================================
  204.  
  205. class Game_Actor
  206.   #--------------------------------------------------------------------------
  207.   # * Actor X Coordinate
  208.   #--------------------------------------------------------------------------
  209.   def screen_x
  210.     if self.index != nil
  211.       return self.index * 45 + 450
  212.     else
  213.       return 0
  214.     end
  215.   end
  216.   #--------------------------------------------------------------------------
  217.   # * Actor Y Coordinate
  218.   #--------------------------------------------------------------------------
  219.   def screen_y
  220.     return self.index * 35 + 200
  221.   end
  222.   #--------------------------------------------------------------------------
  223.   # * Actor Z Coordinate
  224.   #--------------------------------------------------------------------------
  225.   def screen_z
  226.     return screen_y
  227.   end
  228. end
  229.  
  230. #==============================================================================
  231. # ** Scene_Battle
  232. #==============================================================================
  233.  
  234. class Scene_Battle
  235.   #--------------------------------------------------------------------------
  236.   # * Action Animation, Movement
  237.   #--------------------------------------------------------------------------
  238.   alias cbs_update_phase4_step3 update_phase4_step3
  239.   def update_phase4_step3(battler = @active_battler)
  240.     @rtab = !@target_battlers
  241.     target = (@rtab ? battler.target : @target_battlers)[0]
  242.     @moved = {} unless @moved
  243.     return if @spriteset.battler(battler).moving
  244.     case battler.current_action.kind
  245.     when 0 # Attack
  246.       if not (@moved[battler] or battler.guarding?)
  247.         offset = (battler.is_a?(Game_Actor) ? 40 : -40)
  248.         @spriteset.battler(battler).setmove(target.screen_x + offset, target.screen_y)
  249.         @moved[battler] = true
  250.         return
  251.       elsif not battler.guarding?
  252.         @spriteset.battler(battler).pose = 6 + rand(2)
  253.         @spriteset.battler(battler).setmove(battler.screen_x, battler.screen_y)
  254.       end
  255.     when 1 # Skill
  256.       @spriteset.battler(battler).pose = 10
  257.     when 2 # Item
  258.       @spriteset.battler(battler).pose = 8
  259.     end
  260.     @moved[battler] = false
  261.     @rtab ? cbs_update_phase4_step3(battler) : cbs_update_phase4_step3
  262.   end
  263.   #--------------------------------------------------------------------------
  264.   # * Hit Animation
  265.   #--------------------------------------------------------------------------
  266.   alias cbs_update_phase4_step4 update_phase4_step4
  267.   def update_phase4_step4(battler = @active_battler)
  268.     for target in (@rtab ? battler.target : @target_battlers)
  269.       damage = (@rtab ? target.damage[battler] : target.damage)
  270.       if damage.is_a?(Numeric) and damage > 0
  271.         @spriteset.battler(target).pose = 1
  272.       end
  273.     end
  274.     @rtab ? cbs_update_phase4_step4(battler) : cbs_update_phase4_step4
  275.   end
  276.   #--------------------------------------------------------------------------
  277.   # * Victory Animation
  278.   #--------------------------------------------------------------------------
  279.   alias cbs_start_phase5 start_phase5
  280.   def start_phase5
  281.     for actor in $game_party.actors
  282.       return if @spriteset.battler(actor).moving
  283.     end
  284.     for actor in $game_party.actors
  285.       unless actor.dead?
  286.         @spriteset.battler(actor).pose = 9
  287.         @spriteset.battler(actor).freeze
  288.       end
  289.     end
  290.     cbs_start_phase5
  291.   end
  292.   #--------------------------------------------------------------------------
  293.   # * Change Arrow Viewport
  294.   #--------------------------------------------------------------------------
  295.   alias cbs_start_enemy_select start_enemy_select
  296.   def start_enemy_select
  297.     cbs_start_enemy_select
  298.     @enemy_arrow.dispose
  299.     @enemy_arrow = Arrow_Enemy.new(@spriteset.viewport2)
  300.     @enemy_arrow.help_window = @help_window
  301.   end
  302. end
  303.  
  304. #==============================================================================
  305. # ** Spriteset_Battle
  306. #==============================================================================
  307.  
  308. class Spriteset_Battle
  309.   #--------------------------------------------------------------------------
  310.   # * Find Sprite From Battler Handle
  311.   #--------------------------------------------------------------------------
  312.   def battler(handle)
  313.     for sprite in @actor_sprites + @enemy_sprites
  314.       return sprite if sprite.battler == handle
  315.     end
  316.     return false
  317.   end
  318. end
  319.  
  320. #==============================================================================
  321. # ** Arrow_Base
  322. #==============================================================================
  323.  
  324. class Arrow_Base < Sprite
  325.   #--------------------------------------------------------------------------
  326.   # * Reposition Arrows
  327.   #--------------------------------------------------------------------------
  328.   alias cbs_initialize initialize
  329.   def initialize(viewport)
  330.     cbs_initialize(viewport)
  331.     self.ox = 14 # 32
  332.     self.oy = 10 # 40
  333.   end
  334. end
  335. class Spriteset_Battle
  336. attr_accessor :actor_sprites
  337. end
  338.  
  339. #==============================================================================
  340. # ** Scene_Battle
  341. #==============================================================================
  342. class Scene_Battle
  343. #--------------------------------------------------------------------------
  344. # * Constants
  345. #--------------------------------------------------------------------------
  346. # Loads Data System
  347. data_system = load_data("Data/System.rxdata")
  348. # Gets Element Array
  349. element_array = data_system.elements
  350. # Here's the Constants
  351. REMOVE_NO_REPLACE = element_array.index('Remove - No Replace')
  352. REMOVE_REPLACE_SAME = element_array.index('Remove - Replace Same')
  353. REMOVE_REPLACE_DEAD = element_array.index('Remove - Replace Dead')
  354. TEMP_REMOVE_SAME = element_array.index('Temp Remove - Same')
  355. TEMP_REMOVE_KO = element_array.index('Temp Remove - KO')
  356. #--------------------------------------------------------------------------
  357. # * Alias Listings
  358. #--------------------------------------------------------------------------
  359. alias sephraziel_actorreplacing_scenebattle_main main
  360. alias sephraziel_actorreplacing_scenebattle_msar make_skill_action_result
  361. alias sephraziel_actorreplacing_scenebattle_ups6 update_phase4_step6
  362. #--------------------------------------------------------------------------
  363. # * Main Processing
  364. #--------------------------------------------------------------------------
  365. def main
  366. # This Part Executes Before our original Main Method
  367. # Creates Replacing Array
  368. @sephraziel_replacing_array = []
  369. # Calls our old Main Method
  370. sephraziel_actorreplacing_scenebattle_main
  371. # Once our loop in the main method is broke, and it
  372. # does the rest of the stuff at the end of our
  373. # default main method, these lines will execute
  374. # This code block goes through each idea in the actor replacing array
  375. for id in @sephraziel_replacing_array
  376. # Adds the actor back in with the actor id
  377. $game_party.add_actor(id)
  378. end
  379. end
  380. #--------------------------------------------------------------------------
  381. # * Make Skill Action Results
  382. #--------------------------------------------------------------------------
  383. def make_skill_action_result
  384. # Get skill
  385. skill = $data_skills[@active_battler.current_action.skill_id]
  386. # Checks for Temp Remove
  387. if skill.element_set.include?(TEMP_REMOVE_SAME) ||
  388. skill.element_set.include?(TEMP_REMOVE_KO)
  389. # Gets Active Battler Index
  390. index = $game_party.actors.index(@active_battler)
  391. # Turns off visiblilty
  392. @spriteset.actor_sprites[index].visible = false
  393. end
  394. # Original Method
  395. sephraziel_actorreplacing_scenebattle_msar
  396. end
  397. #--------------------------------------------------------------------------
  398. # * Frame Update (main phase step 6 : refresh)
  399. #--------------------------------------------------------------------------
  400. def update_phase4_step6
  401. # Execute our original method
  402. sephraziel_actorreplacing_scenebattle_ups6
  403. # New Part
  404. if @phase4_step == 1
  405. # If Casing Skill
  406. if @active_battler.current_action.kind == 1
  407. # Gets skill
  408. skill = $data_skills[@active_battler.current_action.skill_id]
  409. # First, we check for Remove - No Replace Skills
  410. if skill.element_set.include?(REMOVE_NO_REPLACE)
  411. # Removes the Actor from the party
  412. $game_party.remove_actor(@active_battler.id)
  413. # Now, we check for Remove - Replace Same
  414. elsif skill.element_set.include?(REMOVE_REPLACE_SAME)
  415. # Stores Actor Id Into Array
  416. @sephraziel_replacing_array << @active_battler.id
  417. # Removes the Actor from the party
  418. $game_party.remove_actor(@active_battler.id)
  419. # Finally, we check for Remove - Replace Dead
  420. elsif @skill.element_set.include?(REMOVE_REPLACE_DEAD)
  421. # Stores Actor Id Into Array
  422. @sephraziel_replacing_array << @active_battler.id
  423. # Kills Actor
  424. @active_battler.hp = 0
  425. # Removes the Actor from the party
  426. $game_party.remove_actor(@active_battler.id)
  427. end
  428. # Checks for Temp Remove
  429. if skill.element_set.include?(TEMP_REMOVE_SAME) ||
  430. skill.element_set.include?(TEMP_REMOVE_KO)
  431. # Gets Active Battler Index
  432. index = $game_party.actors.index(@active_battler)
  433. # KO's actor, if Temo Remove - KO
  434. if skill.element_set.include?(TEMP_REMOVE_KO)
  435. @active_battler.hp = 0
  436. end
  437. # Turns off visiblilty
  438. @spriteset.actor_sprites[index].visible = true
  439. end
  440. end
  441. # Refreshes Status Window
  442. @status_window.refresh
  443. end
  444. end
  445. end
  446.  
Expand to see the code.
The error is basically saying that you have something that doesn't exist (nil) trying to be computed as a number (or Fixnum). Essentially, something in the parenthesis of the "self.src_rect.set" is for some reason non existant. The most probable thing is that either your width or your height or even both are nil (non existant) because the bitmap or sprite it's referring to (this new enemy sprite) may not be there. Try changing the "@width" and "@height" words on that line to random numbers, like so:

  1. self.src_rect.set(100 * @frame, 100 * @pose, 100, 100)
Expand to see the code.


If this doesn't draw an error, we can move from there. Hope this was helpful :)
Thanks for the quick reply! ALright so I entered your code to replace that line and still got errors, however upon tinkering with it and replacing a few things, I noticed that if I change "@pose" to a number I don't get errors anymore. Some new weird things began happening, however:

If I change "@pose" to a number, my battlers cease to animate and remain on whichever pose correlates to the number I change it to (my animated battlers have 11 different poses ranging from fighting pose, defending, using an item, defeated, etc.) This also applies to the enemy battlers. Taking out your code, and just using the normal code I had to begin with I've also noticed some weird observations.

My game will only generate the error under this circumstance:

I only have ONE character fighting more than ONE enemy.

Basically, I've noticed that if I have more than two player characters in the party fight any number of enemies, I don't get any error. If I only have one character in the party fight any more than 1 enemy, however, I generate the error. I can have one character vs. one enemy and not generate the error, but if I place any more enemies, I get the error.

Hopefully some of my observations can help? I really appreciate you already trying to help me out. This is sort of a weird bug that kinda' places everything on halt until I get it fixed. Let me know if you need any screenshots. Thanks again!
Alright this narrows down things. First of all, setting @pose to one value should do what you described, the battler should only be set to one pose. But, since you don’t get any errors when you set this to a constant value, that means @pose is what’s causing the errors, and apparently @pose only becomes nil when you have one character versus two or more enemies. I did some bug testing and I was actually able to create your error by putting above the line in question this line:

  1. @pose = nil
Expand to see the code.


And this gave me the exact same error you got, however the script by itself in its normal state does not give me any errors even in the way you told me it would (1 character vs 2+ enemies). So that means another script is causing this error and is setting your @pose value to nil somehow or it’s simply a compatibility issue. So here’s what you do, cut out one script at a time and paste it in a notepad file, then playtest your game. If the error is still there that means that’s not the script causing the issue, keep doing this until you find the script that when pulled out, the error is gone (when I say error I’m talking about the situation where it’s one actor vs. two or more enemies).

Hope this helps, man :)
So I started removing scripts and tinkering around with my game and I've found two more equally weird factors that seem to be playing into this error I keep getting. When I remove the following script:

  1. #ENEMY HP WINDOW
  2. class Window_EnemyHP < Window_Base
  3. def initialize
  4. super(0, 0, 160, 140)
  5. self.contents = Bitmap.new(width - 32, height - 32)#32
  6. self.contents.font.name = $defaultfontface
  7. self.contents.font.size = $defaultfontsize
  8. self.opacity = 0
  9. refresh
  10. end
  11. #DISPOSE
  12. def dispose
  13. super
  14. end
  15.  
  16. #REFRESH
  17. def refresh
  18. self.contents.clear
  19. for i in 0...$game_troop.enemies.size
  20. enemy = $game_troop.enemies[i]
  21. x = 0
  22. y = i * 35
  23. draw_enemy_name(enemy, x, y)
  24. draw_enemy_hp_meter(enemy, x, y)
  25. end
  26. end
  27. end
Expand to see the code.


and I delete the traces of this script within my "Scene_Battle" scripts, the error seemingly goes away.

However, when I was messing around with enemy stats and now see that if the enemy's agility is greater than my character, the error will occur. If it is not, however, the error won't occur. So now I'm guessing it has something to do with the speed of the enemies vs. the speed of my character's. Interestingly, I was able to fight 3 enemies with one player character so as long as their agility was lower than my player character. A temporary solution I suppose, but it's still bugging me as to what is causing this. Thanks again for the help!
Alright two questions to make sure I got this:

1. If you remove that script you posted (the enemy hud script), regardless of what you do (like if you have the enemy agility higher) it still won't cause any errors right? If so, then I think it would be very easy to find your error.

2. Regardless of if a script is removed, if the enemy agility is lower, everything will run properly, right? (If so then it will be harder to find your error lol)

Finally, I think you're gonna have to send me a test game with all your scripts in it, I'm more of a "hands on" guy so I think if I can see all your scripts and how they relate, I'm pretty positive I can find the problem :)

EDIT: Also, I put that enemy hp script in my script editor with the original script and I even made the enemies have 999 agility and still no error. If you're sure that if no other scripts that you cut out didn't stop the error (meaning there was no compatibility issues), then I'm nearly 100% sure this error is caused by those "traces of this script within my "Scene_Battle" scripts".
1) So I re-took the enemy HP script out and I actually still get the error if the enemies are faster than any player character so I guess that wasn't the conflicting script.

2) As far as I know, as long as the enemy's agility is lower than any player character, all scripts work and everything runs properly.

In hindsight, I hadn't completely removed all possible scripts, so perhaps another script is truly the issue.

Just to be sure, here's a test game link. Again, I appreciate your help on the matter.

http://dl.dropbox.com/u/43636206/JDSLAS ... 20Game.rar
No matter what I do for some reason I keep getting "RGSS Player is not running" even if I copy the scripts out. Could you finish doing the cut-out/test method first to see which script could be causing the error and then I can zone in that script?
EDIT: Forget everything I wrote below, actually I found a solution. Just delete RGSS102E.dll and keep RGSS104E.dll in the same folder as the demo. It should work fine after that. It did for me lol.






Oh yeah, that's a weird issue I've been getting ever since I switched to Windows 7. To bypass that "RGSS player has stopped working" error, open up the config file called "Game" (Not the one that opens up the project in RMXP) and it should open up a notepad file. Within the text of that notepad file you'll see that it says:


[Game]
Library=RGSS102E.dll
Scripts=Data\Scripts.rxdata
Title=Samurai Burst
RTP1=Standard
RTP2=
RTP3=


Change the library from RGSS102E.dll to RGSS104E.dll and save. Keep this notepad file open. If you ever save in RMXP, you'll get the RGSS player isn't working error so you'll have to go back to the notepad file and save again. It's a really weird error.
Alright, finally got it working! Weird thing though, I set the enemy's agility (Batra) to 999 and no errors occurred lol...did you use another enemy?
Nope I used Batra . . . lemme tinker with the game and do what you did. One sec.

EDIT: I know what it is. I removed all of the attacks that Batra could do. If you go back to the enemy tab and make him do any type of attack. THAT's when the errors begin to occur
Alright I tried that out too, I gave Batra any skill or basic attack and still no error. Could you give me the exact skills and...actually is it possible you could just give a screenshot of that enemy page of Batra?
Here is the screenshot for the enemy screen for Batra. You're doing just one character vs. more than one Batra right? The error always occur whenever I do Batra x3 vs. just Hayato (or any character) alone so as long as their speed is lower than Batra.

Image
Alright, I did it exactly as so and I'm still not getting any errors...so I'm gonna have to ask a couple questions first because this might actually lead me to the error (sorry I haven't been able to pinpoint it yet :( )

1. The demo you sent me, was that exactly what you have?

2. So if the battle is 1 actor versus 2 or more enemies, there will be an error even if the agility of the enemy is lower?

3. (Opposite of question two) if the agility of the enemy is higher, there will be an error even if the battle is 1 actor versus 1 enemy?
1) I made a new game demo (to avoid sending excess graphic and unneeded files) but when I run the game demo I get the very same error. Strange that you're not getting it.

2) No, if I have 1 actor vs. 2 or more enemies but their agility is LOWER than the player character, I get no errors.

3) Even if I do 1 vs. 1, if I set the enemy's agility higher than the player character's it errors. I noticed that the error occurs if the enemy gets the first attack in the battle.

I can send you my exact game file if that would help.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=76715