Skills that Consume Items (Non-RTAB) - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: Skills that Consume Items (Non-RTAB) (/thread-2600.html) |
Skills that Consume Items (Non-RTAB) - cogwheel - 03-05-2008 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
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 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" a single "Molotov Cocktail" item (no... it's NOT part of the default items in RMXP). Code: when "Fire" 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. |