Quote:
Originally Posted by ppooookkkkkkk
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
|
Perhaps you didn't even read the instructions inside the code itself. I swear people, read the directions!
Did you rename ALL your autotiles to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]"?
Or for normal tilesets, you have to go through the code and change things like:
if File.exists?("Graphics/Tilesets/Spring_PkmnBlackWhiteSet.png"+name)
to whatever your tilesets' names are.
For example, if your tileset's name is Spring_Johto.png, then you need to change it to:
if File.exists?("Graphics/Tilesets/Spring_Johto.png"+name)
And you do this for every line of code referencing the default sets.
Try
everything I told you. If it doesn't work, try my experimental script I worked on a few months ago. I've never used it myself, so you'll have to tell me if it works or not. Remember that you still have to rename all of your autotiles and tilesets to "Spring_[insert name here]", "Summer_[insert name here]", "Winter_[insert name here]", or "Autumn_[insert name here]".
Code:
#==============================================================================
# ● Pokemon Season Script by Help-14. Experimental editing by Musketeer.
# ● Give credit to Help-14 and Musketeer if you use this script.
#
# - 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_"+name)
return AnimatedBitmap.new("Graphics/Tilesets/Spring_"+name,hue).deanimate
else
return AnimatedBitmap.new("Graphics/Tilesets/"+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_"+name)
return AnimatedBitmap.new("Graphics/Tilesets/Summer_"+name,hue).deanimate
else
return AnimatedBitmap.new("Graphics/Tilesets/"+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_"+name)
return AnimatedBitmap.new("Graphics/Tilesets/Autumn_"+name,hue).deanimate
else
return AnimatedBitmap.new("Graphics/Tilesets/"+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_"+name)
return AnimatedBitmap.new("Graphics/Tilesets/Winter_"+name,hue).deanimate
else
return AnimatedBitmap.new("Graphics/Tilesets/"+name,hue).deanimate
end
else
return AnimatedBitmap.new("Graphics/Tilesets/"+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
__________________
Embrace the everlasting change that this world revolves around...
Goodbye, PokéCommunity.