Quoted By:
Are there any essentials geniuses out there that can help me? I'm trying to make variations of Voltorb in Pokemon Essentials depending on what Poke Ball you caught it in. Here's the code:
MultipleForms.register(:VOLTORB,{
"type2"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:GRASS,:ELECTRIC,:ELECTRIC,
:BUG,:WATER,:FLYING,:ELECTRIC,:PSYCHIC,
:ELECTRIC,:NORMAL,:DARK,:FAIRY,:ELECTRIC,
:ELECTRIC,:DRAGON,:ELECTRIC,:ELECTRIC,:WATER,
:STEEL,:FAIRY,:ELECTRIC,:GHOST,:BUG]
next getID(PBTypes,types[pokemon.form])
},
"getForm"=>proc{|pokemon|
next 0 if isConst?(poke.ballused,:POKEBALL)
next 1 if isConst?(poke.ballused,:GREATBALL)
next 2 if isConst?(poke.ballused,:SAFARIBALL)
next 3 if isConst?(poke.ballused,:ULTRABALL)
next 4 if isConst?(poke.ballused,:MASTERBALL)
next 5 if isConst?(poke.ballused,:NETBALL)
next 6 if isConst?(poke.ballused,:DIVEBALL)
next 7 if isConst?(poke.ballused,:NESTBALL)
next 8 if isConst?(poke.ballused,:REPEATBALL)
next 9 if isConst?(poke.ballused,:TIMERBALL)
next 10 if isConst?(poke.ballused,:LUXURYBALL)
next 11 if isConst?(poke.ballused,:PREMIERBALL)
next 12 if isConst?(poke.ballused,:DUSKBALL)
next 13 if isConst?(poke.ballused,:HEALBALL)
next 14 if isConst?(poke.ballused,:QUICKBALL)
next 15 if isConst?(poke.ballused,:CHERISHBALL)
next 16 if isConst?(poke.ballused,:FASTBALL)
next 17 if isConst?(poke.ballused,:LEVELBALL)
next 18 if isConst?(poke.ballused,:LUREBALL)
next 19 if isConst?(poke.ballused,:HEAVYBALL)
next 20 if isConst?(poke.ballused,:LOVEBALL)
next 21 if isConst?(poke.ballused,:FRIENDBALL)
next 22 if isConst?(poke.ballused,:MOONBALL)
next 23 if isConst?(poke.ballused,:SPORTBALL)
}
})