Jump to content


Photo

Enemy Drops

Note

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 Tsukihime

Tsukihime

    Advanced Member

  • Members
  • 4,824 posts

User's Awards

        

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, 27 June 2013 - 08:09 AM.

My Scripts. Go here for Bugs and Requests.

himeworks011.png

Like on Facebook: HimeWorks
Follow on Twitter: @HimeWorks

#2 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 82 posts

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
  • 4,824 posts

User's Awards

        

Posted 23 February 2013 - 04:04 PM

It should work now.

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

My Scripts. Go here for Bugs and Requests.

himeworks011.png

Like on Facebook: HimeWorks
Follow on Twitter: @HimeWorks

#4 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 82 posts

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
  • 4,824 posts

User's Awards

        

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.
My Scripts. Go here for Bugs and Requests.

himeworks011.png

Like on Facebook: HimeWorks
Follow on Twitter: @HimeWorks

#6 OffeNDer

OffeNDer

    Advanced Member

  • Members
  • 82 posts

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