Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: G_G on August 13, 2008, 05:25:31 pm

Title: Add-Ons + Reflect Trouble Help Please!!!!!!!!!!
Post by: G_G on August 13, 2008, 05:25:31 pm
I have the scripts the order they are in but when I go into battle and I use the Blue Skill it causes an error and when I take out the reflect it works fine. Any idead?
Title: Re: Add-Ons + Reflect Trouble Help Please!!!!!!!!!!
Post by: Aqua on August 13, 2008, 05:38:38 pm
Can you tell us what the error message is? :)
Title: Re: Add-Ons + Reflect Trouble Help Please!!!!!!!!!!
Post by: Blizzard on August 13, 2008, 05:51:53 pm
So you have them in the right order, right?

http://forum.chaos-project.com/index.php?topic=23.0

Ok, do you have the most recent version (Tons v6.54b and Reflect v3.0b)?

http://forum.chaos-project.com/index.php?topic=105.0
http://forum.chaos-project.com/index.php?topic=112.0
Title: Re: Add-Ons + Reflect Trouble Help Please!!!!!!!!!!
Post by: G_G on August 13, 2008, 07:35:29 pm
Yes most recent and all in order. Here is the error message

Script 'Add-Ons 3' line 1327: No method error ocurred
undefined method 'size'for nil:Nilclass

and here is the script line under the add ons


     if ids.size > 0 <= line 1327
          skill = $data_skills[ids[rand(ids.size)]]
          if battler.skills.include?(skill.id)
            target.damage
          else
            battler.learn_skill(skill.id)
            target.damage = "New Skill"
          end
        else
          target.damage = 'Miss'
        end
      else
        target.damage = 'Miss'
      end
    end
  end
   
end
Title: Re: Add-Ons + Reflect Trouble Help Please!!!!!!!!!!
Post by: Blizzard on August 13, 2008, 07:52:07 pm
Swap these two lines above:

        if target.is_a?(Game_Enemy)
          ids = []


I'll be sure to fix it in the next release. And please use [ code ] tags in future. Code can get messed up if posted just like that.