Advertiser Content

Pokeminer20

Team Ningo

Male
On Earth
Seen 4 Hours Ago
Posted 1 Week Ago
108 posts
5.6 Years
I plan on making a mechanic where when a Pokemon has a certain 'mode' as I am calling it, it's base stats get multiplied. for example:
if (Pokemon) is Shiny -> Stats = BaseStats X 2
if (Pokemon) is Shadow -> Stats = Basestats X 4
if (Pokemon) is (Custom Mode) -> Stats = Basestats X 6
I found something similar in Pokemon Empyrean with it's card system but I'm unsure how they did it. any help would be appreciated, because the alternative is making multiform calls with each individual stat for each Pokemon.

P.S. what I call a "Mode" is just a way of saying Shadow Pokemon, Shiny Pokemon, and Normal Pokemon
Proud developer of Project Angel Links

Pokeminer20

Team Ningo

Male
On Earth
Seen 4 Hours Ago
Posted 1 Week Ago
108 posts
5.6 Years
To begin, go into PokeBattle_Pokemon and locate "def isCompatibleWithMove?(move)"
After it, but before "#Contest Attrtibutes" Add the following.
Def Placeholder#Replace Placeholder with whatever you want
#return (Number) if (Mode name)
 return 1.0
end
or

Def #Multiplier Name (Repeat this Def for each new mode you add to your game)
 return (number) if #Mode Name
 return 1.0
end
Def Placeholder#Replace Placeholder with whatever you want
 return 1.0 * #(All Multipler Name you add)
end
[The difference between the first and second one is the first only allows one 'mode' to give it's multiplier, the second lets you stack it]
after that, locate "def calcHP" and "Def calcStats" and replace with the following

# Returns the maximum HP of this Pokémon.
  def calcHP(base,level,iv,ev)
    return 1 if base==1
    base= (base * Placeholder).floor
    ret = ((base*2+iv+(ev>>2))*level/100).floor+level+10
    return ret
  end

# Returns the specified stat of this Pokémon (not used for total HP).
  def calcStat(base,level,iv,ev,pv)
    base= (base * Placeholder).floor
    return ((((base*2+iv+(ev>>2))*level/100).floor+5)*pv/100).floor
  end
afterwards you will need to find a way to trigger the custom modes however you want, be it an item or debug.
Proud developer of Project Angel Links
Advertiser Content