• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Help with Stamina ability

  • 62
    Posts
    6
    Years
    Hi, I was trying to add Stamina ability to my game. I don't have any experience in coding and I tried my best by modifying different scripts such as Moxie
    Can you help me figure out what's wrong with this? It tells me there is a Syntax Error

    Spoiler:
     
    This line is incomplete:
    Code:
    @battle.pbDisplay(_INTL("TEXTGOESHERE",target.pbThis,
    At the very least you need to close both of the left parentheses you've opened, i.e. with ))
     
    I had tried to add them but it still didn't work, apparently, the problem is not in that line (@battle.pbDisplay(_INTL("TEXTGOESHERE",target.pbThis,) because, even by removing it, it still says that there is a Syntax Error
     
    Oh, yeah, you're also missing a bunch of ends? Each if needs an end. I guess you might have those already but not included them in the post?
     
    Thank you all, I edited it a little bit. It now works fine, I'm sharing it with you

    Spoiler:
     
    Back
    Top