Jump to content


Photo

Enemy Drops

note

  • Please log in to reply
No replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Ace Member
  • 7,120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 14 October 2012 - 04:34 PM

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, 28 October 2012 - 10:14 AM.

All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?





Also tagged with one or more of these keywords: note

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users