Skip to content

Per Shop\Mart Item Prices

Team Aqua's Hideout edited this page Mar 26, 2024 · 7 revisions

Setup

To apply these changes you have two options, either pull the branch from the TeamAqua fork of pokeemerald (instructions below), or copy in the changes by hand (its actually not that many and pretty manageable.) Here is the diff

Usage

To use this repo you declare shop scripts basically the same as before except now you add an additional argument to each table entry and add a "1" argument after every call to the pokemart script command whenever you are using this mode.

    .align 2
TestVariableMart:
    .2byte ITEM_PROTEIN, 100
    .2byte ITEM_CALCIUM, 120
    .2byte ITEM_NONE
    release
    end

pokemart TestVariableMart, 1

All normal mart scripts work fine without being changed, the default value for pokemart is 0 and that creates a normal Mart without the price column.

Im not sure whether this works with poryscript or not, however, you can always just create the mart table this way inside of raw ` ` tags and use that inside of your poryscript file.

You use git remote add and git pull commands to pull in a feature branch. That is,

git remote add team_aqua https://github.com/TeamAquasHideout/pokeemerald

git pull team_aqua shop_pricing

(instructions from Pawkkie)

Contact

If you have questions or problems with the branch join the TAH Discord and ping me in the #romhacking-help channel for help: https://discord.gg/hX3a63RYzZ

Clone this wiki locally