License: Free for personal or commercial use.

Context: The magic in RPG MAKER is always associated with the cost of MANA. This is because in most JRPGS doing magic is always a matter of whether or not it has some kind of energy. Games that are based on ritual spells where the caster needs the right ingredients, rarely usually require more than just MANA from the caster. They need ingredients and magical reagents that are consumed during the magic ritual.

Description: This script gives the developer the possibility to require certain items from the player and in certain quantities so that he can cast the spell (ability). In the same way, it can cause an item to be used only in conjunction with another, and finally it can cause a weapon to be used only in battle if the player has a specific item (such as a bow and arrow).

How to use this script:

(1) The developer can define that a skill can only be used by consuming a specific quantity of a specific item. For example: It could be defined that the “Heal I” (Sarar I) ability can only be cast if the player has 2 units of the item “Medicinal Root” (raiz Medicinal) .

(2) A second feature for this script is that an item can only be consumed if the player has a second item (which may or may not be consumed). Example: An item called “Medicinal Elixir” (Elixir Medicinal) can only be consumed if the player has a second item called “Medicinal Root”(Raiz Medicinal)  which in turn is not consumed.

(3) The third feature of this script means that a weapon can only attack if the player has a certain amount of a specific item. For example:  A weapon called "Shortbow" (Arco Curto) can only attack if the player has one or more items called "wooden arrow" (Flecha). In this example, each bow attack consumes an Arrow.

Consequence of (3): if the player is using a weapon that requires a certain amount of a specific item and the player does not have that item in the required amount, he simply CANNOT ATTACK!

IMPORTANT!

The effect of this script works on the following “objects” in the Database: Skills; Items; Weapons;

To make a  Skill / Item / Weapon only possible if the player has a certain amount of a specific item, it is necessary to use a TAG in the “Note” field of the respective Skill / Item / Weapon (in the RPG Database MAKER MZ ). The TAG to be used is as follows:

     <consome:itemId,qtd>

Where:

  • itemId = refers to the item number (index).
  • qtd = refers to the item quantity to be consumed. If qty is 0 the item is not consumed.

Example: In the “Annotation” field of the “Short Arc” weapon, the following TAG is inserted:

                                <consome:34,1>

This means that to use the bow the player must have at least 1 unit of the number item (index) 34.

Extra Function:

From version v.04 of 06-10-2020, when a character runs out of items to use the weapon he is wielding, he automatically equips another weapon (if he has another one).

Demo Example: A Monster appears near the camp!

Our group of adventurers is made up of two heroines: an elf archer and a human Mage.

The archer has only 2 arrows in the inventory. The short bow that Elfa is using is a weapon that is configured to consume 1 unit of the item “Arrow” (ID = 3) as specified in the tag:

<consome:3,1>

After using all the arrows in the battle she will have to abandon the bow and wield the short sword to continue fighting!

Our Mage (Maga) in turn can use her magic power to face the monster! She can use the "Fire I" magic. Note that she can only use this spell 3 times! That's because to do the magic she needs to use 3 units of Magic Oil!

The “Fogo I” (Fire I) spell is configured on the base data to consume 3 units of item 2 (Magic Oil), as specified in the tag:

<consome:2,3>

Combat begins! The Elf will attack with her bow while the Mage chooses to use the "Fire I" spell. Note that the Elf can attack twice with her bow and the Mage can use her magic 3 times!

Ao final da primeira rodada de combate, restam no inventário apenas 1 flecha e 7 óleos mágico!

To find out how this fight ends, download   this plugin demo!

When the Elf runs out of arrow to use the bow, she automatically equips the short sword! In these circumstances a message is displayed informing the player of the weapon change.

In the plugin settings it is possible to change the term “equipped” to one of your own (useful for games that are not in the Portuguese-Brazilian language).

Download

Download NowName your own price

Click download now to get access to the following files:

DemoRMMZ.zip
External
POG_FetishArcana.js 10 kB

Leave a comment

Log in with itch.io to leave a comment.