Sign in to follow this  
Followers 0
Tsukihime

note
Enemy Drops

1 post in this topic

Enemy Drops

-Tsukihime

 

This script allows you to setup extra drops for a "drop_item" note section (aka "drop note")

You can tag a drop note with more than one drop, but each note just takes the first one it finds.

 

Download

 

Script: http://db.tt/jxgopxan

Required: Core: Note Sections

Optional: Core: Drop Conditions - if you want to specify percentage droprates instead of denominators.

 

Usage

 

Tag a drop note with

 

<drop: a23 denominator>

 

Where the "a" can be one of

 

w - weapon

a - armor

i - item

 

And the number is the ID of the item.

 

The denominator is the drop probability, so 2 is 1/2 which is 50%, 3 is 1/3 which is 33%, 10 is 1/10 = 10%.

 

So for example

 

<note: drop_item 4>
 <drop: w3 10>
</note>

<note: drop_item 5>
 <drop: a2 50>
</note>

 

Which will add weapon 3 with a 10% chance of dropping as the 4th drop item and armor 2 with a 2% chance of dropping as the 5th item.

 

If you are using the Core: Drop Conditions script, then you can instead pass in a decimal value for the probabilities. This changes the droprate system to treat 0 as 0%, 0.2 as 20%, 1 as 100%, etc.

Edited by Tsukihime

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.