I tried to add a new Evolution Method, but it don't work. I found a lot of simular Topics but could not find a solution.
i added "when 26" in PokemonEvolution in the section for Evolution Stones
i changed the evoparameter to 2
i changed the Name from Custom1 to ItemForm
Pokemon.txt looks like this:
Evolutions=GROWLITHE,ItemForm,ICESTONE
and i get this error
what went wrong?
i added "when 26" in PokemonEvolution in the section for Evolution Stones
Spoiler:
def pbMiniCheckEvolutionItem(pokemon,evonib,level,poke,item) # :nodoc:
case evonib
when 7 # Evolves when item used on it (e.g. evolution stone)
return poke if level==item
when 16 # Evolves when item used on it if male
return poke if level==item && pokemon.gender==0
when 17 # Evolves when item used on it if female
return poke if level==item && pokemon.gender==1
when 26 # Item used on Form 1 only
return poke if level==item && pokemon.form==1
end
return -1
end
case evonib
when 7 # Evolves when item used on it (e.g. evolution stone)
return poke if level==item
when 16 # Evolves when item used on it if male
return poke if level==item && pokemon.gender==0
when 17 # Evolves when item used on it if female
return poke if level==item && pokemon.gender==1
when 26 # Item used on Form 1 only
return poke if level==item && pokemon.form==1
end
return -1
end
i changed the evoparameter to 2
Spoiler:
evoparams=[0,
0,0,0,1,0,
2,2,1,1,1,
1,1,1,1,1,
2,2,2,2,3,
4,1,1,1,4,
2,5,5,5,5,5,5]
0,0,0,1,0,
2,2,1,1,1,
1,1,1,1,1,
2,2,2,2,3,
4,1,1,1,4,
2,5,5,5,5,5,5]
i changed the Name from Custom1 to ItemForm
Spoiler:
"Evolutions"=>[0,"*ses",nil,["Unknown",
"Happiness","HappinessDay","HappinessNight","Level","Trade",
"TradeItem","Item","AttackGreater","AtkDefEqual","DefenseGreater",
"Silcoon","Cascoon","Ninjask","Shedinja","Beauty",
"ItemMale","ItemFemale","DayHoldItem","NightHoldItem","HasMove",
"HasInParty","LevelMale","LevelFemale","Location","TradeSpecies",
"ItemForm","Custom2","Custom3","Custom4","Custom5","Custom6","Custom7"]],
"Happiness","HappinessDay","HappinessNight","Level","Trade",
"TradeItem","Item","AttackGreater","AtkDefEqual","DefenseGreater",
"Silcoon","Cascoon","Ninjask","Shedinja","Beauty",
"ItemMale","ItemFemale","DayHoldItem","NightHoldItem","HasMove",
"HasInParty","LevelMale","LevelFemale","Location","TradeSpecies",
"ItemForm","Custom2","Custom3","Custom4","Custom5","Custom6","Custom7"]],
Pokemon.txt looks like this:
Evolutions=GROWLITHE,ItemForm,ICESTONE
and i get this error
Spoiler:
---------------------------
Pokémon
---------------------------
Exception: RuntimeError
Message: Undefined value (expected one of: ["Unknown", "Happiness", "HappinessDay", "HappinessNight", "Level", "Trade", "TradeItem", "Item", "AttackGreater", "AtkDefEqual", "DefenseGreater", "Silcoon", "Cascoon", "Ninjask", "Shedinja", "Beauty", "ItemMale", "ItemFemale", "DayHoldItem", "NightHoldItem", "HasMove", "HasInParty", "LevelMale", "LevelFemale", "Location", "TradeSpecies", "ItemForm", "Custom2", "Custom3", "Custom4", "Custom5", "Custom6", "Custom7"])
File PBS/pokemon.txt, section 658, key Evolutions
==
Compiler:1605:in `checkEnumField'
Compiler:1620:in `csvEnumField!'
Compiler:2313:in `pbCompilePokemonData'
Compiler:2298:in `each'
Compiler:2298:in `pbCompilePokemonData'
Compiler:2296:in `loop'
Compiler:2376:in `pbCompilePokemonData'
Compiler:2280:in `each'
Compiler:2280:in `pbCompilePokemonData'
Compiler:2279:in `each'
Pokémon
---------------------------
Exception: RuntimeError
Message: Undefined value (expected one of: ["Unknown", "Happiness", "HappinessDay", "HappinessNight", "Level", "Trade", "TradeItem", "Item", "AttackGreater", "AtkDefEqual", "DefenseGreater", "Silcoon", "Cascoon", "Ninjask", "Shedinja", "Beauty", "ItemMale", "ItemFemale", "DayHoldItem", "NightHoldItem", "HasMove", "HasInParty", "LevelMale", "LevelFemale", "Location", "TradeSpecies", "ItemForm", "Custom2", "Custom3", "Custom4", "Custom5", "Custom6", "Custom7"])
File PBS/pokemon.txt, section 658, key Evolutions
==
Compiler:1605:in `checkEnumField'
Compiler:1620:in `csvEnumField!'
Compiler:2313:in `pbCompilePokemonData'
Compiler:2298:in `each'
Compiler:2298:in `pbCompilePokemonData'
Compiler:2296:in `loop'
Compiler:2376:in `pbCompilePokemonData'
Compiler:2280:in `each'
Compiler:2280:in `pbCompilePokemonData'
Compiler:2279:in `each'
what went wrong?