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

Gilles

Veteran
Veteran
Joined
Oct 31, 2015
Messages
41
Reaction score
34
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 Posts

Latest Profile Posts

I've been debating on this as the title screen for a while now...
Ami
--- Dialog Filter ---

Gunner: Yo! my ****** friend?
Hero: Uhh,what happen with your mouth?
Gunner: Huh? what ****** happen with my mouth? i just speech as usual.
Hero: But,your mouth are like the garbage!
Gunner: Hey,what the **** are you say? you want the piece of **** with my ****** Gun!
(Meanwhile,The Dialog Filter In The Option Is Off)
Demo for Maze of the Lost MZ released. I would appreciate any and all feedback and constructive criticism. If you like Dungeon Crawlers and JRPG's with a hint of Metroidvania and Shadowgate/Uninvited you might like it. https://forums.rpgmakerweb.com/index.php?threads/maze-of-the-lost-mz-demo-port-from-mv.127971/
Well, here it is, colored. :kaoslp:

Forum statistics

Threads
103,389
Messages
998,961
Members
134,907
Latest member
zelda3469
Top