Hide Key Item Quantities

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by DerTraveler, Sep 20, 2013.

  1. DerTraveler

    DerTraveler Veteran Veteran

    Messages:
    48
    Likes Received:
    38
    Location:
    Osaka, Japan
    First Language:
    German
    Hide Key Item Quantities v1.1
    by DerTraveler

    Introduction

    Hides the quantity of Key Items, which are usually unique items.

    It is possible to switch between two modes for Key Items that are possessed multiple times:

    • Show the quantity as usual
    • Give each single instance its own item menu entry.
    The changes of the script apply both to the normal menu and to the "Select Key Item..." event command.



    Since version 1.1 you can also enter the <unique> notetag into a normal items note field, in order to have it also displayed as if it was a key item (useful for unique weapons and armors for example).



    Screenshots


    SingleEntry.png

    The normal display mode, showing the quantity to the right of the key item.

    MultipleEntries.png

    Showing a menu entry for every key item.





    How to Use

    Paste it anywhere in the Materials section.
    See Script header for further instructions.



    Demo
    Not necessary. See screenshots for an example how it looks like.

    Script

    Can be found here.

    Credit and Thanks
    - DerTraveler

    Author's Notes

    Free to use in any commercial or non-commercial project.
     
    Last edited: Sep 23, 2017
    #1
  2. LucasRiot

    LucasRiot HUMANELFO Veteran

    Messages:
    38
    Likes Received:
    10
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    N/A
    Great ideia! xD
     
    #2
  3. RadiantCadenza

    RadiantCadenza Veteran Veteran

    Messages:
    99
    Likes Received:
    62
    First Language:
    English
    I didn't even think to do this, but it actually makes the inventory for the game I'm working on look much neater. Thanks!

    I actually tweaked it so that it does it to all items, not just key items; I'm making an 'adventure' type game with item-based puzzles and a very limited inventory, so nearly every item in the game is unique, but I didn't want to make all of them key items even though they basically are.

    If anyone else wants to do the same, all you need to do is delete 

    && @category == :key_item

    on line 67 

    and

    !item.key_item||

    on line 84. (leave that 'if' alone') 

    As a feature suggestion, perhaps you can implement an item comment tag, like <UniqueItem> (or whatever you want to call it) so that if an item is tagged with it and you only have one, it won't display a number either. I think that'd be good for things like unique items or weapons that are special, but not actually key items. 
     
    Last edited by a moderator: Sep 28, 2013
    #3
    LordBezoar likes this.
  4. LordBezoar

    LordBezoar Villager Member

    Messages:
    6
    Likes Received:
    0
    Location:
    Seattle, Washington
    First Language:
    English
    Excellent script idea, DerTraveler. Thank you so much for sharing!

    I would also like to second this feature suggestion.  :D
     
    #4
  5. DerTraveler

    DerTraveler Veteran Veteran

    Messages:
    48
    Likes Received:
    38
    Location:
    Osaka, Japan
    First Language:
    German
    Updated the script ;)

    Now you can used the <unique> notetag in order to give particular normal items the same display properties as key items ;)
     
    #5
  6. DerTraveler

    DerTraveler Veteran Veteran

    Messages:
    48
    Likes Received:
    38
    Location:
    Osaka, Japan
    First Language:
    German
    Seems no one has been trying out the updated version, since it had a major bug. Namely, the game crashed when entering the Weapon or Armor List screen....

    This is now fixed... Updated script is in the pastebin in the first post...
     
    #6
  7. Megablackdragon31

    Megablackdragon31 Veteran Veteran

    Messages:
    215
    Likes Received:
    35
    Location:
    Argentina
    First Language:
    Spanish
    I found that bug several weeks ago,but i was ocuppied so i dont have time to explore in internet... Sorry for that,excuse me for my bad english and greetings from Argentina.

    PD: great job,i love this script,good luck in your future projects.
     
    #7
  8. Hoorebeke Enterprise

    Hoorebeke Enterprise ~Doom~ Veteran

    Messages:
    30
    Likes Received:
    8
    Location:
    Planet Hoorebeke
    First Language:
    English
    Primarily Uses:
    RMVXA
    Omg, I finally was able to find something xD I have been looking for this, I hope this works with the Yanfly Item Script. Thank you so much xD
     
    #8

Share This Page