• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Three custom moves

  • 1
    Posts
    1
    Years
    • Seen Mar 4, 2025
    For the final touches of my game I would like to incorporate three custom moves. But unfortunately I can't get any further and I hope someone here can help me.


    1. The user's attack and special attack increase, and his defense and special defense decrease by one stage each. In addition, the user gains a quarter of the HP it inflicts as damage.

    This is what I got so far (merging PokeBattle_Move_0DD and PokeBattle_Move_042):

    class PokeBattle_Move_176 < PokeBattle_Move
    def healingMove?; return NEWEST_BATTLE_MECHANICS; end

    def pbEffectAgainstTarget(user,target)
    return if target.damageState.hpLost<=0
    hpGain = (target.damageState.hpLost/2.0).round
    user.pbRecoverHPFromDrain(hpGain,target)
    end

    def initialize(battle,move)
    super
    @statUp = [PBStats::ATTACK,1,PBStats::SPATK,1]
    @statDown = [PBStats::DEFENSE,1,PBStats::SPDEF,1]
    end
    end


    2. The entire opposing party (!) is poisoned. With the mechanics of toxic. I've got no idea how to integrate the whole opposing party in the move.


    3. The entire own party (!) is revived. Each fainted team member regains 20 percent of its HP. Bonus: The revived Pokémon gain the Ghost-type until the end of the battle. Like number 2, I can't figure out how to affect the whole party.

    (I'm still using 18.1.; I know, I know...)

    Thank you in advance for your help!
     
    The only way I know to edit the entire players party is to first check if the player has 1,2,3,4,5 or 6 ($player.pokemon_count = 2) pokemon in their party and then create separate branches that revive each pokemon slot.

    pkmn = $player.party[0]
    pkmn.heal

    Unfortunately there isn't a default way to change a pokemon's type without changing the species. But maybe the move could make all the pokemon temporary little ghosts with the same move. Sounds kinda cute, idk.

    ________________________________

    For the poison thing perhaps you could rework toxic spikes to remove the animation, and not be soakable. It has the same gameplay effect of making each enemy trainer pokemon poisoned when it's on the field.
     
    Back
    Top