Skills that Consume Items (Non-RTAB)
#1
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


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)


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]]
But, in the next example, you'll see the code to use a "Fire" skill merely using
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.
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Klass Change & Skills XP kyonides 1 1,293 05-29-2023, 07:39 AM
Last Post: kyonides
   KDualWield & Accessory Skills XP kyonides 1 1,380 02-10-2023, 06:53 AM
Last Post: kyonides
   Actor Battle Items DerVVulfman 4 6,142 11-08-2020, 12:36 PM
Last Post: Mel
   Draining Skills! / Compatible with ABSes and custom non-active BSes / No SDK required DrHouse93 0 4,904 06-24-2016, 11:43 AM
Last Post: DrHouse93
   Lycan Slip-Thru Items/Skills DerVVulfman 0 4,832 03-14-2013, 07:02 AM
Last Post: DerVVulfman
   Skills : Replacements Kain Nobel 0 4,850 12-29-2012, 07:16 AM
Last Post: Kain Nobel
   MrMo's Item-Using Skills DerVVulfman 0 5,400 04-05-2012, 03:52 AM
Last Post: DerVVulfman
   Super Simple Cursed Items DerVVulfman 0 4,755 03-22-2012, 03:34 AM
Last Post: DerVVulfman
   Passive Skills DVV DerVVulfman 12 24,319 08-03-2011, 03:53 AM
Last Post: DerVVulfman
   MrMo DVV Add-On #14: Ingrid's Enhanced Items DerVVulfman 2 7,516 07-13-2011, 11:51 PM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)