(Yanfly) Can Extra Enemy Drops go below 1%?

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
It should. Although why would you have a drop rate that low?
 

Kaliya

// Caffeine Overload
Developer
Joined
Nov 1, 2015
Messages
506
Reaction score
566
First Language
English
Primarily Uses
RMMV
It does not, nor is it supported. Yanfly's extra drops only supports whole number drop rates, a design choice made by Yanfly.
 

Henryetha

Veteran
Veteran
Joined
Jan 14, 2016
Messages
388
Reaction score
206
First Language
german
Primarily Uses
Thank you, I was wondering the same since a while now and it's hard to test on such low drop rates.
 

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
Mostly because I have a vast array of materials. I wanted 90% of the materials to be able to drop from every enemy (With variations such as elemental materials dropping more often from elemental enemies), but 1% seemed a little high with around 70 different materials.


Thank you for the information. :)
 
Last edited by a moderator:

Kaliya

// Caffeine Overload
Developer
Joined
Nov 1, 2015
Messages
506
Reaction score
566
First Language
English
Primarily Uses
RMMV
You could modify the plugin to accept non whole numbers if you knew how.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
564
Reaction score
275
First Language
German
Primarily Uses
The plugin could handle decimal numbers, but they are not accepted in your notetags. You could go through the plugin and try to replace all 10 occurrences of


\d+)([%%])


by


\d+(?:\.\d+)?)([%%])


to allow decimal numbers as percentages.


I didn't test this, but if the game accepts a drop rate of 99.5% afterwards it should work for other numbers as well. :)


If you don't want to modify the original plugin, you can copy the affected functions into a new plugin, place it below the original and do the replacements there.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,584
Latest member
Faustus2501
Top