View Single Post
  #17    
Old December 10th, 2012, 04:56 AM
ppooookkkkkkk
Banned
 
Join Date: May 2012
Location: Newbud town (Pokemon Morning/Night)
Age: 13
Gender: Male
Nature: Gentle
If you hve used this without any error then you can defianatly help me. When i activate this script all maps tiles change to the one set for the script and now Everything went black even the tiles set for the script. Heres the code


Code:
#==============================================================================
# ● Pokemon Season Script by Help-14. Remember to give Credit.
#
#   - If your tileset picture's name is Johto.png, you can make season tileset
#       with name Spring_Johto.png, Summer_Johto.png, Autumn_Johto.png 
#       and Winter_Johto.png.
#
#   - If you don't make those season tileset file, the script will use your
#       default tileset: Johto.png.
#==============================================================================
  #----------------------------------------------------------------------------
  #   Tileset
  #----------------------------------------------------------------------------
  
def pbGetTileset(name,hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
      if File.exists?("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Summer_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
      if File.exists?("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Autumn_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
      if File.exists?("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name)
        return AnimatedBitmap.new("Graphics/Tilesets/Winter_PkmnBlackWhiteSet.png"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Tilesets/PkmnBlackWhiteSet.png"+name,hue).deanimate
    end
end
  #----------------------------------------------------------------------------
  #   Autotiles
  #----------------------------------------------------------------------------
def pbGetAutotile(name,hue=0)
    if Time.now.mon==2 or Time.now.mon==3 or Time.now.mon==4
      if File.exists?("Graphics/Autotiles/Spring_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Spring_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==5 or Time.now.mon==6 or Time.now.mon==7
      if File.exists?("Graphics/Autotiles/Summer_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Summer_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==8 or Time.now.mon==9 or Time.now.mon==10
      if File.exists?("Graphics/Autotiles/Autumn_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Autumn_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    elsif Time.now.mon==11 or Time.now.mon==12 or Time.now.mon==1
      if File.exists?("Graphics/Autotiles/Winter_"+name)
        return AnimatedBitmap.new("Graphics/Autotiles/Winter_"+name,hue).deanimate
      else
        return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
      end
    else
      return AnimatedBitmap.new("Graphics/Autotiles/"+name,hue).deanimate
    end 
end
Reply With Quote