- 18
- Posts
- 10
- Years
- Seen Jun 22, 2015
I want to add a third type and have done so with moderate success. However, when editing the compiler script I gave type3 the value of 10 which is the same as the value for the base stat of HP effectively changing the base HP stat for all Pokemon to the number of their third type. Which is an issue.
The spoilers have the specific points in the code that I am talking about. So my issue now is that I need a new value to assign to type3. Is there a value that is already set to the defacto type3 written into the generation 6 version of essentials that I should use? Or will I need to assign a new value? If a new value what should I assign?
I also know that a part of this will be editing other places in the script to understand this, I know some of those places such as pokebattle_pokemon but if you know of other places feel free to let me know to help keep me from missing any. Thanks in advance.
Spoiler:
optionaltypes={
"BattlerPlayerY"=>[0,"i"],
"BattlerEnemyY"=>[0,"i"],
"BattlerAltitude"=>[0,"i"],
"EggMoves"=>[0,"*E",PBMoves],
"FormNames"=>[0,"S"],
"RegionalNumbers"=>[0,"*w"],
"Evolutions"=>[0,"*ses",nil,PBEvolution],
"Habitat"=>[7,"e",["","Grassland","Forest","WatersEdge","Sea","Cave","Mountain","RoughTerrain","Urban","Rare"]],
"Type2"=>[9,"e",PBTypes],
[S-HIGHLIGHT]"Type3"=>[10,"e",PBTypes],[/S-HIGHLIGHT]
"Abilities"=>[29,"eg",PBAbilities,PBAbilities],
"HiddenAbility"=>[40,"eggg",PBAbilities,PBAbilities,PBAbilities,PBAbilities],
"WildItemCommon"=>[48,"*E",PBItems],
"WildItemUncommon"=>[50,"*E",PBItems],
"WildItemRare"=>[52,"*E",PBItems]
}
"BattlerPlayerY"=>[0,"i"],
"BattlerEnemyY"=>[0,"i"],
"BattlerAltitude"=>[0,"i"],
"EggMoves"=>[0,"*E",PBMoves],
"FormNames"=>[0,"S"],
"RegionalNumbers"=>[0,"*w"],
"Evolutions"=>[0,"*ses",nil,PBEvolution],
"Habitat"=>[7,"e",["","Grassland","Forest","WatersEdge","Sea","Cave","Mountain","RoughTerrain","Urban","Rare"]],
"Type2"=>[9,"e",PBTypes],
[S-HIGHLIGHT]"Type3"=>[10,"e",PBTypes],[/S-HIGHLIGHT]
"Abilities"=>[29,"eg",PBAbilities,PBAbilities],
"HiddenAbility"=>[40,"eggg",PBAbilities,PBAbilities,PBAbilities,PBAbilities],
"WildItemCommon"=>[48,"*E",PBItems],
"WildItemUncommon"=>[50,"*E",PBItems],
"WildItemRare"=>[52,"*E",PBItems]
}
Spoiler:
requiredtypes={
"Name"=>[0,"s"],
"Kind"=>[0,"s"],
"InternalName"=>[0,"c"],
"Pokedex"=>[0,"S"],
"Moves"=>[0,"*uE",nil,PBMoves],
"Color"=>[6,"e",["Red","Blue","Yellow","Green","Black","Brown","Purple","Gray","White","Pink"]],
"Type1"=>[8,"e",PBTypes],
[S-HIGHLIGHT]"BaseStats"=>[10,"uuuuuu"],[/S-HIGHLIGHT]
"Rareness"=>[16,"u"],
"Name"=>[0,"s"],
"Kind"=>[0,"s"],
"InternalName"=>[0,"c"],
"Pokedex"=>[0,"S"],
"Moves"=>[0,"*uE",nil,PBMoves],
"Color"=>[6,"e",["Red","Blue","Yellow","Green","Black","Brown","Purple","Gray","White","Pink"]],
"Type1"=>[8,"e",PBTypes],
[S-HIGHLIGHT]"BaseStats"=>[10,"uuuuuu"],[/S-HIGHLIGHT]
"Rareness"=>[16,"u"],
The spoilers have the specific points in the code that I am talking about. So my issue now is that I need a new value to assign to type3. Is there a value that is already set to the defacto type3 written into the generation 6 version of essentials that I should use? Or will I need to assign a new value? If a new value what should I assign?
I also know that a part of this will be editing other places in the script to understand this, I know some of those places such as pokebattle_pokemon but if you know of other places feel free to let me know to help keep me from missing any. Thanks in advance.