The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Markal Games on July 19, 2014, 08:07:35 PM

Title: [VXA] Script for using skills with items
Post by: Markal Games on July 19, 2014, 08:07:35 PM
I'm looking to have a script made that would basically have an item use a skill.

Our game "Demon Side" http://www.markalgam...portfolio=story is going to include a system in which you can use scrolls with
another component to craft equipable accessories. Some of these accessories give the actor who equips them certain skills.  Instead of just being able to use the scroll in crafting, however, I want the player to be able to use the scrolls themselves in order to use that skill as a one time thing (without actually learning it). For my purposes this would only need to work in battles.

While I could just try to make the item produce the same effect as the skill, this leads to some problems.  I'm using Yanfly's random skill invoke script http://yanflychannel...m-skill-invoke/ as well as his follow up skill script https://yanflychanne...llow-up-skills/.  These allow for some interesting combinations of skills, such as the skill leading into another one that has a different effect on the user than it did on the original target, but I wouldn't know how to obtain the same results only using item effects.

I also considered using a common event with the items so they would force the actor to use the skill, but when I tried that it didn't work very well and I don't know how to force the specific actor using the item to be the one to use the skill.

I've searched quite a bit, but thus far haven't been able to find a script to solve this problem.  It would be extremely helpful if someone were able to write a script that makes it so you can have a notetag on the item linking it to a specific skill so that when an actor uses that item he or she will immediately use that skill once without actually learning it.  Thank you so much for your time, and feel free to ask questions if any of that didn't make sense!

Edit: I don't have a script for this yet, but someone did help me find a solution, which can be found here: http://www.rpgmakervxace.net/topic/25908-script-for-using-skills-with-items/
This can be closed.