Random Item Prefixes & Suffixes

● ARCHIVED · READ-ONLY
Started by DreamX 228 posts Page 8 of 12 View original ↗
  1. SimProse said:
    Thanks! Do you know when that will be, roughly?

    Hopefully this weekend.

    SimProse said:
    Also: I'm using the YF Extra Enemy Drops plugin, and the "Always Add Item" parameter doesn't seem to work with this. It returns nothing at all if a prefix or suffix isn't selected using the chances thing.

    Sure, I'll take care of that as well.
  2. v1.24:
    Note: This version does not allow for independent items (randomized) to be used as augments. I'll try to find a solution but Yanfly's plugin isn't supposed to be using independent items for augments.
    There's a link to the last version (1.23d) in the topic post if you prefer it.


    -Added compatibility with large icon display in Item Core and Shop Core, for icon overlays
    -Added new notetags to use more than one prefix/suffix, with chances you can
    decide per individual item or item set
    -Added new notetags to pre-augment item with augments, with chances you can decide per individual item or item set


    -This version may possibly not work correctly with saves of older versions


    Other New Notetags:
    <prefixSuffixDontAddName> Won't add the prefix/suffix name
    <prefixSuffixNoNameSpace> Doesn't add space when adding prefix/suffix name
    <prefixSuffixCapitalizeFirstLetter> Will capitalize the first letter of the new item's name
    and lower case every other letter


    I tested:
    -Everything new that was added
    -Adding Upgrades to randomized items
    -Drops with and without YEP Victory Aftermath
    -Drops with Yanfly Extra Enemy Drops
    -Saving/Loading
    -Removing augments from pre-augmented items
    -Pre-augmenting items in Hime's Shop Core
    -Buying pre-augmented items in Hime's Shop Core
    -Removing augments from pre-augmented items bought from Hime's Shop Core
    -Buying multiple randomized items from Hime's Shop Core


    Script (Latest)

    Code:
     * ============================================================================
     * Affix Choices
     * ============================================================================
     * You can have unlimited amounts of prefix and suffix combinations.
     * Each set of choices should begin on its own line.
     * You can enter ranges to select randomly for a set of numbers (ids).
     * After a number or set of numbers, you will enter the chance.
     * If the chances do not add up to 100%, there is a chance none will be chosen.
     * It's up to you use percentages that add up to less than or equal to 100%.
     * Not doing so many result in undesired results.
     *
     * Here's an example with suffixes.
     * <Suffixes>
     * 5-8 11 50% 10 50%
     * 7 100%
     * </Suffixes>
     * In this example, one id from 5-8, and 11 has a 50% chance of being chosen, 
     * and id 10 has a 50% of being chosen.
     * Then, 7 has a 100% chance of being chosen.
     *
     * Here's another example with prefixes this time.
     * <Prefixes>
     * 12-15 20 22 25%
     * </Prefixes>
     * In this example, one id from 12-15, 20 or 22  has a 25% of being chosen. 
     * So, there is a 75% of none being chosen.
     * 
     * ============================================================================
     * Augment Choices
     * ============================================================================
     * Augment choices work much the same way as affix choices, except you will 
     * also be what type of augment the augment is. The augment ids should be for 
     * the item part of the database only, not weapon/armor. The augments will be 
     * applied when the new item is created.
     * 
     * <Prefix Suffix Augments>
     * Glyph 17-19 50% 20-23 26 50%
     * </Prefix Suffix Augments>
     * 
     * In this example, the augment type is Glyph. There is a 50% chance to use 17, 
     * 18 or 19 as the augment, and a 50% chance to use 20, 21, 22, 23 or 26 
     * instead.
     * 
     * You can use multiple lines. Here's another example.
     * <Prefix Suffix Augments>
     * Glyph 17-19 50% 20-23 26 50%
     * Orb 50-56 25% 7 50%
     * </Prefix Suffix Augments>
  3. Awesome...it seems to work better overall. 


    A few (small?) bugs:


    - I use Yanfly's Durability mod, and it seems totally incompatible with that...I get a 'undefined' type crash. A number of people may use this mod, so it would be awesome if that could be fixed possibly?


    - Everytime I get an item, it seems to 'duplicate' an existing armor or weapon item I started the game with. In my case, you start with a Dagger and Clothes, and every turn it creates a new copy of each, screen attached. I've disabled any other plugins that do anything with items for testing purposes.

    maybebug.jpg
  4. Starting items should not be used with prefix/suffix notetags, if that's what you're doing.
  5. Ah ok, I was doing that. Didn't read that anywhere. Might be useful to add, if it isn't in the help.  :D
  6. Also: For me at least, the full modded name is still not appearing in the Item Victory Aftermath screen. It just says "Short Sword", but when I go to the Inventory screen, it does say "Short Sword of Accuracy", for example. All i'm using for this part is Yanfly's Victory Aftermath screen with the Level Up Victory Aftermath under it.
  7. SimProse said:
    - I use Yanfly's Durability mod, and it seems totally incompatible with that...I get a 'undefined' type crash. A number of people may use this mod, so it would be awesome if that could be fixed possibly?

    Try the latest version I just uploaded (same link).

    SimProse said:
    Also: For me at least, the full modded name is still not appearing in the Item Victory Aftermath screen. It just says "Short Sword", but when I go to the Inventory screen, it does say "Short Sword of Accuracy", for example. All i'm using for this part is Yanfly's Victory Aftermath screen with the Level Up Victory Aftermath under it.

    Since I am not able to reproduce this error, please start a new project and try to recreate the problem in as few steps as possible. Then, tell me which steps you took to create the error.
  8. DreamX said:
    Try the latest version I just uploaded (same link).



    Nope, still gives an error "Cannot read property 'Durability' of undefined".
  9. SimProse said:
    Nope, still gives an error "Cannot read property 'Durability' of undefined".

    I am not getting this error so I'll ask you to also find the shortest path to this error with a new project.
  10. Actually, hmm...never mind I guess. I had the idea (read somewhere on the forum this can make a difference) of rearranging the plugins in the list a bit, and now it seems to work just fine.


    Just in case it helps anyone else at all, here's my plugin list sequence for this part, below.

    pluginlist.jpg
  11. v1.25:


    Fixed bug that didn't allow usage of <prefixSuffixUseWeaponDatabase> & <prefixSuffixUseArmorDatabase> notetags


    @Lilian


    Fixed issue where checking if party has an item didn't work for items made by this plugin. Requires new game to work. @lolshtar
  12. v1.26 Fixed equipping prefix/suffix items with Change Equip event Command. Fixed removing equipped Prefix/Suffix items with Change Armor/Change Weapon event commands. @lolshtar
  13.  I really like this. I've been looking for something like this for some time now.
    What I was looking, however, is for a way to let the player add slots in game. Will this be possible in the future? Or is it already possible and I just don't understand how to do it?
  14. Hey,


    I'm getting an error which I think is caused by the icon overlay combining thing when I go to equip an item with a suffix. Is there a way to disable that feature? I have no need for it. I attached a screenshot of the error.


    error.jpg


    EDIT: I commented out a lot of code that pointed to icons and now it works for me.
  15. Hopefully this ok to ask here im trying to use your </Prefix Suffix Effect> notetage to create items the will scale to the players level when they are created how do i access either an average of all party members level or even just the party leaders level from there?


    I Thought i figured it out but still got an error, here is my idea


    <Prefix Suffix Effect>
    var levelset = $gameParty.leader().level();
    var atkBonus = Math.floor(Math.random()*((levelset*5 )-(levelset*3)+1)+(levelset*3))
    newItem.name += " +" + atkBonus;
    newItem.price += atkBonus;
    </Prefix Suffix Effect>


    im my game all actors will always have the same level so this should work


    I got it nvm lol
  16. Trying to organize my item prefixes and suffixes inside my database and I'm a little confused about: 


    <prefixSuffixUseWeaponDatabase>



    Is it possible, for example, to add suffixes from the Weapon Database to a piece of armor in addition to adding prefixes to it from the Armor Database?


    I've created a handful of suffixes that I want to use globally across armors and weapons (stat parameter changes mostly) and keep them all inside my Weapon Database. Additionally I've also created prefixes that are more specific to weapons or armor individually (like adding an element trait or defense chance) that I'd like to keep inside their appropriate database.
  17. Great plugin, thanks!
  18. Any chance of adding an option for a prefix / suffix to randomly choose from a list of prefixes / affixes once rolled? I am trying to set up my database so that base items can roll a certain range of prefixes that add an element to the item. Then I'd like for that chosen prefix to roll from another range of prefixes so that I can set 'tiers' of these elemental prefixes. Kind of like what Yanfly's enemy swappers do, except this is for items and not enemies. It would certainly be cleaner than having a huge list of prefixes to choose for in the original base item.


    In my game I already have most of my item setup complete, but this would be an immerse boon. If DreamX (or someone else) could implement this, I would be really grateful.


    Already loving this plugin, though. I'm going to implement it to most of my other projects as well. Gives that 'Diablo' feel of random drops that just spices up enemy drops nicely.
  19. Zelgadis85 said:
    Any chance of adding an option for a prefix / suffix to randomly choose from a list of prefixes / affixes once rolled? I am trying to set up my database so that base items can roll a certain range of prefixes that add an element to the item. Then I'd like for that chosen prefix to roll from another range of prefixes so that I can set 'tiers' of these elemental prefixes. Kind of like what Yanfly's enemy swappers do, except this is for items and not enemies. It would certainly be cleaner than having a huge list of prefixes to choose for in the original base item.


    In my game I already have most of my item setup complete, but this would be an immerse boon. If DreamX (or someone else) could implement this, I would be really grateful.


    Already loving this plugin, though. I'm going to implement it to most of my other projects as well. Gives that 'Diablo' feel of random drops that just spices up enemy drops nicely.

    I might add it, I'll see if I can conveniently work that in.
  20. Hi thanks for this plugin is really good, but i have a problem when i try to use a Suffix based on the YEP Element Core to add Magnify/Amplify to the new weapon, the cooldown reduction works but the elemental boost doesnt, also if i use two suffix some weapons are created using 2 suffixes instead of only 1 how can i fix that?


    <Suffixes>


    9 50%


    1150%


    </Suffixes>


    item 9 <Global Cooldown: -2>


    item 11 <Element Amplify 2: +200%>