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

[Other] I have an issue with my gym battle script

  • 9
    Posts
    13
    Years
    • UK
    • Seen Mar 16, 2018
    The error says that there is "Too less parameters on line 26. The correct number is 3", I have highlighted line 26, any help would be greatly appreciated!

    #dynamic 0x2E4E4C

    #org @start
    lock
    faceplayer
    checkflag 0x820
    if 0x1 goto @done
    msgbox @2 0x6
    trainerbattle 0x1 0x19E 0x0 @before @after @later
    end

    #org @before
    = Hey there, welcome to the Arbour\nVillage Gym.\lThis is the gym that most new\ltrainers vist when they first\larive in the Oriola Region.\lMy names Newt and I love grass\ltype pokémon, now show me what you\lgot!


    #org @after
    = What the-?

    #org @later
    msgbox @3 0x6
    fanfare 0x13E
    msgbox @4 0x4
    waitfanfare
    closeonkeypress
    msgbox @5 0x6
    giveitem 0x129 0x1
    [S-HIGHLIGHT]setflag 0x820[/S-HIGHLIGHT]
    release
    end

    #org @done
    msgbox @1 0x6
    release
    end

    #org @1
    = You should make your way to Elm\nCity to collect you next gym\lbadge, be careful on your way\lthough theres some strange people\lout there!


    #org @2
    = Welcome to the Arbour Village Gym\pAre you a challenger?


    #org @3
    = Congratulations!\pFor beating me, you get\nthis badge!

    #org @4
    = \v\h01 recieved a badge!

    #org @5
    = Oh, and please take this.
     
    Back
    Top