Have an item force the actor using the item to use a skill

● ARCHIVED · READ-ONLY
Started by Markal Games 7 posts View original ↗
  1. I'm looking to have a script made that would basically have an item use a skill. 

    Our game "Demon Side" http://www.markalgames.com/?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).

    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.wordpress.com/rmvxa/gameplay-scripts/random-skill-invoke/ as well as his follow up skill script https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/follow-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!

    -Markal

    Edit: Something I forgot, As far as what I need it for the items modified by this script would only need to work in battle.
  2. Bump

    Anyone know how to do this?
  3. you might try a skill cost script, or you can try to make the scroll an equippable item that adds the skill as a feature and then have a common event removing one of the scrollitems on use, or a few other methods involving either one of the skill cost scripts or similiar eventing.


    But you'll have to experiment as I don't know which scripts are compatible with your current structure.
  4. Andar said:
    you might try a skill cost script, or you can try to make the scroll an equippable item that adds the skill as a feature and then have a common event removing one of the scrollitems on use, or a few other methods involving either one of the skill cost scripts or similiar eventing.

    But you'll have to experiment as I don't know which scripts are compatible with your current structure.
    I'll use those options if I need to, but it would work more as I intended it if I was able to have a script that let me assign certain skills to certain items.  Thanks for the reply though!  Anyone else think they would be able to script this without too much trouble?
  5. Should this happen at the end of the turn or right away?
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.