Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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 kyonides 1 660 05-29-2023, 07:39 AM
Last Post: kyonides
   KDualWield & Accessory Skills kyonides 1 806 02-10-2023, 06:53 AM
Last Post: kyonides
   Actor Battle Items DerVVulfman 4 4,913 11-08-2020, 12:36 PM
Last Post: Melana
   Draining Skills! / Compatible with ABSes and custom non-active BSes / No SDK required DrHouse93 0 4,373 06-24-2016, 11:43 AM
Last Post: DrHouse93
   DoubleX RMVXA Unison Skills/Items DoubleX 1 6,168 07-23-2015, 11:47 AM
Last Post: DoubleX
   Lycan Slip-Thru Items/Skills DerVVulfman 0 4,420 03-14-2013, 07:02 AM
Last Post: DerVVulfman
   Victor Engine - Cooperation Skills Victor Sant 2 7,951 02-14-2013, 04:44 PM
Last Post: Ace
   Skills : Replacements Kain Nobel 0 4,341 12-29-2012, 07:16 AM
Last Post: Kain Nobel
   MrMo's Item-Using Skills DerVVulfman 0 4,942 04-05-2012, 03:52 AM
Last Post: DerVVulfman
   Super Simple Cursed Items DerVVulfman 0 4,284 03-22-2012, 03:34 AM
Last Post: DerVVulfman



Users browsing this thread: