- 29
- Posts
- 7
- Years
- Seen Feb 8, 2024
Hey everybody,
So I've finally gotten around to starting on my first Pokemon fan game.
I've taken it amongst myself to attempt to script the Gen 8 moves and abilities from scratch before I reach out for help on the more complex codes.
I'm going in alphabetical order (skipping Aura Wheel for now because that seems like a coding nightmare)
I don't plan on using Dynamaxing in this one so the Behemoth moves are just Function Code "000" for now.
I reached Bolt Beak and wondered if I reverse the conditions for the move Payback, if it will suffice or do I need more advanced coding?
This is the script so far:
################################################################################
# Power is doubled if the user goes first. (Bolt Beak, Fishious Rend)
################################################################################
class PokeBattle_Move_189 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
if @battle.choices[opponent.index][0]!=1 || # Didn't choose a move
opponent.hasMovedThisRound? # Used a move already
return basedmg
end
return basedmg*2
end
end
Thanks in advance
So I've finally gotten around to starting on my first Pokemon fan game.
I've taken it amongst myself to attempt to script the Gen 8 moves and abilities from scratch before I reach out for help on the more complex codes.
I'm going in alphabetical order (skipping Aura Wheel for now because that seems like a coding nightmare)
I don't plan on using Dynamaxing in this one so the Behemoth moves are just Function Code "000" for now.
I reached Bolt Beak and wondered if I reverse the conditions for the move Payback, if it will suffice or do I need more advanced coding?
This is the script so far:
################################################################################
# Power is doubled if the user goes first. (Bolt Beak, Fishious Rend)
################################################################################
class PokeBattle_Move_189 < PokeBattle_Move
def pbBaseDamage(basedmg,attacker,opponent)
if @battle.choices[opponent.index][0]!=1 || # Didn't choose a move
opponent.hasMovedThisRound? # Used a move already
return basedmg
end
return basedmg*2
end
end
Thanks in advance