DropTable trigger chance

Discussion in 'Suggestions' started by Borc55, Nov 8, 2018 at 1:35 PM.

?

Good idea?

  1. yes

    1 vote(s)
    100.0%
  2. no

    0 vote(s)
    0.0%
  1. Borc55

    Borc55 New Member
    Supporter New Premium Supporter

    Joined:
    Nov 16, 2015
    Messages:
    4
    Likes Received:
    0
    Basically, I wanted to have drops a little more advanced, and made the same item in different 'qualities', I want the same mob to drop all of these items, but only one at a time. Currently, there's a way to do that thanks to MinItems, MaxItems and TotalItems.

    However.
    The problem with this is that if I set it to 1, it always drops an item. What I need is a chance for the droptable to be triggered (activated), and THEN roll the items in the droptable itself.

    Hope I explained that well.
     
    #1
  2. tiradorus

    tiradorus Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    31
    Likes Received:
    0
    Ehhhh, bro, not sure what you exactly want... But you can do it like that:

    LootTableExample:
    MinItems: 1
    MaxItems: 1
    Conditions:
    - playerwithin 40
    Drops:
    - Item1 1 0.8
    - Item2 0.015
    - Item3 0.005

    Your Lootable will loot 1 items, of the selected items above.
    First item have 80% chance to get looted
    Second have 15%
    Third have 5%

    Sooooo ...
     
    #2
  3. Borc55

    Borc55 New Member
    Supporter New Premium Supporter

    Joined:
    Nov 16, 2015
    Messages:
    4
    Likes Received:
    0
    If you put MinItems 1 in there, you always get one item rolled. Because it'll keep rolling until one drops.
    MinItems has to be 0, MaxItems 1. I already said that this is working.

    The style you wrote those chances is how I currently have it. But you can imagine it's quite complicated, if I for example want to have 10% chance for one of 5 items to be dropped:

    Item1 1 0.09
    Item2 1 0.07
    Item3 1 0.05
    Item4 1 0.03
    Item5 1 0.01

    Then the chance for an item will be around 10,5%. But it's still not quite accurate as you can imagine. That's why I want droptable trigger chance, so I can set it to what % I want without having to calculate it.
     
    #3
  4. tiradorus

    tiradorus Member
    Supporter Premium Supporter

    Joined:
    Sep 7, 2015
    Messages:
    31
    Likes Received:
    0
    Ok, so another example:

    GlobalLootTable:
    MinItems: 1
    MaxItems: 1
    Conditions:
    - playerwithin 40
    Drops:
    - LootTable1 0.1


    LootTable1:
    MinItems: 1
    MaxItems: 1
    Conditions:
    - playerwithin 40
    Drops:
    - Item1 0.8
    - Item2 0.015
    - Item3 0.005


    No problem! ;)
     
    #4
    Last edited: Nov 12, 2018 at 8:43 AM

Share This Page