More Enemy Drops

Discussion in 'JS Plugin Releases (RMMV)' started by Tsukihime, Nov 7, 2015.

  1. NakedGrif

    NakedGrif Villager Member

    Messages:
    23
    Likes Received:
    1
    Location:
    Kentucky
    First Language:
    English
    Didnt change anything for me. 
     
    #21
  2. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Is it the Nov 8 version?
     
    #22
  3. NakedGrif

    NakedGrif Villager Member

    Messages:
    23
    Likes Received:
    1
    Location:
    Kentucky
    First Language:
    English
    The link still takes me to the Nov 6th version
     
    #23
  4. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    I clicked on the link just now and it shows Nov 8.


    Could be a browser caching issue.


    Try hitting refresh, or using incognito mode
     
    #24
  5. NakedGrif

    NakedGrif Villager Member

    Messages:
    23
    Likes Received:
    1
    Location:
    Kentucky
    First Language:
    English
    That did it! Thanks so much for puzzling it out
     
    #25
  6. cellicom

    cellicom Uncle celli Veteran

    Messages:
    41
    Likes Received:
    26
    Location:
    Palermo, Italy
    First Language:
    Italian
    With the new version (Nov 8), now it's working.

    Thanks for the support :)
     
    #26
  7. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    Hime, did you ever implement this?
     
    #27
  8. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Not yet. Still haven't thought about how I would like to go about doing it.


    I like the grouping idea, but I don't really want to explicitly tag each drop in a group.
     
    #28
    wrigty12 likes this.
  9. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    Just a random thought, but how about:

    <enemy drop: a1 80% ? a2 50% ? a3 10%> where ? (or another symbol) would represent like an "or".
     
    #29
  10. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Hmm, so like a formula for the drop.

    I was thinking something more like this

    Code:
    -- set up all drops<enemy drop: a1 80%> // 1<enemy drop: a2 50%> // 2<enemy drop: a3 20%> // 3<enemy drop: i2 50%> // 4<enemy drop: i3 40%> // 5-- create groups.<drop group: 1 2 3><drop group: 4 5>
    So you could potentially put the same drop in multiple groups so you don't have to duplicate drop data.
     
    Last edited by a moderator: Nov 15, 2015
    #30
    wrigty12 likes this.
  11. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    OOOO I like that a lot more!
     
    #31
  12. Torqus

    Torqus Veteran Veteran

    Messages:
    169
    Likes Received:
    26
    First Language:
    English
    So you could potentially put the same drop in multiple groups so you don't have to duplicate drop data.What do you mean? Using

    <enemy drop: a1 80%> // 1

    <enemy drop: a2 50%> // 2

    <enemy drop: a3 20%> // 3

    <enemy drop: i2 50%> // 4

    <enemy drop: i3 40%> // 5

    in one place and then using

    <drop group: 1 2 3>

    <drop group: 4 5>

    in monster groups?

    Seems kinda useful if you make a list of the items and armors in your database so you can assign drops easily... and I love doing lists :D
     
    Last edited by a moderator: Nov 16, 2015
    #32
  13. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Well, in my example, there are 5 drops (I ignore the built-in drops box since it's not useful to me).

    They are numbered 1 to 5 in the order that they are written in the note.

    When you set up your groups, you would use these numbers to refer to each drop.

    The groups themselves can have extra properties.

    Everything would be written in the same note for easy reference.
     
    Last edited by a moderator: Nov 16, 2015
    #33
  14. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Just putting some information out there. It has not been implemented yet.

    I will be updating the plugin soon to support two things

    1. Specifying the "quantity" of a drop

    2. Specifying a formula as the probability

    I will also be introducing a new note-tag format which would allow for add-on plugins.

    Quantity

    By default, when an enemy drops an item, you only receive one of it.

    So if they drop a potion...you get one potion.

    If you need them to drop 5 potions, then you'll have to create 5 drops.

    With the "quantity" property, you can say "if this drops, drop 5 potions".

    Probability Formula

    For the probability, currently it is based on flat percentages.

    I will be extending it to support formulas.

    This way, you could say that the probability of an item dropping when a switch is OFF is 0.

    This is good for quest drops, or any sort of conditions that you want to put in.

    New Notetag

    A new note-tag will be provided if you would like to use these features.

    It will look like this

    <enemy drop> item_code: "i3", amount: 5, chance: "s[2] === true ? 100% : 0 %"</enemy drop>Note the use of quotations for strings, commas to separate different properties, and colons to distinguish between property names and property values.This new note-tag format would also allow me to add new properties easily, and if you would like to use the new properties, you can just add on to your existing note-tags.

    Drop item groups

    A few weeks ago I mentioned something about grouping drops together.

    That will be provided as a separate plugin, but it will use the new note-tag format.

    With the new note-tag, you can specify which group a drop is in

    Code:
    <enemy drop>  item_code: "w3",  group: [1]</enemy drop><enemy drop>  item_code: "w3",  group: [1,2]</enemy drop>
    And then you can specify "drop group" settings

    Code:
    <enemy drop group: 1>  max_drops: 2</enemy drop group>
    This way, you can say "for all drops in group 1, at most two of them will be picked"
     
    Last edited by a moderator: Nov 25, 2015
    #34
  15. Torqus

    Torqus Veteran Veteran

    Messages:
    169
    Likes Received:
    26
    First Language:
    English
    Nice. This will be the best drops system with the groups and "max_drop" feature.
     
    #35
  16. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    I would like to announce that I've updated the plugin to support the two new features I mentioned above:

    - specifying how many of an item you get when it drops. For example, maybe the enemy drops 3 potions at a time.

    - specifying the drop chance as a formula, which basically means support for conditions.

    I've also decided to drop support for the old note-tag, because it was not very flexible and couldn't support new features easily (such as formula chance).

    The new note-tag looks like this

    <enemy drop> item_code: "w3", chance: "v.value(3) * 10", amount: 2 </enemy drop>Which looks a lot longer, but it provides you with more functionality.Read over the new instructions to see how it looks.

    I will be adding support for drop groups later, now that I have set up the drop system.
     
    Last edited by a moderator: Nov 26, 2015
    #36
    Maliki79 likes this.
  17. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    639
    Likes Received:
    244
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    When will we get to try the updated plugin?
     
    #37
    Tsukihime likes this.
  18. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    Oh, I just realized the link was pointing to the old plugin.


    I've updated the link!
     
    #38
  19. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    639
    Likes Received:
    244
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    Thank you Hime.

    I've (obviously) not had the chance to try the new tags, but seeing as their is an easy way to include variables and switches, are there ways to include target's or subject's stats or conditions?
     
    #39
  20. Maliki79

    Maliki79 Veteran Veteran

    Messages:
    639
    Likes Received:
    244
    Location:
    New Jersey
    First Language:
    English
    Primarily Uses:
    N/A
    Hi TH.

    Been trying to get this to work, but can't seem to.
    I've been trying with the tag:

    <enemy drop>item_code: "i3"</enemy drop>and no drops are added.

    I've tried turning off all other active plugins, but that didn't work either.

    I'm assuming it's the way I'm doing the tags...
     
    #40

Share This Page