Exp Potions & Item Restrictions

● ARCHIVED · READ-ONLY
Started by Aerosys 8 posts View original ↗
  1. Hey all,

    In this Thread, I publish 2 plugins that are independent of each other but have some great synergies. They are both pretty small, but they should come in handy in many situations.


    EXP Potions

    So I once realized that RPG Maker doesn't provide Items that grant a fixed amount of EXP when consuming. Such items can become handy when you have many benchmarkers. Of course, there's that one switch "Everyone gets EXP", but this method is pretty simple and doesn't go very deep.

    Using this Plugin, you can simply add the Notetag <Gain EXP: x> to any Item to provide x EXP to its consumer.

    This is it.


    Item Restrictions

    Maybe you are using my popular Pet Summon System and want your Exp Potions exclusive to your companions (or only to your human Actors?), or you have explosive bombs in your inventory, but only your technician should be able to use them? This is why I made a tiny plugin that controls who can use and consume specific items.

    It comes with a bunch of Notetags that can be applied on Actors, Classes, and Items.

    Notetags
    (Not all Notetags are listed - please refer to the Plugin's description)

    Code:
    <Cannot use Items>
    <Cannot use Items: 1, 2, 3>
    <Not usable by Actor: 1, 2, 3>
    <Not usable by Class: 1, 2, 3>
    <Only usable by Actor: 1, 2, 3>
    <Only usable by Class: 1, 2, 3>
    <Cannot consume Items>
    <Not consumable by Actor: 1, 2, 3>
    <Not consumable by Class: 1, 2, 3>
    <Only consumable by Actor: 1, 2, 3>
    <Only consumable by Class: 1, 2, 3>

    Example:
    Code:
    <Not usable by Actor: 1>
    <Only consumable by Class: 2, 3>


    Downloads

    (Please make sure to not accidentally rename the files)

  2. I forgot you were going to drop this!!! Definitely going to be taking a look
  3. .
  4. mvdeveloper said:
    I am trying to use this to make an item only work for a certain actor.

    I go to said item, and paste this into the note tags, correct?

    <Only consumable by Actor: x>

    But what exactly do I put in place of the x ? I have tried the actors name, the number for them on the actor list, etc. They are the third actor on my actor list, so I even tried just "3", but still doesn't work. I haven't been able to get it to work, I have tested it with a healing item, it just makes it so nobody can use the consumable when this note tag is applied, no matter what I type in the place of "x".

    I just updated the first post.
    The x is a comma-separated list of IDs, e.g. <Only consumable by Actor: 1, 2>

    Let me know if it still doesn't work.
  5. .
  6. I tried this out in MV and found that the consumable restrictions work fine (which was the main thing I wanted), but usable restrictions don't.

    I'm not sure if maybe they work in some cases but not others. My use-case was a battle-only attack item – even if I set it to be only usable by certain actors or classes, the game still lets me use it in battle. I debugged a bit and found it was asking if the "party" can use it rather than whether the currently inputting actor can use it, which seemingly boils down to whether the leader can use it. I suspect it's possible that the place that's checking requirements is simply too late for items that don't target a party member?

    I got it working for my specific case by replacing Window_ItemList.prototype.isEnabled in a separate plugin file, but I thought it would be good to report it as well.
  7. Solar_Flare said:
    I tried this out in MV and found that the consumable restrictions work fine (which was the main thing I wanted), but usable restrictions don't.

    I'm not sure if maybe they work in some cases but not others. My use-case was a battle-only attack item – even if I set it to be only usable by certain actors or classes, the game still lets me use it in battle. I debugged a bit and found it was asking if the "party" can use it rather than whether the currently inputting actor can use it, which seemingly boils down to whether the leader can use it. I suspect it's possible that the place that's checking requirements is simply too late for items that don't target a party member?

    I got it working for my specific case by replacing Window_ItemList.prototype.isEnabled in a separate plugin file, but I thought it would be good to report it as well.
    Thanks for your report and detailed investigation!

    You're right, the window bypassed my plugin. I just fixed it and uploaded a new version. Please try again.
  8. hi,
    Aerosys said:
    Thanks for your report and detailed investigation!

    You're right, the window bypassed my plugin. I just fixed it and uploaded a new version. Please try again.
    nvm i needed to use another tag