- 76
- Posts
- 9
- Years
- Seen Dec 9, 2022
Hello, so I included two different forms of Diglett and wanted to make them appear on a certain map. So I was checking the forum and I did the following
My RPG Maker doesn't indicate any mistake and I can normally start my game but the form specific Diglett never appear.
Code:
MultipleForms.register(:DIGLETT,{
"getFormOnCreation"=>proc{|pokemon|
maps1=[75] # Map IDs for form 1
maps2=[76] # Map IDs for form 2
if $game_map && maps1.include?($game_map.map_id)
next 1
elsif $game_map && maps2.include?($game_map.map_id)
next 2
else
next 0
end
},
"type1"=>proc{|pokemon|
next if pokemon.form==0
case pokemon.form
when 1; next getID(PBTypes,:GROUND)
when 2; next getID(PBTypes,:ICE)
end
},
"type2"=>proc{|pokemon|
next if pokemon.form==0
case pokemon.form
when 1; next getID(PBTypes,:STEEL)
when 2; next getID(PBTypes,:NORMAL)
end
},
"getMoveList"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1;movelist=[[1,:SANDTOMB],[1,:ROTOTILLER],[1,:NIGHTSLASH],
[1,:TRIATTACK],[1,:SANDATTACK],[1,:METALCLAW],
[1,:GROWL],[4,:GROWL],[7,:ASTONISH],
[10,:MUDSLAP],[14,:MAGNITUDE],[18,:BULLDOZE],
[22,:SUCKERPUNCH],[25,:MUDBOMB],[30,:EARTHPOWER],[35,:DIG],
[41,:IRONHEAD],[47,:EARTHQUAKE],[53,:FISSURE]]
when 2;movelist=[[1,:SANDTOMB],[1,:ROTOTILLER],[1,:NIGHTSLASH],
[1,:TRIATTACK],[1,:SANDATTACK],[1,:METALCLAW],
[1,:GROWL],[4,:GROWL],[7,:ASTONISH],
[10,:MUDSLAP],[14,:MAGNITUDE],[18,:BULLDOZE],
[22,:SUCKERPUNCH],[25,:MUDBOMB],[30,:EARTHPOWER],[35,:DIG],
[41,:IRONHEAD],[47,:EARTHQUAKE],[53,:FISSURE]]
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
:WORKUP,:TOXIC,:HIDDENPOWER,:SUNNYDAY,:PROTECT,
:FRUSTRATION,:EARTHQUAKE,:RETURN,:DOUBLETEAM,
:SLUDGEBOMB,:SANDSTORM,:ROCKTOMB,:AERIELACE,:FACADE,
:REST,:ATTRACT,:THIEF,:ROUND,:ECHOEDVOICE,
:SHADOWCLAW,:BULLDOZE,:ROCKSLIDE,:SWAGGER,:SLEEPTALK,
:SUBSTITUTE,:FLASHCANNON,:CONFIDE,:HYPERBEAM,
:SLUDGEWAVE,:GIGAIMPACT,:STONEEDGE]
when 2; movelist=[# TMs
:WORKUP,:TOXIC,:HIDDENPOWER,:SUNNYDAY,:PROTECT,
:FRUSTRATION,:EARTHQUAKE,:RETURN,:DOUBLETEAM,
:SLUDGEBOMB,:SANDSTORM,:ROCKTOMB,:AERIELACE,:FACADE,
:REST,:ATTRACT,:THIEF,:ROUND,:ECHOEDVOICE,
:SHADOWCLAW,:BULLDOZE,:ROCKSLIDE,:SWAGGER,:SLEEPTALK,
:SUBSTITUTE,:FLASHCANNON,:CONFIDE,:HYPERBEAM,
:SLUDGEWAVE,:GIGAIMPACT,:STONEEDGE]
end
for i in 0...movelist.length
movelist[i]=getConst(PBMoves,movelist[i])
end
next movelist
},
"getAbilityList"=>proc{|pokemon|
case pokemon.form
when 1; next [[getID(PBAbilities,:SANDVEIL),0]]
when 2; next [[getID(PBAbilities,:SNOWCOAT),0]]
else; next
end
}
})
My RPG Maker doesn't indicate any mistake and I can normally start my game but the form specific Diglett never appear.
Last edited by a moderator: