Dusk lycanrok evo script

Resource Dusk lycanrok evo script 1

Ash2louis

Novice
Member
Posts
13
#2
Ash2louis updated Dusk lycanrok evo script with a new update entry:

a littel fix

i had mad some mistake in the script for u who know how to edit scripts i hoop you could do it but for you who cant i am sorry it took so long
Code:
Go and find "PField_Time" in you scripts and replace it with this


#===============================================================================
# Day and night system
#===============================================================================
def pbGetTimeNow
  return Time.now
end



module PBDayNight
  HourlyTones=[...
Read the rest of this update entry...
 

Maruno

Pokémon Essentials dev
Essentials Developer
Posts
135
#3
You shouldn't tell people to blindly replace whole script sections, especially when you haven't changed most of it. All you've done is added a single new method (which tells you if it's dusk); this can easily be expressed as:

Add this code in a new script section above Main:

Ruby:
module PBDayNight
  # Returns true if it's dusk.
  def self.isDusk?(time=nil)
    time = pbGetTimeNow if !time
    return (time.hour==18)
  end
end
 
Top