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

[转载发布] RMMZ - Inventory Barter System

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4593

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 14:31 | 显示全部楼层 |阅读模式
    Hello Guys,

    Maybe you ever had the same problem like me. At first I only want my inventory has a limit (weight).
    So just give items a notetag of their weight and make a window to show inventory limit.
    Then another problem arises related to controlling item flow (goes in goes out) :

    1. Must control how treasure chest's item get into inventory
    2. Must prevent player from buying item that will exceed inventory limit (Scene_Shop)
    3. Must prevent battle's item drop from automatically enter inventory (Scene_Battle)
    4. Must make enough inventory space before NPC give player a key item
    5. Must prevent player from unequipping item that will exceed inventory limit (Scene_Equip)

    So consider this plugin a solution

    Spoiler: Scene Barter


    CAUTION !

    This plugin affect :

    1. Scene_Equip
    2. Scene_Item
    3. Scene_Shop
    4. Scene_Message (select item event)
    5. Scene_Battle (will skip item drop)

    this plugin most likely ruin other plugin that affect the same Scenes.
    so start new project to test it.

    ---------------------------------
    | item, weapon, armor notetag : |
    ---------------------------------

    <weight:2>


    ########################
    # Available Plugin Command : #
    ########################

    1.  Loot Chest

    Use this to define loot chest (and its content).
    Loot id 0 is reserved for battle loot and item drop zone
    (don't define loot id 0 ).

    Spoiler: Loot Chest - Plugin Command
    * Loot Limit 0 will make this chest has no limit
    * Allow Key Item false will restrict player from putting key item on this chest

    2. Loot Open

    open defined loot chest (don't open loot id 0).

    Spoiler: Loot Open - Plugin Command
    [/quote]

    3. Check Space

    use this before npc give player an item.
    if player inventory doesn't have enough space for
    that item, scene barter (drop)
    will triggered.

    Spoiler: Check Space - Plugin Command[quote]


    Player inventory limit, icon, and the weight unit defined at parameters

    Spoiler: Parameters



    Terms of Use :

    This plugin are free to use for non commercial game.
    Don't repost this plugin elsewhere.
    Credits goes to Savroheim.

    Thank You


    本贴来自国际rpgmaker官方论坛作者:Savroheim处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/rmmz-inventory-barter-system.141098/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 14:20 , Processed in 0.113264 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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