Game_Action error message

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I am a good hour into a play through and have fought probably 20+ battles without any problem. However, for no obvious reason, I've just got this error message:

upload_2019-4-3_15-10-44.png

Nothing special had just happened. An actor had defeated an enemy using Attack, so it's not a knock-on effect from using a skill.

Does anyone have any idea what might have caused this?

For information's sake, I am using Yami's PCTB script which can be found here.
 

CrushedMeat

Villager
Member
Joined
Mar 30, 2019
Messages
8
Reaction score
11
First Language
English
Primarily Uses
RMMV
I guess it's because Yami's PCTB script change turn's order.
So after the enemy get killed, the system still calculate its next action, thus lead to this error?
You can prevent it by insert this script above another custom scripts,
it's not the nicest way but, well
Code:
  #--------------------------------------------------------------------------
  # * Create Target Array
  #--------------------------------------------------------------------------
class Game_Action
  def make_targets
    if !forcing && subject.confusion?
      [confusion_target]
    elsif !item.nil? && item.for_opponent?
      targets_for_opponents
    elsif !item.nil? && item.for_friend?
      targets_for_friends
    else
      []
    end
  end
end
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@CrushedMeat I've done about 10 or so battles, and there have been no problems, so it looks like your fix works.

I am extremely grateful to you for this. Thank you.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top