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

[Script] Pokemart Questions

  • 46
    Posts
    10
    Years
    • Seen Nov 6, 2024
    So, if I were to change the number of items in a pokemart in Emerald, such as increase the number of items sold, would I have to change and repoint the addresses for the script?

    Example:

    OLDALE TOWN's Pokemart

    Old
    #org 0x1FC260
    #raw word ITEM_POTION
    #raw word ITEM_ANTIDOTE
    #raw word ITEM_PARLYZHEAL
    #raw word ITEM_AWAKENING
    #raw word ITEM_NONE

    New
    #org 0x1FC260
    #raw word ITEM_POTION
    #raw word ITEM_ANTIDOTE
    #raw word ITEM_AWAKENING
    #raw word ITEM_PARLYZHEAL
    #raw word ITEM_ETHER
    #raw word ITEM_REPEL
    #raw word ITEM_ORANGEMAIL
    #raw word ITEM_NONE
     
    if you want to add items to the mart, yes. you only have to repoint the pokemart part, not the entire script
     
    Last edited:
    You can repoint to new pokemart sections then recompile like:
    Code:
    ...
    #org 0x1FC240
    lock
    faceplayer
    preparemsg 0x8272A21
    waitmsg
    checkflag 0x74
    if 0x1 goto 0x81FC26C
    pokemart [COLOR="Magenta"]@yournewpointer1[/COLOR]
    msgbox 0x8272A3F MSG_KEEPOPEN
    release
    end
    
    #org 0x1FC26C
    pokemart [COLOR="Magenta"]@yournewpointer2[/COLOR]
    msgbox 0x8272A3F MSG_KEEPOPEN
    release
    end
    
    #org [COLOR="Magenta"]@yournewpointer1[/COLOR]
    [COLOR="Red"][your items here][/COLOR]
    #raw word 0x0
    
    #org [COLOR="Magenta"]@yournewpointer2[/COLOR]
    [COLOR="Red"][your items here][/COLOR]
    #raw word 0x0

    That being said, I'd recommend writing your own mart scripts because that way you won't need to worry about accidentally overwriting anything by mistake and it'd help you practice =)

    Spoiler:
     
    Back
    Top