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

What's the problem with this script?

itsnikopiko

Elite Four
  • 5
    Posts
    4
    Years
    • Seen Dec 9, 2020
    Currently trying to get a script working where the rival meets up with the player and challenges the trainer after they get their first Pokemon. This is the first script I've tried to fully write by myself and yes, it shows (lol), I want the script to trigger when the player stands on a spot on the map, and then the rival runs up to the player, says his dialogue, and battles the player. I tried messing with this on my own to see if I could get this working and have had no such luck. What do I need to do to get this working? Here's the script: (Also thanks in advance if anyone helps out)

    #dynamic 0x800000

    #org @start
    checkflag 0x200 - (player has spoken to man who gives them the pokemon)
    lock
    msgbox @t1 0x4
    closeonkeypress
    pause 0x60
    applymovement 0x2 @seePlayer
    waitmovement 0x0
    msgbox @t2 0x6
    trainerbattle 0x0 0x001 0x0 @introText @winText
    msgbox @t3 0x6
    applymovement 0x2 @dissapointment
    waitmovement 0x0
    hidesprite 0x2
    setflag 0x201
    release
    end

    #org @t1
    = (dialogue)

    #org @t2
    = (dialogue)

    #org @t3
    = (dialogue)

    #org @winText
    = Beginner's luck!

    #org @introText
    = Time for our first battle!

    #org @seePlayer
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0x1F
    #raw 0xFE

    #org @dissapointment
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0x20
    #raw 0xFE
     
    BUMP. I'm having this same issue and cannont find a single answer for this. Another similar issue also had no answers. Is this the greatest problem the hacking community ever faced??
     
    Back
    Top