じ☆ve冰风 发表于 2026-7-28 20:00:07

Random Loot


Astfgl's Random loot

Hi everyone! This simple plugin was made to handle random loot and its display.

I've seen the request for such a system pop up a few times and, although this can be evented to a certain degree, I thought a plugin could help.

Features:

[*]From user defined loot tables, give random loot.
[*]Use items as bags of loot via notetags, without using a common event.
[*]Handles weapons, armors, items and gold.
[*]Use the parameters to automate the item gain message via variables.
[*]V1.2: Trigger monster encounters. Only tested on the map screen. Use at your own risk for items in menu or during battle.
[*]V1.2: Return the loot table, deleting the item the player just got. This allows you to remove randomly gained items from the loot table so that your player doesn't get the same possibility twice from the same loot table. You'll have to store the loot table in a variable beforehand.
[*]V1.3: Loot bags are now purchasable and can instantly open upon purchase, just add <LTPurchase> to your item.
[*]V1.4: Items can now have several loot tables, just add more loot tables like this: <lootTable:>, <lootTable2:>, <lootTable3:>,... Please note that the variables defined in parameters will only contain info for the last obtained item.
[*]V1.5: Loot tables can now roll for other loot tables

Download:

Terms of use:Find them in the plugin file for reference. Pasted below:

                Code:       
// Free to use both commercially and non commercially.
// Edits allowed, but the product must be released with the same license.
// Credits required: any of Astfgl/Pierre MATEO/Pierre MATEO (Astfgl)
// Reposts allowed.


Setup:

[*]Download the plugin, name the file AstfglLT save it as a .js .
[*]Setup parameters as you see fit.
Usage: Refer to the plugin's help file.

Example:
SpoilerExcuse the MS Paint editing:

http://i.imgur.com/NUcfoH6.png





Known Bugs:

[*]None
Credits:

[*]Astfgl66



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