- 102
- Posts
- 16
- Years
- Seen Jul 19, 2017
Hi, I have been trying to work in a gender based moveset for a Pokemon. I found the appropriate section in PokemonMultipleForms and used other pre existing codes to make this (I blanked out the Pokemon name for this post):
Now, the basestats work, the evYield works, the type works too. All of these change when the gender is female like I want them. The problem is the moveset. I copied the code exactly from Deoxys and only changed pokemon.form to pokemon.gender like the other three options. However, the moveset that comes up in female form is the default moveset and not the female moveset. Can anyone see what I have to change because I'm drawing a blank?
Code:
MultipleForms.register(:XXXXX,{
"getBaseStats"=>proc{|pokemon|
next if pokemon.gender==0 # Normal Forme
case pokemon.gender
when 1; next [55,47,52,41,40,40] # female Forme
end
},
#Below code was just to make sure the conditions worked
#"type1"=>proc{|pokemon|
# next if pokemon.gender==0 # Normal Form
# case pokemon.gender
# when 1; next getID(PBTypes,:FLYING) # Female Form
# end
#},
"evYield"=>proc{|pokemon|
next if pokemon.gender==0 # Normal Forme
case pokemon.gender
when 1; next [0,1,0,0,0,0] # female Forme
end
},
"getMoveList"=>proc{|pokemon|
next if pokemon.gender==0
movelist=[]
case pokemon.gender
when 1; movelist=[[1,:GROWL],[1,:SCRATCH],[7,:TAILWHIP],[9,:DOUBLEKICK],
[13,:POISONSTING],[19,:FURYSWIPES],[21,:BITE],[25,:HELPINGHAND],
[31,:TOXICSPIKES],[33,:FLATTER],[37,:CRUNCH],[43,:CAPTIVATE],
[45,:POISONFANG]]
end
for i in movelist
i[1]=getConst(PBMoves,i[1])
end
next movelist
}
})