GDT Enemies use Items [v1.0 - 2019/09/08]

Gilles

Veteran
Veteran
Joined
Oct 31, 2015
Messages
41
Reaction score
31
First Language
German
Introduction
The RPG Maker MV allows Enemies to use Skills, but not to use Items.
Why should they use Items? Items can be used a limited times. For Example: If a bird monster has a stone in it's claws it may drop it into you. Even if it still has many HP left.
Enemies with Bows can have a limited amount of arrows to shoot and so on.
This plugin allows you to add items on enemies at Battlestart. (Every enemy has its own items).

We use the the behaviour of Skills, which can be configured to used at some conditions. This is the reason why we create Fake Skills which map to Items. We use these Fake skills in the enemy configuration for attacks and give enemies their items via Notetags.

Setup
Download these 2 Plugins:
GDT_Core (Needed If an enemy has more than 1 different item): https://gitlab.com/gamedevtuts/mixed-plugins/raw/master/js/plugins/GDT_Core.js
GDT_MonstersUseItem: https://gitlab.com/gamedevtuts/mixed-plugins/raw/master/js/plugins/GDT_MonstersUseItem.js

Copy them into your plugins folder and include them in your Projekt via RPG Maker.
If you use the GDT_Core, be sure to include it before GDT_MonstersUseItem.

How to use

Fake Skill:
Create a new skll which represents the Item and use this notetag inside its comment field:
Code:
<isitem: itemid>
replace itemid with the real number of the item the skill should map to.
Example:
Code:
<isitem: 12>
This skill will be the item with the id 12

Give Enemies Items:
Go to the Enemy which should receive Items on Battle Start and write one or more Notetags in the comment field
Code:
<hasitem: itemId, count>
replace itemId with the id of the Item the Enemy should receive
replace count with the number of items the enemy should receive
Example:
Code:
<hasitem: 30, 10>
Gives the enemy 10 x Arrows (Arrow has the Item Id 30 in my project)

Enemies should use Items:
Just use the Enemys Action Patterns with the Fake Skills

Example Video

Example Project
https://gitlab.com/gamedevtuts/mixed-plugins

Author
Gilles alias Gamedev-Tutorials

Terms of Use
Commercial & Non-commercial: Free to use with credits to 'Gamedev-Tutorials' for using this plugin.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

40 card deck size, the plugin seems more sluggish.
Village theme I composed for a commission!
Stream will be live shortly with some Haunting Ground! Feel free to drop by!
welp, the stock market went down by 7% because of corona today. Time to buy stocks?

Forum statistics

Threads
94,563
Messages
921,921
Members
124,429
Latest member
sheepman
Top