设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 128|回复: 0

[转载发布] Shop Reduction

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9072

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58885
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68851

    灌水之王

    发表于 2026-7-26 18:50:06 | 显示全部楼层 |阅读模式
    Shop Reduction v1.0.0
    By FeelZoR


    Free to Use for both Commercial and Non-Commercial projects.
    Credits not required but highly appreciated.

    You can find a more in-depth version of the TOS here.

    Introduction
    This plugin allows you to change the prices of shops during the game, globally or just for a specific shop, which can be useful for friendships and such things.

    Features

    • Create price changes for items sold by shops, globally or on a per-shop basis.
    • Create price changes for items sold by the player, globally or on a per-shop basis.
    • Global rule taken in account even if there is a rule specific for the shop, and applied after it.
    • Only one global rule, creating another one will erase the previous one.
    How to Use
    After installing the plugin, everything is set up, you just need to use plugin commands!

    Reduction ADD:

    This command allows to change the price of items sold / bought.

    Usage: Reduction ADD <shop> <action> <formula>
    Shop: can be either global, this or the id of the event that will show the shop.
    “global” is used to change the prices of ALL the shops, and is applied after the per-shop price modifications.
    “this” is a shortcut that targets the current event.
    If you use the id of the event, you should also specify the id of the map. (e.g. 4 1 will target the event with id 4 in map with id 1)

    Action: can be either BUY or SELL.
    “BUY” will change the prices of the items the player will buy.
    “SELL” will change the prices of the items the player will sell.

    Formula: the formula to apply when changing the prices.
    You can either add a predefined price or add a percentage.
    e.g. “+5%”, “-10” will respectively add 5% to the price or remove 10 to the price.




    Examples:
    - Reduction ADD global BUY +10% will increase the prices of all items sold by shops by 10%
    - Reduction ADD this SELL -10 will reduce the prices of all items sold by the current event by 10G (or whatever currency you use).
    - Reduction ADD 14 3 BUY +10% +5 will increase the prices of all items sold by the event with id 14 in map with id 3 by 10% then add 5G more.



    Warning:
    There can be only ONE global rule. Using “Reduction ADD global” will overwrite any previous global rule.


    Reduction REMOVE:

    This command allows to remove the price changes of shops.

    Alias: RESET

    Usages:
    - Reduction REMOVE <shop> <action> [mapId]
    - Reduction REMOVE ALL (this command will remove all the changes of all events and the global changes too)

    Shop: can be either global, this or the id of the event that will show the shop.
    Action: can be either BUY, SELL or ALL.

    “ALL“ will remove both BUY and SELL rules.
    MapId: The id of the map the event is located in.
    It only works when the shop is NEITHER “global” NOR “this”. It defaults on the current map.



    Examples:
    - Reduction RESET ALL will remove all existing rules.
    - Reduction REMOVE global BUY will remove the BUY global rule.
    - Reduction REMOVE this ALL will remove both BUY and SELL rules for the current event.
    - Reduction REMOVE 5 SELL will remove the SELL rule of the event with id 5 in the current map.
    - Reduction REMOVE 29 BUY 7 will remove the BUY rule of the event with id 29 in the map with id 7.



    Demo
    Demo made with RPG Maker 1.5.2 with plugin v1.0.0

    Script
    You can get the plugin here.

    Credits and Thanks
    - FeelZoR for making the plugin.



    本贴来自国际rpgmaker官方论坛作者:Feelzor处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/shop-reduction.98267/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-22 08:35 , Processed in 0.089648 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表