Jump to content


Photo

Enemy Drops

Note

  • Please log in to reply
5 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 2,569 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 14 October 2012 - 05:25 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 - 11:13 AM.

himeworks011.png
My scripts.

Avatar by ShinGamix

#2 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 49 posts
  • Primarily UsesN/A

Posted 23 February 2013 - 11:17 AM

i have quest about 

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

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

 

 

i have to add them in monster note right ? .... i am asking that just to make sure where i have to add them...

also

thanks for this script 

will help me to improve the drop rate quality for each monster 

 

Edit: i get error

Script 'Feature: Enemy Drops' line 74: NoMethodError occurred.

undefined method '[]' for nil:nilClass

 

i get this error when i add 

 

<drop: a4 1> for the first monster(i write it in the note of the monster) and the error show up when i defeat the monster.

Edited by OffeNDer, 23 February 2013 - 11:26 AM.


#3 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 2,569 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 23 February 2013 - 04:04 PM

It should work now.

Edited by Tsukihime, 23 February 2013 - 04:09 PM.

himeworks011.png
My scripts.

Avatar by ShinGamix

#4 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 49 posts
  • Primarily UsesN/A

Posted 23 February 2013 - 04:34 PM

It should work now.

to make sure do i write them in note of the monster

or i go to Data\Notes\Enemies 

than i select the enemy

e.g

enemy1.txt

and write this

 

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

 

 

inside the Notepad ?



#5 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 2,569 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 23 February 2013 - 04:57 PM

Yes, both options are available depending on how you prefer to use notes.

I believe that would be the correct file that is loaded.
himeworks011.png
My scripts.

Avatar by ShinGamix

#6 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 49 posts
  • Primarily UsesN/A

Posted 24 February 2013 - 12:46 AM

Yes, both options are available depending on how you prefer to use notes.

I believe that would be the correct file that is loaded.

i just removed core:drop conditions, and now working perfectly 







Also tagged with one or more of these keywords: Note

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users