Jump to content

Simple Shop^2

Overview
Creator: Mani Kanina Updated: 20 Feb 2026 Tags: 2.55, FFC, Misc Downloads: 49
Rating[?]: No rating
View Script Download Script
(4.14 KB)
Information

Description Setup Reviews Comments

Requires std.zh

When using this script it's recommended to place the FFC on a solid combo, though not required. I've not tested with Solid FFC, but it should work fine.

There are tooltips in the FFC editor for each of the script fields after you load in the script, so read those carefully. Some fields do multiple things on each side of the decimal point, so read carefully.

The script file itself contains a variety of options you can tweak near the top of the script file. If you want something to cost Life, specifically, then you need to tweak the counter default.
//A few constants to configure:
//offsets for where the item is shown and where the price is listed.
const int S_SHOP_DISPLAY_X = 0;
const int S_SHOP_DISPLAY_Y = -8;
const int S_SHOP_PRICE_X = 0;
const int S_SHOP_PRICE_Y = -16;
const int S_SHOP_TEXT_CSET = 0x0F;

//Y coordinates for the item name display tag/box
const int S_SHOP_NAME_TEXT_Y = 8*20;

//If you don't want the shop to display the item, set this to 0:
const int S_SHOP_DISPLAY_ITEM = 1;
//same for price
const int S_SHOP_DISPLAY_PRICE = 1;

//Default font choice, for the proper values see std_constants.zh or ask a scripter (I guess).
const int S_SHOP_FONT = 0;

//Text Shadow colour. Set to "0" for none. ( 0x0F is the last colour in CSet 1)
const int S_SHOP_TXT_SHADOW = 0x0F;

//Default counter reference        (if you want shops to be able to cost life you NEED to set this to "0")
const int S_SHOP_CR = 1;        //CR_RUPEES

//The FFC changes to this combo ID and turns invisible right away, unless set to 0.
const int S_SHOP_HIDE = 1;

//Sound effects
const int S_SHOP_ERROR_SFX = 0;        // This plays if you already own an item but try to purchase it, and the FFC toggle to disable that is active.

//Wealth medals only apply if the price is in Rupees if this is on, set to 0 to turn off, 1 to on.
const int S_SHOP_WMEDAL_A = 1;

//Max Counter costs don't validate regular cost. If you turn this off (set to 0), you need the price amount as well as the max counter amount.
const int S_SHOP_MAX_C_VAL = 1;