TiagoArraes
Paciência acima de tudo!
- 4
- Posts
- 8
- Years
- Seen Jan 4, 2017
Hello, I'm Tiago Arraes, I'm brazilian student of technology.
Obs: Sorry for my bad english, I speak some words...
I developed a functional example script of the Alola Forms.
--- How to Install ---
First Step: Copy and paste in "PField_EncounterModifiers".
- For problems with breaking code, set the thread to Printable Version.
Second Step: And now copy and paste in "Pokemon_MultipleForms" after Hoopa.
After the second step, save the modifications and test.
Please give credits for Tiago Arraes if you appreciate.
Obs: Sorry for my bad english, I speak some words...
I developed a functional example script of the Alola Forms.
--- How to Install ---
First Step: Copy and paste in "PField_EncounterModifiers".
- For problems with breaking code, set the thread to Printable Version.
Code:
ALOLA_MAPS = [6,9,15,35,47,49,57]
Events.onWildPokemonCreate+=proc {|sender,e|
pokemon=e[0]
maps=ALOLA_MAPS
if $game_map && maps.include?($game_map.map_id)
pokemon.form=1
pokemon.calcStats
pokemon.resetMoves
end
}
Second Step: And now copy and paste in "Pokemon_MultipleForms" after Hoopa.
Code:
###################################################
MultipleForms.register(:VULPIX,{
"type1"=>proc{|pokemon|
next getID(PBTypes,:ICE) if pokemon.form==1 # Alolan
next if pokemon.form==0 # Normal
},
"type2"=>proc{|pokemon|
next getID(PBTypes,:ICE) if pokemon.form==1 # Alolan
next if pokemon.form==0 # Normal
},
"getAbilityList"=>proc{|pokemon|
next [[getID(PBAbilities,:SNOWCLOAK),0],[getID(PBAbilities,:SNOWWARNING),1]] if pokemon.form==1 # Alolan
next if pokemon.form==0 # Normal
},
"getBaseStats"=>proc{|pokemon|
next if pokemon.form==0 # Normal
next [38,41,40,50,65,65] # Alolan
},
"getMoveList"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1; movelist=[[1,:POWDERSNOW],[4,:TAILWHIP],[7,:ROAR],[10,:ICESHARD],
[12,:CONFUSERAY],[15,:ICYWIND],[18,:PAYBACK],[20,:MIST],
[23,:FEINTATTACK],[26,:HEX],[28,:AURORABEAM],[31,:EXTRASENSORY],
[34,:SAFEGUARD],[36,:ICEBEAM],[39,:IMPRISION],[42,:BLIZZARD],
[44,:GRUDGE],[47,:CAPTIVATE],[50,:SHEERCOLD]]
end
for i in movelist
i[1]=getConst(PBMoves,i[1])
end
next movelist
},
"getMoveCompatibility"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1; movelist=[# TMs
:ROAR,:TOXIC,:HAIL,:HIDDENPOWER,:FROSTBREATH,
:PROTECT,:ICEBEAM,:SAFEGUARD,:RAINDANCE,:BLIZZARD,
:RETURN,:FRUSTRATION,:DOUBLETEAM,:SLEEPTALK,:FACADE,
:REST,:ATTRACT,:CONFIDE,:ROUND,:PAYBACK,
:PSYCHUP,:SWAGGER,:SUBSTITUTE]
end
for i in 0...movelist.length
movelist[i]=getConst(PBMoves,movelist[i])
end
next movelist
}
})
After the second step, save the modifications and test.
Please give credits for Tiago Arraes if you appreciate.
Last edited: