• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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
    5
    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