Error with Yanfly's Ace Battle on line 688 Forced Action

● ARCHIVED · READ-ONLY
Started by diablodevil2 4 posts View original ↗
  1. Heya! I'm trying out Yanfly's neat battle script, but I think it's having an issue with an evented 'coin assault' skill I made up. 
     
    Specifically, the error reads;
     
    Script 'Yanfly's' line 688; NoMethodError ocurred.
     
    undefinded method 'forced_action_remove' for Switch:Module
     
    Here's the section in question;
     


    Spoiler
      #--------------------------------------------------------------------------

      # overwrite method: force_action

      #--------------------------------------------------------------------------

      def self.force_action(battler)

        @action_forced = [] if @action_forced == nil

        @action_forced.push(battler)

        return unless Switch.forced_action_remove

        @action_battlers.delete(battler)

      end
     

    My 'Coin Assault' skill may be a little complex, but I think the main issue causing it is the Force Action. 

     

    I have a Troop event that basically triggers a common event when the test enemy has the state that the skill puts on. 

     

    Here is that event;

    http://imgur.com/sp8G2AS

     

    So, I'm not terribly sure what I'm doing wrong. But I appreciate any insight! Thanks for reading. c:
  2. Do you use Yanfly's Core Engine as well? Placing it above the Battle Engine may solve this problem :)
  3. When you ask for help with scripts, please include a LINK to the script so people can look at it.


    Did you start a new game after adding the script? Did you configure the script according to the instructions? If the answer to any of those is "no", please do those things and try again.
  4. DoubleX said:
    Do you use Yanfly's Core Engine as well? Placing it above the Battle Engine may solve this problem :)
    Mm! That worked, thanks Double.