iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

The 2nd Quarter Contest has arrived! Go check it out in the Community Announcements now!
 
Closed TopicStart new topic
> Additional Drops (Note Tags), More drops from your monsters! :D
Dairu
post May 17 2010, 01:24 PM
Post #1


your RGSS kitteh!
Group Icon


Type: Coder
Alignment: Chaotic Evil




This is a script requested by Kyle? via my scriptshop.

Additional Drops Note Tags
by Deriru


What it does:
It gives a feature wherein you can make enemies drop more items by using note tags. Note that the calculation is by percentage rather than fraction.

Features:
-Unlimited drops! XD
-Percentage calculation (except for the default drops... >.>")

How to use:
Refer to the instructions inside the script. :3

Demo:
v1.0

Script:
CODE
#===============================================================================
# Additional Drops Note Tags
# by Deriru
#
# PLEASE GIVE CREDIT IF USED!
#
#-------------------------------------------------------------------------------
# What it does:
# It gives a feature wherein you can make enemies drop more items by using note
# tags. Note that the calculation is by percentage rather than fraction.
#-------------------------------------------------------------------------------
# Setting up additional drops:
# Here is the format for making the tag note for additional drops:
# <DROP_TAG ItemType DropID Percentage>
#
# DROP_TAG: See setup options
# ItemType: The type of drop.
# DropID: The ID of the drop (to the left of the item/equip's name in database.)
# Percentage: Percentage of the item drop (out of 100)
#
# See the Slime in the demo's Enemy tab to see some examples.
#-------------------------------------------------------------------------------
# Setup Options:
# DROP_TAG: The note tag label for the additional drops.
#-------------------------------------------------------------------------------
# Setup Start!
#-------------------------------------------------------------------------------
module Deriru
module DropNotes
DROP_TAG = "Drops"
end
end
#-------------------------------------------------------------------------------
# Setup End!
# DO NOT TOUCH THE PARTS BELOW IF YOU DON'T KNOW WHAT YOU'RE DOING!
#===============================================================================

class Game_Troop < Game_Unit

alias make_drop_items_deriru_adnt make_drop_items
def make_drop_items
drop_items = make_drop_items_deriru_adnt
filt1 = /<#{Deriru::DropNotes::DROP_TAG} ([\w]*) [\w]* [\w]*>/i
filt2 = /<#{Deriru::DropNotes::DROP_TAG} [\w]* ([\w]*) [\w]*>/i
filt3 = /<#{Deriru::DropNotes::DROP_TAG} [\w]* [\w]* ([\w]*)>/i
for enemy in dead_members
data = $data_enemies[enemy.enemy_id].note
cat = data.scan(filt1)
id = data.scan(filt2)
chance = data.scan(filt3)
for i in 0..((cat.size) - 1) do
next unless rand(101) <= chance[i][0].to_i
case cat[i][0].to_i
when 1
drop_items.push($data_items[id[i][0].to_i])
when 2
drop_items.push($data_weapons[id[i][0].to_i])
when 3
drop_items.push($data_armors[id[i][0].to_i])
end
end
end
return drop_items
p(drop_items)
end
end


Credit:
Dairu (me): For making the script!
Kyle?: For requesting the script!

Author's Notes:
Please tell on how I can improve the script, if there are any bugs, and incompatibilities with other scripts. Thanks! :3
Oh, and please give credit if used. biggrin.gif

This post has been edited by Dairu: May 18 2010, 07:15 AM


--------------------

Look here for the scripts I've made: だいるのぶろぐ: RPG Maker VX Corner

I am...
Spoiler:

(got this from Cy, but it's actually from Chiaki xD)

I support the following...
Spoiler:







Currently working for:
Makryu
Go to the top of the page
 
+Quote Post
   
droggy
post May 17 2010, 07:02 PM
Post #2



Group Icon


Type: Undisclosed




Oh how long have I been waiting for someone to make that script... thanks! =P
Go to the top of the page
 
+Quote Post
   
Leridan
post May 17 2010, 07:11 PM
Post #3



Group Icon


Type: Designer
Alignment: Neutral Good




How coincidental, I was just thinking about how limited the default item drop options are a couple of days ago. Thanks for sharing this with us, Dairu. smile.gif


--------------------


I support:

Go to the top of the page
 
+Quote Post
   
Aukill
post May 17 2010, 10:19 PM
Post #4



Group Icon


Type: Writer
Alignment: True Neutral




This is amazing biggrin.gif Thanks a lot for the script.


--------------------


Support:

Go to the top of the page
 
+Quote Post
   
wltr3565
post May 18 2010, 06:48 AM
Post #5


The best BAKA ever
Group Icon


Type: Undisclosed
Alignment: True Neutral




One of your masterpiece, Dai wink.gif. But you didn't forget KGC's, right? KGC made one.


--------------------
This place is empty, just like I restarted myself.
Go to the top of the page
 
+Quote Post
   
Dairu
post May 18 2010, 07:13 AM
Post #6


your RGSS kitteh!
Group Icon


Type: Coder
Alignment: Chaotic Evil




I never knew KGC made one... x))


--------------------

Look here for the scripts I've made: だいるのぶろぐ: RPG Maker VX Corner

I am...
Spoiler:

(got this from Cy, but it's actually from Chiaki xD)

I support the following...
Spoiler:







Currently working for:
Makryu
Go to the top of the page
 
+Quote Post
   
Kyle?
post May 18 2010, 07:35 AM
Post #7


Psi My Faveroute Letter!
Group Icon


Type: Writer
Alignment: Chaotic Evil




Yah!
and no...
Check your PM's for one reason and
Codeboxes stuff up copy and pasting!

And I didn't know KGC made one either


--------------------

Spoiler:


I SUPPORT:
Spoiler:






MY AWARD(S):
Spoiler:




MY PROJECTS:
Spoiler:

The Return: The Elements - 1.0%


FIGHT THIS NAO!
http://kinghax.mybrute.com

JOIN THESE NAO!
Spoiler:


Go to the top of the page
 
+Quote Post
   
Dairu
post May 18 2010, 10:11 AM
Post #8


your RGSS kitteh!
Group Icon


Type: Coder
Alignment: Chaotic Evil




@Kyle?: Huh?


--------------------

Look here for the scripts I've made: だいるのぶろぐ: RPG Maker VX Corner

I am...
Spoiler:

(got this from Cy, but it's actually from Chiaki xD)

I support the following...
Spoiler:







Currently working for:
Makryu
Go to the top of the page
 
+Quote Post
   
wltr3565
post May 18 2010, 10:44 AM
Post #9


The best BAKA ever
Group Icon


Type: Undisclosed
Alignment: True Neutral




@dai:
Don't sweat it, dai. People might prefer yours better than KGC...


--------------------
This place is empty, just like I restarted myself.
Go to the top of the page
 
+Quote Post
   
shadwblitz
post May 18 2010, 01:06 PM
Post #10


Discotheque ♥ Love
Group Icon


Type: Writer
Alignment: True Neutral




Another script from Dairu. Good job biggrin.gif


--------------------
Spoiler:



Go to the top of the page
 
+Quote Post
   
Oerba Yun Fang
post May 22 2010, 08:25 PM
Post #11



Group Icon


Type: Undisclosed




Yay! Just what i was looking for. Thank you.
Go to the top of the page
 
+Quote Post
   
XtianRys
post Feb 18 2012, 08:47 AM
Post #12



Group Icon


Type: Writer




This is great, astig! Pinoy di ako dre

Hey how can armor drops? what item type will i use?
Go to the top of the page
 
+Quote Post
   
FenixFyreX
post Feb 19 2012, 11:40 AM
Post #13


I'm on fire 24/7 >:3
Group Icon


Type: Coder
Alignment: Lawful Good




You'd use item type 2. Also, necroposting AND double posting are not allowed. Please be careful next time; look at the last post's date before you post. If you need to say something else after you've posted, use the Edit button on your first post. I've merged your posts. I'm also closing this.
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th April 2014 - 12:19 AM

RPGMakerVX.net is an Privacy Policy, Legal.