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

[Solved][Pokeemerald] Trouble using the warp pokescript macro

  • 5
    Posts
    5
    Years
    • Seen Jun 16, 2025
    Hey I've been trying to compile the script below but it keeps erroring on the warp macro. I've tried a lot of different things to get this to work but have failed each time. Any tips for a newbie?

    script RustboroCity_EventScript_Movetotop {
    lock
    setvar(VAR_DEVON_CORP_3F_STATE, 0)
    fadescreen(FADE_TO_BLACK)
    setflag(FLAG_RETURNED_DEVON_GOODS)
    warp(RustboroCity_DevonCorp_3F, 0, 2, 1)
    fadescreen(FADE_FROM_BLACK)
    release
    end
    }
     
    Hey I've been trying to compile the script below but it keeps erroring on the warp macro. I've tried a lot of different things to get this to work but have failed each time. Any tips for a newbie?

    script RustboroCity_EventScript_Movetotop {
    lock
    setvar(VAR_DEVON_CORP_3F_STATE, 0)
    fadescreen(FADE_TO_BLACK)
    setflag(FLAG_RETURNED_DEVON_GOODS)
    warp(RustboroCity_DevonCorp_3F, 0, 2, 1)
    fadescreen(FADE_FROM_BLACK)
    release
    end
    }
    The destination map name should be specified using its MAP_ constant instead of the map header name. Also you have three numbers after the destination map, which is allowed but usually not what you want. Instead you should have one number (warp ID) if you want the command to take you to a warp event, or two numbers (X, Y) if you want the command to take you to specific coordinates.
     
    The destination map name should be specified using its MAP_ constant instead of the map header name. Also you have three numbers after the destination map, which is allowed but usually not what you want. Instead you should have one number (warp ID) if you want the command to take you to a warp event, or two numbers (X, Y) if you want the command to take you to specific coordinates.
    Thank you so much. I banged my head against that for like three hours.
     
    Back
    Top