じ☆ve冰风 发表于 2026-7-26 12:26:58

Drop Items Conditions

Drop Items Conditions v1.03​
Musashii​
Introduction:
Allows you to define conditions for certain items to drop using formulas.
 
How to Use:
Use the notetag <DropRestriction: formula> inside Items, Weapons or Armors notes.

You can also change/set/cancel drop conditions for determined enemies using the notetags:

<CancelRestriction: itemId> and <ChangeRestriction:itemId,NewFormula>

Here are some examples of what can be done:

<DropRestriction: $gameParty.isAnyMemberEquipped($dataWeapons)>Item can drop only if any party member have the first weapon in the database equipped.

<DropRestriction: 100 < $gameVariables.value(1)>Can drop if variable 1 is greater than 100. 

*Be aware that you can't use the "greater than" (>) comparison operator inside the notetag or it'll close it, use the "less than" (<) instead.



You can learn more about how to write your own codes here:

http://forums.rpgmakerweb.com/index.php?/topic/46456-rpg-maker-mv-script-call-list/

Plugin:
http://pastebin.com/5WQQvR4K
 
Terms of Use:
Free for commercial and non-commercial use.
 
Credit and Thanks:
- Musashii
- Not necessary but appreciated.

Changelog:

Version 1.03:

  - New 'killed by element' code to use in your conditions.

Version 1.02:

  - Enemies can now set/change item drop conditions for themselves.

Version 1.01:

  - Added option to cancel specified item drop restrictions for certain enemies using the notetag <CancelRestriction: itemId>


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