• 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!
  • 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.

Programming Some Custom Moves

  • 58
    Posts
    9
    Years
    • Seen Oct 6, 2019
    I have some ideas for new moves and am unsure about how to make their MoveEffects.

    Brace:
    - same priority as Protect
    - restores HP by 1/8
    - reduces all incoming damage by 1/2
    - can be used repeatedly without failing
    - Rock type
    - recipients: exclusively Shieldon line

    Maim:
    - lowers opponent's Def, Sp.Def, and Speed by 1 stage each
    - 10 base damage
    - Dark type
    - recipients: not sure yet. Suggestions?

    Hallucinogen:
    - causes both regular Poisoning and Confusion simultaneously
    - 75% accuracy (should be higher?)
    - Poison type
    - recipients: Oddish, Stunky, Ekans, and Grimer lines

    Draining Goo: (basically a Poison type Leech Seed)
    - Drains 1/8 HP from opponent each turn
    - Doesn't affect Poison types
    - Affects every other type, including Steel

    - Can be removed in the same ways as Leech Seed
    - recipients: all mono-Poison Pokemon

    A Sp.Atk version of Foul Play
    :
    - The exact same otherwise.

    Livewire: (from Pokemon Insurgence)
    - Paralyzes Pokemon when switching in
    - Airborne Pokemon are not affected (the same as with Spikes and Toxic Spikes)
    - Ground types are immune to Livewire but do NOT remove it upon entry.
    - Electric types recover 25% of their HP if sent out while Livewire is up, then the entry hazard is removed. If the Pokemon is both Electric and Ground type, the Electric type effect takes priority.
    - Can be removed in the same ways as Spikes and Toxic Spikes

    Lastly (and also from Insurgence), how does one add the 1.5x power increase to Surf during New Moon?
     
    Last edited:
    My helpful advise is to look at what's already there and do some more reading. The last two, for instance, require changing exactly 1 value on a copy of the existing moves.

    Same, although more complicated, with Draining Goo.

    For Maim, look at Sonic Boom, and... IDK, Psychic? Something that lowers a stat.

    Brace... is beyond me.

    Livewire... I would guess look at poison spikes, see how they go when a poison type enters, and jig it from there.
     
    I was able to get Leeching Goo, the Sp.Atk Foul Play (Guile), and the Sp.Atk Facade (Charade) to work, but I'm still unsure about the remaining moves.

    Does anybody else know how to program them?
     
    Is this a flat 10 damage, or 10 base power?

    Oops! My bad! 10 base power.

    Basically, I'm interested in making a useful stat-lowering move to punish defensively-orientated Magic Bouncers, hence the 10 base power.
     
    Last edited:
    In that case I suggest you look into how Mud Slap does it. You'll need to go into the script editor too and find what it calls in Move_Effects and create a variant of that.
    It sounds complex but it's really just C+P with a little edit throw in.
     
    I have some ideas for new moves and am unsure about how to make their MoveEffects.

    Brace:
    - same priority as Protect
    - restores HP by 1/8
    - reduces all incoming damage by 1/2
    - can be used repeatedly without failing
    - Normal type?
    - recipients: exclusively Shieldon line

    Maim:
    - lowers opponent's Def, Sp.Def, and Speed by 1 stage each
    - 10 base damage
    - Dark type
    - recipients: not sure yet. Suggestions?

    Hallucinogen:
    - causes both regular Poisoning and Confusion simultaneously
    - 75% accuracy (should be higher?)
    - Poison type
    - recipients: Oddish, Stunky, Ekans, and Grimer lines

    Draining Goo: (basically a Poison type Leech Seed)
    - Drains 1/8 HP from opponent each turn
    - Doesn't affect Poison types
    - DOES affect Steel types
    - Can be removed in the same ways as Leech Seed
    - recipients: all mono-Poison Pokemon

    A Sp.Atk version of Foul Play
    :
    - The exact same otherwise.

    Also, I wish to know how to make Livewire from Pokemon Insurgence. I'd like to make one change though:

    - Electric types recover 25% of their HP if sent out while Livewire is up, then the entry hazard is removed.

    Lastly (and also from Insurgence), how does one add the 1.5x power increase to Surf during New Moon?
    Before I can write the scripts of these moves, it's necessary that You provide further details, to add them into PBS/moves.txt.
    - How many PP have these moves?
    - What is the category of these moves (Physical, Special or Status)?
    - What is the priority of these moves (excluding Brace)?
    - What is the base accuracy of these moves?
    - What is the base power of these moves (excluding Maim)?
    - What are the flags of these moves? (Read this article in the Wiki for more information)
    - What are the types of moves, of which nothing has been specified?
    - What are the targets of these moves? (Please refer always to the previous article)
     
    Last edited:
    Leeching Goo:
    ---,LEECHINGGOO,Leeching Goo,---,0,POISON,Status,95,10,0,00,0,bce,"A strange goo is stuck onto the target. It steals some HP every turn."

    Hallucinogen:
    ---,HALLUCINOGEN,Hallucinogen,---,0,POISON,Status,75,10,0,00,0,bce,"The target is exposed to a mind-altering toxin that simultaneously causes poison and confusion."

    Maim:
    ---,MAIM,Maim,---,10,DARK,Physical,100,5,100,00,0,abef,"The user badly injures the foe, lowering its Defense, Sp.Def, and Speed stats."

    Brace:
    ---,BRACE,Brace,---,0,ROCK,Status,0,10,0,10,4,,"The user readies itself for an incoming attack. This restores its HP slightly and reduces damage taken during that turn by half."

    Guile:
    ---,GUILE,Guile,---,95,GHOST,Special,100,15,0,00,0,bef,"The user employs the foe's Sp.Atk stat rather than its own to deal damage."

    Livewire:
    ---,LIVEWIRE,Livewire,---,0,ELECTRIC,Status,0,10,0,80,0,c,"Causes Pokémon that are switched in to be immediately Paralyzed."
     
    I don't have understand this question. Can you explain that better?


    Another question:
    Can be Livewire removed by Rapid Spin or Defog?

    Sure.

    1.) In the Pokemon Insurgence fangame, a new weather condition was added: New Moon. During this weather, the base power of Surf increases by 1.5x. I tried to add this to the Surf Move Effects section, but something didn't work.

    2.) Yes, Livewire can be removed by both Rapid Spin and Defog.
     
    Last edited:
    These moves are available to community. If you like them, you can give me credit!

    PBS/Moves.txt:
    Spoiler:



    PBWeather script section:
    Spoiler:



    PBEffects script section:
    Spoiler:



    PokeBattle_ActiveSideField script section:
    Spoiler:



    PokeBattle_Battler script section:
    Spoiler:



    PokeBattle_Move script section:
    Spoiler:

    PokeBattle_Battle script section:
    Spoiler:

    PokeBattle_MoveEffects script section:
    Spoiler:
     
    Last edited:
    I noticed two important points that I left out. I'll edit the original move descriptions.

    Otherwise, everything looks good. Thanks a bunch!

    To the community: if you use these moves, make sure to give Folle64 due credit for his work.
     
    I've playtested the moves, and all except for Maim work properly.

    Maim is behaving strangely: it selectively chooses which Pokemon it lowers the stats of.

    Archeops: Lowers stats 100% of time
    Absol: Lowers stats ~ 50% of time
    Arbok, Doduo, and Nidoran(m): never lowers stats
     
    Last edited:
    I've playtested the moves, and all except for Maim work properly.

    Maim is behaving strangely: it selectively chooses which Pokemon it lowers the stats of.

    Archeops: Lowers stats 100% of time
    Absol: Lowers stats ~ 50% of time
    Arbok, Doduo, and Nidoran(m): never lowers stats

    Also, here are the modified versions of the Livewire and Draining Goo scripts (I hope that I edited them correctly):

    Code:
    # Livewire
          if pkmn.pbOwnSide.effects[PBEffects::Livewire] && !pkmn.isFainted?
            if !pkmn.isAirborne?(moldbreaker)
              if pkmn.pbHasType?(:ELECTRIC)
                PBDebug.log("[Entry hazard] #{pkmn.pbThis} absorbed Livewire")
                pkmn.pbOwnSide.effects[PBEffects::Livewire]=false
                pkmn.pbRecoverHP((pkmn.totalhp/4).floor)
                pbDisplayPaused(_INTL("{1} absorbed the electric wire and recovered part of its health!",pkmn.pbThis))
              elsif !pkmn.pbHasType?(:GROUND)
                if pkmn.pbCanParalyze?(nil,nil)
                PBDebug.log("[Entry hazard] #{pkmn.pbThis} triggered Livewire!")
                pkmn.pbParalyze(nil,_INTL("{1} was paralyzed by Livewire!",pkmn.pbThis))
                end
              end
            end
          end

    Code:
    # Leeching Goo
        for i in priority
          next if i.isFainted?
          if i.effects[PBEffects::LeechingGoo]>=0 && !i.hasWorkingAbility(:MAGICGUARD)
            recipient=@battlers[i.effects[PBEffects::LeechingGoo]]
            if recipient && !recipient.isFainted?
              PBDebug.log("[Lingering effect triggered] #{i.pbThis}'s Leeching Goo")
              pbCommonAnimation("LeechingGoo",recipient,i)
              hploss=i.pbReduceHP((i.totalhp/8).floor,true)
              if i.hasWorkingAbility(:LIQUIDOOZE)
                recipient.pbReduceHP(hploss,true)
                pbDisplay(_INTL("{1} sucked up the liquid ooze!",recipient.pbThis))
              else
                if recipient.effects[PBEffects::HealBlock]==0
                  hploss=(hploss*1.3).floor if recipient.hasWorkingItem(:BIGROOT)
                  recipient.pbRecoverHP(hploss,true)
                end
                pbDisplay(_INTL("{1}'s health was sapped by Leeching Goo!",i.pbThis))
              end
              if i.isFainted?
                return if !i.pbFaint
              end
              if recipient.isFainted?
                return if !recipient.pbFaint
              end
            end
          end
        end
    I've already made these updates in my previous post. With my code, all electric Pokémon, Airborne or not, can absorb Livewire; with yours, only non-Airborne can absorb Livewire. What is the correct way?
    I'll try Maim again, and I double-check if it works properly.
     
    I've already made these updates in my previous post. With my code, all electric Pokémon, Airborne or not, can absorb Livewire; with yours, only non-Airborne can absorb Livewire. What is the correct way?
    I'll try Maim again, and I double-check if it works properly.

    Sorry about the confusion! Only grounded Electric types can absorb Livewire (no flyers or Levitaters). The code that I provided is the correct one. Double check the syntax and whatnot to make sure that I typed in everything correctly.

    I removed my revised codes in order to avoid confusing readers.

    I don't know what the deal is with Maim, unless I'm just being dumb and overlooking something. ~_~
     
    :-/ Maim is still giving problems:

    The first two uses work properly.

    The 3rd and 4th uses drop the opponent's stats twice in the same turn.
     
    :-/ Maim is still giving problems:

    The first two uses work properly.

    The 3rd and 4th uses drop the opponent's stats twice in the same turn.
    I did the final edit and I tried the move several times. Now it should work properly. I'm sorry for all these little errors.
     
    I did the final edit and I tried the move several times. Now it should work properly. I'm sorry for all these little errors.

    I tested the most recent edit of Maim around 20 times on 5 different Pokemon, and it worked properly for every use.

    There is no need to apologize for anything. You've been very helpful. :-)
     
    Back
    Top