じ☆ve冰风 发表于 2026-7-19 11:55:07

[XDE] xDGameStudios Engine - ItemEvents v1.2 (NEW)

XDE_ItemEvents +v1.2
        xDGameStudios



Introduction
         This plugin enables the execution of custom javascript code during the
         ITEM action performance. Much similar to what happens in my previous


         plugin BattleEvents.. this one will let you execute code whenever an ITEM
         ARMOR or WEAPON is gained, lost, equipped, removed, dropByEnemy.
         Imagination is your limit.

Features


        All the help is provided in the help section of the plug in. Here is a copy of that section:
         

Spoiler                Code:       
========================================================================
Help
========================================================================

This plugin enables the execution of custom javascript code during the
item action performance. This will enable the creation of more complex
game mechanics. Game variables and switches can be set and triggered
upon the execution of a specific event stats can be changed, messages
triggered, states applied, GabWindow controlled.... There's a whole new
world of possibilities out there. Remember this plugin is meant for
developers who have basic javascript knowledge.

========================================================================
Plugin Properties
========================================================================

System Enabled : As a performance tweak this lets the game begin with
the system disable if you add/equip items automatically in game start,
this can help improve performance. System can be latter enabled with an
event through a plugin command.


Skip Unnamed : ITEM/ARMOR/WEAPONS that don't have a name are skipped and
their tags are not processed this can improve game startup load speed.

========================================================================
Plugin Commands
========================================================================

This couple of plugin commands will allow to disable or enable the eval
process that occurs during the specified item action.

ItemEvents Enable

ItemEvents Disable

========================================================================
Note Tag Data
========================================================================

The note tag data used within this plugin applies to the ITEM, WEAPON
and ARMOR tabs of the RPG Maker editor. You can use the following tags
to execute code during the correct item changing moments.

<Item Event Gained>
    code
    code
</Item Event Gained>

Place here the code to be executed every time the party gains an item or
weapon or armor may it be by a treasure chest or by item drops or any
other kind.
------------------------------------------------------------------------

<Item Event Lost>
    code
    code
</Item Event Lost>

Place here the code to be executed every time the party loses an item or
weapon or armor may it be by a treasure chest or by item using or any
other kind.
------------------------------------------------------------------------

<Item Event Drops>
    code
    code
</Item Event Drops>

Place here the code to be executed every time the party gains an item or
weapon or armor by item drops ONLY.
------------------------------------------------------------------------

<Item Event Equipped>
    code
    code
</Item Event Equipped>

Place here the code to be executed every time the player equips an armor
or weapon.
------------------------------------------------------------------------

<Item Event Removed>
    code
    code
</Item Event Removed>

Place here the code to be executed every time the player removes an armor
or weapon.

========================================================================
Code Builtin Variables
========================================================================

isBattle : boolean to identify if the current scene is a battle.

amount : the amount gained or lost (GAIN/LOST/YEARNED-ONLY, READ-ONLY).

dbItem : is either of type dataItems, dataArmors or dataWeapons.

actor : the Game_Actor equipping or removing the equipment.

remove : if set to this event is removed and will not run again.

========================================================================
Extra Data
========================================================================

$dataItems, $dataArmors, $dataWeapons are added a new property that is
an object called containing the following structure.

{
    gained: "code",lost: "code", drops: "code",
    equipped: "code", removed: "code"
}

Code evaluations are executed during the corresponding item action.

========================================================================
Updates History
========================================================================

1.0: Initial Release
1.1: Added access to actor when equipping or removing equipments
1.2: Corrected bugs related to the plugins' parameters reading.

========================================================================







Screenshots
        Not a visual plugin!!



How to Use
        Put plugin in the plugin folder and add it to your project. The place shouldn't be a problem. (If using Yanfly Item plugins place it below that section).



Script


------> NEW v1.2


        UPDATES
        I'm having problems changing the features!! Please read help in the plugin property window!!v1.1 - Can access actor data when equipping and removing equipment!! Corrected bugs!!


        v1.2 - Minor bugs corrected! (sorry for some game crashes)


Terms of Usage
Free to use both on non commercial and commercial games, give credit to author "xDGameStudios" and notify me of your game free or commercial (a demo would be appreciated http://rmwforums.s3.amazonaws.com/emoticons/default_smile.gif ).


Credit and Thanks
xDGameStudios


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