Tutorial 3.5 Skill Self Effects Crash

I'm sorry if this was previously answered, but I've looked and I haven't found a solution that worked for me by searching.  I'm new to the forum and I've been working from the Touchfuzzy tutorial.  Everything has gone smoothly aside from the part in 3.5 where it gives you a script to add into the game for Self Skill Effects.  Anytime I try to test a battle, after the player attacks I get an error message

 

Script 'Skill Set Effects' line 37:NoMethodError occurred  

Undefined method '[ ]' for nil:NilClass

 

I don't know anything about scripting so I have no idea what that means.  I searched the site and saw that other people had the same problem and I already tried replacing the script with the "fixed" version of the script that they had put up.  So I tried switching the version I had with the one there, but it didn't work.  I even tried taking the script out altogether and that wasn't working either, I would still get the same message.  I don't know if I was removing it incorrectly or something.  At this point I have no clue what to do but start over from scratch (which might make me cry T_T )

 

Aside from the script from the tutorial the only other thing I've altered is adding on DLC tile packs, the modern and futuristic tiles from Steam (also got RPG Maker from Steam).  So if anybody has any ideas that can help fix my game, I'd be really greatful...  

 

V Here's the script I used, if it'll be useful V

 

Spoiler
#===============================================================================

# Skill Self Effects

# By Jet10985 (Jet)

# Requested by Touchfuzzy

#===============================================================================

# This script will allow you to specify a skill's effects tot arget the user

# instead of the target, on skills that don't already effect the user.

# This script has: 0 customization options.

#===============================================================================

# Overwritten Methods:

# None

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

# Aliased methods:

# Game_Battler: item_effect_apply

#===============================================================================

=begin

To specify the effects, use this notetag in the skill's notebox:

<self effect: 1>

or

<self effect: 1, 2, 3> to specify more than 1 effect

--------------------------------------------------------------------------------

Use of this script could be as the following.

You make a "Berserk Strike" skill, which does 200% damage to an enemy.

You make the 2nd effect "Defense Down 50%" and want it applied to the user.

You'd use this notetag: <self effect: 2>

=end

class RPG::Skill

  def self_effects

if @self_effects.nil?

 @self_effects = []

 self.note.each_line {|a|

scan = a.scan(/<self[ ]*effect[ ]*\:[ ]*(\d+(?:[ ]*,[ ]*\d+)*)>/i)

begin

 scan[0][0].scan(/\d+/).each {|b|

@self_effects.push(@effects[b.to_i - 1]) if b.to_i >= 1

 }

rescue Exception => e

end

 }

end

@self_effects

  end

end

class Game_Battler

  alias jet3745_item_effect_apply item_effect_apply

  def item_effect_apply(user, item, effect, reffed = false)

if item.is_a?(RPG::Skill) && item.self_effects.include?(effect) && !reffed

 user.item_effect_apply(user, item, effect, true)

 return

end

jet3745_item_effect_apply(user, item, effect)

  end

end

V And here is the error message, if that helps V

Spoiler
[IMG]http://i122.photobucket.com/albums/o263/Saintsinna74/Screenshot65_zps1a20dcaf.png[/IMG]

Someone please respond quick!  I don't know how long I can hold in my manly tears of eternal sorrow T_T
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Searching for "Jet's Self Effects Error" gives a few pages, and this topic:


http://forums.rpgmakerweb.com/index.php?/topic/6955-jets-self-effects-script-error/

Original thread: https://forums.rpgmakerweb.com/threads/tutorial-3-5-skill-self-effects-crash.36155/