FlipelyFlip
Arr teh Pirate
- 44
- Posts
- 13
- Years
- Age 34
- Bregenz
- Seen Feb 29, 2016
Heyey,
I have a little question.
I'm trying to make the shadow pokémon have extra forms not this violet color on them. I have some sprites and figured a bit out how to do it.
my changes:
I put the "def isShadow?" methode above the multiple forms (to prevent errors).
then I added this:
under this:
Now I added this one into the script:
above the "def initialize(*args)".
and under
I added:
But when I start game and want to fill my boxes on the pc, following error is showing up:
Can someone help me please ._.
~flipy
I have a little question.
I'm trying to make the shadow pokémon have extra forms not this violet color on them. I have some sprites and figured a bit out how to do it.
my changes:
I put the "def isShadow?" methode above the multiple forms (to prevent errors).
then I added this:
Code:
alias __mf_isShadow isShadow?
Code:
alias __mf_EVyield EVyield
Code:
def isShadow?
v=MultipleForms.call("isShadow?",self)
return v if v!=nil
return self.__mf_isShadow
end
and under
Code:
"getMoveList"=>proc{|pokemon|
next if pokemon.form==0
movelist=[]
case pokemon.form
when 1 ; movelist=[[1,:TACKLE],[10,:PROTECT],[15,:BUGBITE],[20,:HIDDENPOWER],
[23,:CONFUSION],[26,:ROCKBLAST],[29,:HARDEN],[32,:PSYBEAM],
[35,:CAPTIVATE],[38,:FLAIL],[41,:ATTRACT],[44,:PSYCHIC],
[47,:FISSURE]]
when 2 ; movelist=[[1,:TACKLE],[10,:PROTECT],[15,:BUGBITE],[20,:HIDDENPOWER],
[23,:CONFUSION],[26,:MIRRORSHOT],[29,:METALSOUND],
[32,:PSYBEAM],[35,:CAPTIVATE],[38,:FLAIL],[41,:ATTRACT],
[44,:PSYCHIC],[47,:IRONHEAD]]
end
for i in movelist
i[1]=getConst(PBMoves,i[1])
end
next movelist
},
Code:
"isShadow?"=>proc{|pokemon|
next "Shadow"
}
})
And when I change a received Pokémon to a shadow pokémon, nothing happens, except the coloring it to a shadow pokémon.Message: nil can't be coerced into Fixnum
PokemonShadowPokemon *removed fade in :399:in `-'
PokemonShadowPokemon *removed fade in :399:in `exp='
PokeBattle_Pokemon:122:in `level='
PokeBattle_Pokemon:690:in `__mf_initialize'
PokemonMultipleForms *Shadow form:90:in `initialize'
PokemonDebug:394:in `new'
PokemonDebug:394:in `pbDebugMenu'
PokemonDebug:393:in `each'
PokemonDebug:393:in `pbDebugMenu'
PokemonDebug:285:in `loop'
Can someone help me please ._.
~flipy