There is a second form for Lycanroc, Dusk Form, where Rockruff must have the ability Own Time and the game time should be between 17h-18h. So, I decided to make this script. Let's go!
First, inside pokemon.txt, add to red line:
Then, open your script. Go to 'PokeBattle_Pokemon' and add the red line:
Now, to add 'LevelDayTime' to your game, search 'module PBEvolution' in 'Pokemon_Evolution' script and add the red line:
P.S: '31' or your last number.
Add into 'EVONAMES':
Keep '1' in EVOPARAM:
Now, search to 'def pbMiniCheckEvolution(pokemon,evonib,level,poke)' and replace '# Add code for custom evolution type 1' to:
Finally, let's write a definition to 'isDusk?'. In 'PField_Time' script paste this:
P.S: If you want to change the hours just change the numbers.
Below or above (whatever) this:
P.S: To add TM/Tutor Moves, go to 'Pokemon_Forms' and paste below HOOPA code:
And done! :D
If the player haves a Rockruff with Own Tempo ability, it will evolve do Lycanroc Dusk Form (the time must to be between 17-18h).
Give me credits if use!
See ya!
First, inside pokemon.txt, add to red line:
Spoiler:
Code:
[744]
Name=Rockruff
InternalName=ROCKRUFF
Type1=ROCK
BaseStats=45,65,40,60,30,40
GenderRate=Female50Percent
GrowthRate=Medium
BaseEXP=56
EffortPoints=0,1,0,0,0,0
Rareness=190
Happiness=70
Abilities=KEENEYE,VITALSPIRIT
HiddenAbility=STEADFAST[COLOR="red"],OWNTEMPO[/COLOR]
Moves=1,TACKLE,1,LEER,4,SANDATTACK,7,BITE,12,HOWL,15,ROCKTHROW,18,ODORSLEUTH,23,ROCKTOMB,26,ROAR,29,STEALTHROCK,34,ROCKSLIDE,37,SCARYFACE,40,CRUNCH,45,ROCKCLIMB,48,STONEEDGE
EggMoves=CRUSHCLAW,FIREFANG,THUNDERFANG,SUCKERPUNCH,THRASH
Compatibility=Field
StepsToHatch=4096
Height=0.5
Weight=9.2
Color=Brown
Shape=8
Habitat=Mountain
RegionalNumbers=0,0,0,0,0,0,23,0,744
Kind=Puppy
Pokedex=When it rubs the rocks on its neck against you, that's proof of its love for you. However, the rocks are sharp, so the gesture is quite painful!
BattlerPlayerY=22
BattlerEnemyY=26
BattlerAltitude=0
Evolutions=LYCANROC,[COLOR="Red"]LevelDayTime[/COLOR],25
Then, open your script. Go to 'PokeBattle_Pokemon' and add the red line:
Spoiler:
Code:
def hasHiddenAbility?
abil=abilityIndex
return abil!=nil && abil>=2
end
[COLOR="red"] def hasEventAbility?
abil=abilityIndex
return abil!=nil && abil>=3
end[/COLOR]
Now, to add 'LevelDayTime' to your game, search 'module PBEvolution' in 'Pokemon_Evolution' script and add the red line:
Spoiler:
Code:
LevelDay = 26
LevelNight = 27
LevelDarkInParty = 28
LevelRain = 29
HappinessMoveType = 30
[COLOR="red"] LevelDayTime = 31[/COLOR]
Add into 'EVONAMES':
Spoiler:
Code:
"LevelDay","LevelNight","LevelDarkInParty","LevelRain","HappinessMoveType",
[COLOR="red"]"LevelDayTime"[/COLOR],"Custom2","Custom3","Custom4","Custom5"
Keep '1' in EVOPARAM:
Spoiler:
Code:
1,1,1,1,5, # LevelDay, LevelNight, LevelDarkInParty, LevelRain, HappinessMoveType
[COLOR="red"]1[/COLOR],1,1,1,1 # [COLOR="red"]LevelDayTime[/COLOR],Custom 2-5
Now, search to 'def pbMiniCheckEvolution(pokemon,evonib,level,poke)' and replace '# Add code for custom evolution type 1' to:
Spoiler:
Code:
when PBEvolution::Trade, PBEvolution::TradeItem, PBEvolution::TradeSpecies
return -1[COLOR="red"]
when PBEvolution::LevelDayTime
if PBDayNight.isDusk?
pokemon.form=2
if pokemon.level>=level && pokemon.hasEventAbility?
return poke
else
if PBDayNight.isDay?
pokemon.form=0
return poke if pokemon.level>=level
else
pokemon.form=1
return poke if pokemon.level>=level
end
end
end
if PBDayNight.isNight?
pokemon.form=1
return poke if pokemon.level>=level && PBDayNight.isNight?
end
if PBDayNight.isDay?
pokemon.form=0
return poke if pokemon.level>=level && PBDayNight.isDay?
end
[/COLOR]
Finally, let's write a definition to 'isDusk?'. In 'PField_Time' script paste this:
Spoiler:
Code:
# Returns true if it's dusk.
def self.isDusk?(time=nil)
time = pbGetTimeNow if !time
[COLOR="red"]return (time.hour[COLOR="blue"]>=17[/COLOR] && time.hour<[COLOR="blue"]18[/COLOR])[/COLOR]
end
Below or above (whatever) this:
Spoiler:
Code:
# Returns true if it's night.
def self.isNight?(time=nil)
time = pbGetTimeNow if !time
return (time.hour>=20 || time.hour<5)
end
P.S: To add TM/Tutor Moves, go to 'Pokemon_Forms' and paste below HOOPA code:
Spoiler:
Code:
MultipleForms.register(:ROCKRUFF,{
"getMoveCompatibility"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1; movelist=[# Move Tutors Midnight Form
:COVET,:DUALCHOP,:ENDEAVOR,FIREPUNCH,:FOCUSPUNCH,:FOULPLAY,
:HYPERVOICE,:IRONDEFENSE,:IRONHEAD,:IRONTAIL,:LASERFOCUS,
:LASTRESORT,:OUTRAGE,:SNORE,:STEALTHROCK,:STOMPINGTANTRUM,
:THROATCHOP,:THUNDERPUNCH,:UPROAR,:ZENHEADBUTT]
when 2; movelist=[# Move Tutors Dusk Form
:COVET,:DRILLRUN,:EARTHPOWER,:ENDEAVOR,:HYPERVOICE,
:IRONDEFENSE,:IRONHEAD,:IRONTAIL,:LASTRESORT,:OUTRAGE,
:SNORE,:STEALTHROCK,:STOMPINGTANTRUM,:ZENHEADBUTT]
end
for i in 0...movelist.length
movelist[i]=getConst(PBMoves,movelist[i])
end
next movelist
}
})
MultipleForms.copy(:ROCKRUFF,:LYCANROC)
And done! :D
If the player haves a Rockruff with Own Tempo ability, it will evolve do Lycanroc Dusk Form (the time must to be between 17-18h).
Give me credits if use!
See ya!
Last edited: