03-05-2008, 05:41 AM
Skills that Consume Items (Non-RTAB)
Ver 1.0
Original version for the RTAB system found at http://members.jcom.home.ne.jp/cogwheel/
NOT by DerVVulfman
Edited for Non-RTAB users by DerVVulfman
Ver 1.0
Original version for the RTAB system found at http://members.jcom.home.ne.jp/cogwheel/
NOT by DerVVulfman
Edited for Non-RTAB users by DerVVulfman
Introduction
Originally designed for RTAB users, the original japanese script allowed you (the creator) to design spells that use (or consume) items as well as SP. Now, this script is available for those game-designers who want that same functionality for Non-RTAB systems.
Features
- This version is for Non-RTAB users
- Can specify 1 or more different items needed per spell
- Can set it so multple quantities (potion x6) needed
- Skills show as disabled if not enough items available for use
- FIXED: so items that are NOT consumable (talismans) not consumed
Screenshots
None. Just looks like a regular Skill selection screen.
Demo
None. Just cranked it out. Works like a charm (both in battle or field)
Based on...
Skills that Consume Items v 1.00a
Skills that Consume Items v 1.00a
Script
In truth, the name was... paraphrased from the original Japanese version made for the RTAB system. Syntax differences and so on. So, I went with the closest definition.
The Script
Instructions
Just copy/paste this code right above main.
This system allows you to use skills that rely on consuming items. If for example, you use a skill that relies on potions and perfumes, the specified items (and quantities) are used and reduced in your inventory.
As this system allows certain skills to RELY on items, these skills will be disabled if you do not have enough of the required items it needs.
In the below example, we have it coded so in order to use the "Heal" skill,
you will need to use a single "Potion" and 2 "High Perfume" items.
Code:
when "Heal"
return [["Potion"], ["High Perfume", 2]]
a single "Molotov Cocktail" item (no... it's NOT part of the default items in RMXP).
Code:
when "Fire"
return [["Molotov cocktail"]]
Compatibility
This script's pretty basic and was re-written for the default battle system.
Credits and Thanks
Thanks to Cogwheel for making the original script, and Kest for requesting a non-RTAB variant.
Author's Notes
Didn't take long... three minutes, maybe? The only thing I needed to hack belonged in the Scene_Battle portion.