Extra Enemy Drops

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Vlue, May 16, 2014.

    Tags:
  1. Vlue

    Vlue Talent Extraordinaire Member

    Messages:
    589
    Likes Received:
    375
    Location:
    Canada
    First Language:
    English
    Extra Enemy Drops 1.0
    By Vlue
    Introduction
    Pretty simple. You can normally only set up to three drops from one enemy. That's boring (I don't like limits). So this script lets you avoid that by allowing you to set as many items as you want to drop from an enemy, as well as a max number of different items to be dropped all together.

    Features
    - Add more than three item drops.

    How to Use
    Set up notetags for extra items as needed. Play.

    Script
    Pastebind: http://pastebin.com/k9a9LXZ6

    FAQ
    Q: My Banana's gone soft. What do I do?
    A: Make banana bread.

    Credit and Thanks
    - By Vlue
    - Free to use in any project, commercial or otherwise, with credit given.
     
    #1
    Derahex likes this.
  2. Randommerade

    Randommerade All those years, outside looking in... Veteran

    Messages:
    561
    Likes Received:
    80
    Location:
    'Murica
    First Language:
    English
    I like banana bread!!

    Pretty cool script =D
     
    #2
    Vlue likes this.
  3. Uzuki

    Uzuki Kawaii on the streets, Senpai in the sheets Veteran

    Messages:
    1,839
    Likes Received:
    1,255
    Location:
    Georgia
    First Language:
    English
    Primarily Uses:
    RMMV
    If you don't like banana bread that's the sure sign that your a demon....or allergic to bananas. 

    Great script Vlue. This will go great with people who don't use yanfly's script.
     
    #3
    Vlue likes this.
  4. resinate

    resinate Veteran Veteran

    Messages:
    42
    Likes Received:
    0
    First Language:
    English
    Please fix the typo - missing entire line of code here

    class Game_Enemy
      def make_drop_items
        iter = 0
        enemy.drop_items.inject([]) do |r, di|
          if di.kind > 0 && rand * di.denominator < drop_item_rate && iter < MAX_ENEMY_DROPS
            iter += 1
            r.push(item_object(di.kind, di.data_id))
          else
            r
          end
        end
      end
    end
     
    Last edited by a moderator: Dec 30, 2015
    #4
  5. desrrich

    desrrich Warper Member

    Messages:
    4
    Likes Received:
    1
    First Language:
    English
    Hello Vlue, :) I noticed when i run with script with Yanfly's Passive state script i get an error in Yanbfly'sPassiveStates' Line 198 NoMethodError occured. Unidentified method 'each' nil: NilClass. It happens when running a new game. Have you encountered this issue and do you possible know how to fix it? If not i can try another script. I am using a couple of yours already so id love to stick with certain scripts for my project. If you would like i can set up a link with a demo of the issue.

    Thanks again!, You an awesome scripter btw! Keep it up :)
     
    #5
  6. cedric44

    cedric44 Villager Member

    Messages:
    5
    Likes Received:
    2
    First Language:
    french
    Hey, how does it work if i want a specific item to give an extra % chance of drop.
    EX: 1 Gold card = +0.1% drop chance on all items, weapons, armors that enemies drop.
    10 Gold card = +1% drop chance…….etc


    so for example: Normal drop rate for potion = 50% on Slime monster
    (10 Gold card in inventory) drop rate for potion= 51% on Slime monster


    Can someone help me with how to do this.
    Please
     
    #6

Share This Page