More Enemy Drops

RPG Maker MV allows you to create up to three item drops for an enemy. When the battle is over, the player may receive up to any of these 3 items.

When you specify drops, you use something called a “denominator” probability, which is basically you specifying the chances of the item dropping as a fraction of 1.

moreEnemyDrops2

For example, if an item had a 1/2 chance to drop, then it has a 50% chance to drop. If an item had a 1/3 chance to drop, then it has a 33.33% chance to drop.

Unfortunately, with this system, you could never have any probabilities in between.

This plugin addresses two issues:

  1. You can specify more drops
  2. You can specify probability using percentages

This should give you more flexibility when designing your enemies.
Want more freedom when it comes to enemy drops? Give this plugin a try!

Download

Plugin: download here (right click, save as)

Installation

Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the MoreEnemyDrops plugin. Please do not change the name.

Once it is in your list of plugins, turn the plugin on.

Usage

Understanding Item Codes

Before we begin, you must first understand a concept that I call “Item Codes”. The item code is a way for you to quickly specify what kind of item you want, and the ID of the item.

If you already understand item codes you can just skip this part. Here is a quick summary:

itemCodes1

This is how item codes looks like:

a11
w23
i42

The first letter represents the item kind.

a - armor
w - weapon
i - item

The number after is the database ID. So if you write

w23

That means the enemy will drop weapon 23.

Adding More Drops to Enemies

To create enemy drops, you would use a note-tag that looks like this:

<enemy drop>
  item_code: "ID",
  amount: number,
  chance: "FORMULA"
</enemy drop>

Take note of those commas: if you have additional options, you must include a comma.

Choosing which Item to Drop

`item_code` is the code that was described above. This indicates which item will be dropped.
The simplest note-tag you can write is

<enemy drop>
  item_code: "i4"
</enemy drop>

Which will drop item 4 with 100% chance.

Setting up Drop Chance

`chance` is a formula that evaluates to a number as a percentage. So for example, you could write numbers

<enemy drop>
  item_code: "w3",
  chance: "25"
</enemy drop>

Which means there’s a 25% chance to drop weapon 3.

Alternatively, you can use javascript code if you know how to write them. For example, this plugin gives you a special formula variable called `v` which gives you access to the game variables.

<enemy drop>
  item_code: "w3",
  chance: "v.value(3) * 10"
</enemy drop>

Which results in a chance equal to 10 times the value of variable 3. If variable 3 was 0, then you have no chance. If the variable was 10, then 10 times 10 equals 100, so you have 100% chance.

You can also use the formula variable “s” to give you access to switches.So for example,

<enemy drop>
  item_code: "a5",
  chance: "s.value(2) === false ? 0 : 100"
</enemy drop>

Which means if switch 2 is OFF, it drops armor 5 with 0% chance, but if that switch is ON, then you get it 100%.

Chance is not necessary, so f you don’t specify a chance, then it is assumed to drop at 100%.

Setting up Drop Amounts

The `amount` option tells the game how much of that item should drop. For example, if you write

<enemy drop>
 item_code: "w3",
 amount: 2
 </enemy drop>

Then it will drop two of weapon 3 if you receive this drop.

If you don’t specify an amount, then the game assumes you will only get 1.

You may also like...

50 Responses

  1. Sophia says:

    Hey there! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog post
    or vice-versa? My website goes over a lot of the same subjects as yours and I
    think we could greatly benefit from each other. If you might
    be interested feel free to send me an email. I look forward to hearing from you!
    Superb blog by the way!

  2. Kristena says:

    If some one needs to be updated with hottest technologies
    after that he must be go to see this web page and be up
    to date every day.

  3. Beck says:

    You actually make it seem so easy with your presentation but I find this topic to be actually something that I think I
    would never understand. It seems too complex and very broad
    for me. I am looking forward for your next post, I will try to get the hang of it!

  4. Arren says:

    Nice weblog right here! Additionally your web site so much up very fast!
    What host are you the usage of? Can I get your affiliate link in your host?
    I want my site loaded up as quickly as yours lol

  5. Vincenzo says:

    Fantastic goods from you, man. I have understand your stuff previous to and you are
    just extremely excellent. I actually like what you have acquired
    here, really like what you are stating and the way in which you say it.

    You make it enjoyable and you still care for to keep it sensible.
    I cant wait to read far more from you. This is really a great
    web site.

  6. Kriste says:

    What’s up it’s me, I am also visiting this site regularly, this site is truly
    pleasant and the visitors are in fact sharing pleasant thoughts.

  7. I visited multiple web pages however the audio feature for audio
    songs present at this web page is genuinely
    marvelous.

  8. Twanisha says:

    I could not resist commenting. Exceptionally well written!

  9. Claude says:

    I got this site from my friend who informed me regarding this site and now this time I am browsing this web page and reading
    very informative posts here.

  10. Canon says:

    Hey outstanding website! Does running a blog like this take a great deal of work?
    I’ve virtually no expertise in coding however I
    was hoping to start my own blog soon. Anyhow,
    if you have any recommendations or techniques for new blog owners
    please share. I know this is off topic however I simply wanted to ask.
    Thanks a lot!

  11. Kimberlie says:

    Valuable info. Fortunate me I found your web site by chance, and I’m shocked why this twist of fate didn’t came about earlier!
    I bookmarked it.

  12. Rache says:

    I’m not sure where you are getting your information, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for magnificent info I was looking for this information for my mission.

  13. Jacque says:

    Greetings! Very helpful advice within this post! It is the little changes that make the greatest changes.

    Thanks a lot for sharing!

  14. Charon says:

    This article will help the internet users for creating new web site or even a blog from start
    to end.

  15. Jules says:

    Hi, i read your blog from time to time and i own a similar one and i
    was just curious if you get a lot of spam feedback? If so how do you
    protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any assistance is
    very much appreciated.

  16. Frisco says:

    I was suggested this website by my cousin. I’m
    not sure whether this post is written by him as nobody else know such detailed
    about my problem. You’re amazing! Thanks!

  17. Katrina says:

    Wonderful post however , I was wondering if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit more.
    Bless you!

  18. Atia says:

    Today, while I was at work, my cousin stole my apple ipad
    and tested to see if it can survive a forty foot drop, just
    so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views.
    I know this is completely off topic but I had to share it with someone!

  19. Stefanie says:

    Have you ever thought about including a little bit more than just your articles?
    I mean, what you say is valuable and everything.
    Nevertheless imagine if you added some great images or videos
    to give your posts more, “pop”! Your content is excellent but with images and video clips, this site
    could definitely be one of the most beneficial in its niche.
    Superb blog!

  20. Andreah says:

    I loved as much as you’ll receive carried out right here.

    The sketch is tasteful, your authored material stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following.
    unwell unquestionably come further formerly again since exactly the same
    nearly very often inside case you shield this increase.

  21. Roman says:

    It is the best time to make a few plans for
    the future and it’s time to be happy. I have learn this
    post and if I may I wish to suggest you few attention-grabbing things or tips.
    Maybe you can write next articles relating to this article.
    I wish to read even more things about it!

  22. Siddharth says:

    Hello, always i used to check blog posts here in the early hours in the dawn, since i love
    to find out more and more.

  23. Domonique says:

    Thank you, I have recently been searching for information about this subject
    for a long time and yours is the best I have found out so far.
    However, what concerning the bottom line?
    Are you sure about the source?

  24. Sarena says:

    Right away I am ready to do my breakfast, after having my
    breakfast coming over again to read more news.

  25. Daja says:

    I do agree with all of the ideas you’ve presented for
    your post. They are very convincing and will definitely work.
    Nonetheless, the posts are too brief for novices. May you please lengthen them a little from next time?

    Thanks for the post.

  26. Lyndsey says:

    Good day! This is kind of off topic but I need some advice from
    an established blog. Is it difficult to set up your own blog?

    I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about creating my own but I’m not sure where
    to start. Do you have any points or suggestions?
    With thanks

  27. Nereida says:

    Hello There. I found your blog using msn. This is a really well written article.
    I will make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll certainly comeback.

  28. Cornell says:

    Highly descriptive article, I loved that a lot.
    Will there be a part 2?

  29. Jeneen says:

    Hello! This is my 1st comment here so I just wanted to give a quick shout out and say I really
    enjoy reading your posts. Can you suggest any other blogs/websites/forums that
    cover the same topics? Thanks a ton!

  30. Teodoro says:

    It’s going to be end of mine day, except before finish I am reading this great paragraph to increase my
    experience.

  31. Gerson says:

    Hello are using WordPress for your blog platform?
    I’m new to the blog world but I’m trying to get started and set
    up my own. Do you require any coding knowledge to make
    your own blog? Any help would be greatly appreciated!

  32. Rodolfo says:

    Spot on with this write-up, I actually think
    this amazing site needs far more attention. I’ll probably be back
    again to read through more, thanks for the advice!

  33. Beauty says:

    Woah! I’m really digging the template/theme of this blog. It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between usability and visual appearance. I must say you have done a great job with this. Additionally, the blog loads super fast for me on Opera. Outstanding Blog!

  34. Hello. Great job. I did not imagine this. This is a remarkable story. Thanks!

  35. With havin so much content do you ever run into any issues of plagorism or copyright violation? My website has a lot of completely unique content I’ve either written myself or outsourced but it appears a lot of it is popping it up all over the internet without my authorization. Do you know any ways to help prevent content from being stolen? I’d certainly appreciate it.

  36. One important thing is that while you are searching for a education loan you may find that you’ll want a cosigner. There are many situations where this is correct because you should find that you do not employ a past credit ranking so the bank will require that you have someone cosign the borrowed funds for you. Thanks for your post.

  37. I enjoy you because of your own efforts on this web page. Ellie really loves carrying out investigation and it is obvious why. Most of us know all regarding the lively means you provide advantageous ideas through this web site and as well as strongly encourage response from some other people on this area then my princess is certainly understanding a lot of things. Take pleasure in the remaining portion of the year. You are carrying out a dazzling job.

  38. Please tell me more about your excellent articles

  39. Hairstyles says:

    May I request that you elaborate on that? Your posts have been extremely helpful to me. Thank you!

  40. Seshua says:

    Hi

    So i’m trying to set up an enemy with drops I’ve just about tried every variation I can think of but I can’t seem to figure out a configuration that works
    I’ve tried it alot of ways but can’t get it to work, here are some examples.

    **with quotations and a comma separating them**
    <enemy drop>
    item_code: "w501", "w502"
    chance: "50", "50"
    </enemy drop>

    **same as previous except comma's at the end.**
    <enemy drop>
    item_code: "w501", "w502",
    chance: "50", "50",
    </enemy drop>

    **item code and chance without quotes**
    <enemy drop>
    item_code: w501, w502
    chance: 50, 50
    </enemy drop>

    **with out quotes and comma's at the end**
    <enemy drop>
    item_code: w501, w502,
    chance: 50, 50,
    </enemy drop>
    **I've tried it other ways as well...**

    Needless to say i’m at a loss, unless someone replies to this.
    If your still open to suggestions, maybe clarify a bit more in the help file, on how to set up a least 2 items. As of today august 2021, you only have single item drop examples.
    and one final suggestion, I can’t remember which plugin it is, but another I used in the note tag you could specify a range of items I.E. a14-25 would be the enemy could drop any of those items in-between those database ID’s.

    • Anonymous says:

      2 years later …
      To set up more than one drop you must list each drop separately ie
      item_code: “w501”, chance: “50”, </enemy drop>
      item_code: “w502”, chance: “50”, </enemy drop>
      (You can list them like this to save notebox space)

      • Anonymous says:

        rather*

        <enemy drop>item_code: "w501", chance: "50", </enemy drop>
        <enemy drop>item_code: "w502", chance: "50", </enemy drop>

  41. Anonymous says:

    Hello! 🙂

    Just wondering if this plugin has support for variables drop? or this is only for Armor, Weapon & items?
    Trying to make something like “Dark Soul” system, but not exactly the same. Just need “soul” drop for each enemy.

  42. Sundricat says:

    Would it be possible to have conditions for the item drop? For example, you only want to have Slimes drop a Dungeon Key if you either don’t have the key or the prisoner is freed.

  43. Paul says:

    Hi,
    can I use this plugin to control the random dropping out of enemies of GOLD or EXP?
    And how to be with a random amount items? For example I need to get from one enemy dropped out from 20 to 100 identical items in 100% of cases.

  44. wsensor says:

    Sorry this is long T_T

    It would be cool if you could specify drops based on skill/weapon/armor/accessory/class/herochar/element/attacktype used and such. Also a way to effect experience/gold drops too.

    IE: Hunting a monster while using the skill Hunt/Harvest/Poach would give you a chance at the item or a higher chance if it was already a drop
    IE: Using the skill Poach would give a higher chance to get items from the monster but lowers experience

    Also items could increase the chance of something.
    IE: Using a bladed weapon could give you a chance to get more meat but lower the chance to get leather from monsters.
    IE: Being a thief while wearing thief glvoes might get you more gold/items when defeating certain mobs.

    Using a fire spell on a plant monster such as a tree could be set up to give you charcoal at the end of the battle if it is in a burned state or dies to the fire attack.

    Different things like this would be cool to use.

    • Hime says:

      Those are good ideas. I will look into ways to provide drop conditions, as well as ways to change drop rates for specific drops.

Leave a Reply to Sundricat Cancel reply

Your email address will not be published. Required fields are marked *