• 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!
  • 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] Scripting issues.

  • 12
    Posts
    10
    Years
    • Seen Nov 10, 2014
    1. My script ends after every trainer battle. When I step off the tile and back on, I get the "Aah, [player] message again, then it skips the battle and proceeds with the next part of the script.
    2. The movement commands are moving sprites that are NOT referenced anywhere in the script. Like, scripts standing by on the side will just turn to face a different direction when the player is supposed to.


    Here is my script... I imagine something stupid is wrong. I'm fairly new to this...

    #org 0x700200
    msgbox 0x89704D3 MSG_NORMAL '"Aah, [player]. I am the LEADER of\..."
    applymovement MOVE_PLAYER 0x87004A2
    waitmovement 0x0
    trainerbattle 0x0 0x118 0x0 0x8801021 0x8801021
    msgbox 0x8801021 MSG_NORMAL '"Rrrarrghhh!"
    applymovement MOVE_PLAYER 0x8702200
    waitmovement 0x0
    trainerbattle 0x0 0x142 0x0 0x8801021 0x8801021
    msgbox 0x8801021 MSG_NORMAL '"Rrrarrghhh!"
    applymovement MOVE_PLAYER 0x8702300
    waitmovement 0x0
    msgbox 0x89702E9 MSG_NORMAL '"Well, [player], that was pretty\ng..."
    applymovement 0x29 0x8702500
    waitmovement 0x0
    applymovement MOVE_PLAYER 0x8702400
    waitmovement 0x0
    msgbox 0x897018A MSG_NORMAL '"Hello, kid. I was wondering who\nt..."
    trainerbattle 0x0 0x295 0x0 0x8970163 0x897017C
    msgbox 0x89700F1 MSG_NORMAL '"You stupid kid! You make me\nhoppi..."
    fadescreen 0x0
    hidesprite 0x27
    hidesprite 0x29
    hidesprite 0x23
    hidesprite 0x24
    hidesprite 0x25
    hidesprite 0x26
    hidesprite 0x13
    hidesprite 0x6
    hidesprite 0x18
    hidesprite 0x16
    setflag 0x203
    msgbox 0x8970098 MSG_NORMAL '"Well... THAT was strange. Guess I\..."
    setvar 0x406F 0x1
    end
     
    After I win a battle, where it's supposed to display the message "Rrrarrghhh!" it simply doesnt, and leaves me free to walk away.

    If I walk away and come back to the tile the script is on, it starts over and repeats, skipping over the trainer battle.

    This repeats for all three trainer battles.
     
    You are absolutely amazing. Thank you so much for all your help. With all my stupid questions. When I finish the romhack I am making I am putting a special thanks to you in it because you are literally the only reason I have gotten unstuck time and time again.

    And I'll probably be back in a few hours -.-
     
    Back
    Top