Add-Ons + Reflect Trouble Help Please!!!!!!!!!!

Started by G_G, August 13, 2008, 05:25:31 pm

Previous topic - Next topic

G_G

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?

Aqua


Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

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

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.