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

[转载发布] Loot Tables v1.0.1 (2021-07-05)

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

    连续签到: 2 天

    [LV.7]常住居民III

    8357

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Loot Tables v1.0.1
    Author: dingk
    RMMV version 1.6.2
    Launched April 29, 2020
    Updated July 5, 2021


    https://www.youtube.com/embed/7snGAVfIBQU



    Download

    Itch.io Link
    -or-
    Raw Source (Right-click > Save As...):


    Introduction

    Do you need your enemies to drop more loot or change how the game drops items?

    This plugin adds a randomized tier-based loot drop mechanic to your game. You can customize loot tables in the plugin manager and set up various item pools. You can assign these loot tables to enemies or use plugin commands on the map.

    Loot tables consist of different item pools, which are assigned different weights. A pool with a higher weight has a higher chance of being selected. A selected item pool will drop a random item that has been assigned to it.

    Notetags

    In the notetags below, the keywords Item/Drop/Loot are interchangeable. For example, you can use <Item Table>, <Drop Table>, or <Loot Table>.

    Item, Weapon, and Armor Notetags

                    Code:       
    1. <Loot Pool: name>
    复制代码


    • Put this item in the specified item pool.
    • Replace name with the name of the item pool.
    Actor, Class, Weapon, Armor, and State Notetags

                    Code:       
    1. <name Weight: +n>
    2. <name Weight: -n>
    3. <name Weight: *n>
    复制代码


    • Adjust the weight at which an item pool is selected.
    • Replace name with the name of the item pool.
    • Replace n with a number (can be floating point).
    Enemy Notetags

                    Code:       
    1. <Loot Table [rate]: name[, name, name, ...]>
    复制代码


    • Assign one or more loot tables in a comma-separated list to this enemy.
    • Replace name with the name of the loot table.
    • [Optional] Replace rate with a decimal or percent value to determine the probability this table will drop items.
                    Code:       
    1. <Loot Table [rate]>
    2. name
    3. name: weight
    4. name x[amount]: weight
    5. name x[minAmount]-[maxAmount]: weight
    6. ...
    7. </Loot Table>
    复制代码


    • Create a local loot table for this enemy.
    • Replace the following variables:

      • [Optional] rate : The probability this table will drop items. Default is 100%. Replace with a decimal or percent value.
      • name : Name of the item or item pool. For items, you can use the names of the items or use Item [id], Weapon [id], or Armor [id], replacing [id] with the item ID.
      • weight : Weight of the item or item pool. Default is 1.
      • [amount] : Number of items to drop. Default is 1.
      • [minAmount]-[maxAmount] : Random range of the items to drop (inclusive).

    Example:
                    Code:       
    1. <Loot Table 75%>
    2. Item 3
    3. Potion x2: 5
    4. Common: 5
    5. Common x3-5: 4
    6. Rare: 1
    7. </Loot Table>
    复制代码


    • There is a 75% chance that this enemy will drop an item with an ID of 3, two Potions, a random Common item, three to five random Common items (all same), or a random Rare item.
    • The total weight adds up to 16, so the Rare item has a 1/16 chance to drop, whereas the two Potions have a 5/16 chance.
    Plugin Commands

    In the plugin commands below, the keywords Item/Drop/Loot are interchangeable. Customize the message displayed in the plugin manager.

                    Code:       
    1. GiveLootPool name [minAmount] [maxAmount]
    复制代码


    • Give the player an item from this item pool. Replace name with the name of the item pool.
    • [Optional] Replace [minAmount] and [maxAmount] with the amount to give to the player. Default is 1.
                    Code:       
    1. GiveLootTable name
    复制代码


    • Give the player an item from this loot table. Replace name with the name of the loot table.
                    Code:       
    1. EnableLootMessage
    2. DisableLootMessage
    复制代码


    • Toggle the message displayed after using the commands above on or off.
    • This setting is saved globally.
                    Code:       
    1. SingleLootMessageFormat string
    2. MultipleLootMessageFormat string
    复制代码


    • Change the message format. Replace string with the new format.
      %1 - Icon, %2 - Name, %3 - Count
    • This setting is saved globally.
                    Code:       
    1. ResetLootMessage
    复制代码


    • Reset all loot message settings to default.
    Compatibility

    • No issues found.
    Terms of Use

    • Free and commercial use and redistribution (under MIT License).
    Spoiler: Changelog
    1.0.1 (2021-07-05) - Compatibility patch for Moghunter's Treasure Popup
    1.0.0 (2020-04-29) - Initial release


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-2 01:20 , Processed in 0.064935 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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