• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

Help, I can't get my script to work

  • 36
    Posts
    4
    Years
    • Seen Jun 22, 2022
    Hello,

    I'm doing a script where I battle a trainer and then once you've beat her she gives you a Tm.
    unfortunately once I beat her she doesn't continue the script but if you talk to her she does give me the tm but if I talk to her again she keeps giving me the TM. Here is the script thank you and sorry I'm a noob.

    #org $script
    trainerbattle 0x00 0x036 $see $win $later
    $see 1 = Welcome to my gym!\pMy names Drusilla!!\pI can't give you a badge as I'm not\nan offical gym leader.\p but if you beat me I'll give you\n a special TM!!
    $win 1 = You...You beat me!
    $later 1 = Here take this!
    giveitem 0x013E 0x01
    message $talk
    $talk 1 = Well done on beating me.
    boxset 6
    release
    end
     
    First, use @, not $, if you're using XSE.
    Second, it has to be "trainerbattle 0x1 0x36 0x0 @see @win @later".
     
    When trying to do this it keeps asking me for a pointer on the 0x0?

    I don't use XSE
     
    Back
    Top