• 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 Trading Card Game 2 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] Sappy Seed Script

  • 26
    Posts
    7
    Years
    • Seen Dec 19, 2018
    Hey so I've been trying to implement an attack that works pretty much exactly like Sappy Seed (physical Grass move that also applies Leech Seed). I've looked at how Leech Seed is defined in Pokemon_MovesEffects as well as in Pokemon_Moves and I've used that to help me create a new script for Sappy Seed but I can't seem to get it to do damage AND apply Leech Seed. It only seems to do one or the other. Could anyone help me out here?
     
    What did you write? I'll confess I haven't tried, but I expected that you could just set the appropriate effect on your attack.
     
    To elaborate on what mcgriffin said, it seems le you should be able to define the move le any other in moves.txt and use the function code for leech seed ( 0DC ). You shouldn't need to add any move effects... in theory...
     
    To elaborate on what mcgriffin said, it seems le you should be able to define the move le any other in moves.txt and use the function code for leech seed ( 0DC ). You shouldn't need to add any move effects... in theory...

    Nah even if you apply that function code to an attacking move it still only sets up Leech Seed. No damage is done at all. I'm not sure where in the scripts it defines Leech Seed as an non attacking effect, maybe somewhere in pbeffects?
     
    Last edited:
    Nah even if you apply that function code to an attacking move it still only sets up Leech Seed. No damage is done at all. I'm not sure where in the scripts it defines Leech Seed as an non attacking effect, maybe somewhere in pbeffects?

    Hm, interesting. I guess that the move effect is missing something that looks a bit like:

    Code:
    [color=green]ret=super(...)[/color]
    ... # leech seed effect code goes here
    [color=green]return ret[/color]
     
    Back
    Top