Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
New threads (complete scripts) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
May 17 2010, 01:24 PM
Post
#1
|
|
![]() your RGSS kitteh! ![]() 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. This post has been edited by Dairu: May 18 2010, 07:15 AM -------------------- |
|
|
|
May 17 2010, 07:02 PM
Post
#2
|
|
![]() ![]() Type: Undisclosed |
Oh how long have I been waiting for someone to make that script... thanks! =P
|
|
|
|
May 17 2010, 07:11 PM
Post
#3
|
|
![]() ![]() 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.
-------------------- |
|
|
|
May 17 2010, 10:19 PM
Post
#4
|
|
![]() ![]() Type: Writer Alignment: True Neutral |
This is amazing
-------------------- ![]() Support: ![]() |
|
|
|
May 18 2010, 06:48 AM
Post
#5
|
|
![]() The best BAKA ever ![]() Type: Undisclosed Alignment: True Neutral |
One of your masterpiece, Dai
-------------------- This place is empty, just like I restarted myself.
|
|
|
|
May 18 2010, 07:13 AM
Post
#6
|
|
![]() your RGSS kitteh! ![]() Type: Coder Alignment: Chaotic Evil |
I never knew KGC made one... x))
-------------------- |
|
|
|
May 18 2010, 07:35 AM
Post
#7
|
|
![]() Psi My Faveroute Letter! ![]() 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: |
|
|
|
May 18 2010, 10:11 AM
Post
#8
|
|
![]() your RGSS kitteh! ![]() Type: Coder Alignment: Chaotic Evil |
@Kyle?: Huh?
-------------------- |
|
|
|
May 18 2010, 10:44 AM
Post
#9
|
|
![]() The best BAKA ever ![]() 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.
|
|
|
|
May 18 2010, 01:06 PM
Post
#10
|
|
|
Discotheque ♥ Love ![]() Type: Writer Alignment: True Neutral |
Another script from Dairu. Good job
-------------------- Spoiler: ![]() |
|
|
|
May 22 2010, 08:25 PM
Post
#11
|
|
![]() ![]() Type: Undisclosed |
Yay! Just what i was looking for. Thank you.
|
|
|
|
Feb 18 2012, 08:47 AM
Post
#12
|
|
![]() Type: Writer |
This is great, astig! Pinoy di ako dre
Hey how can armor drops? what item type will i use? |
|
|
|
Feb 19 2012, 11:40 AM
Post
#13
|
|
![]() I'm on fire 24/7 >:3 ![]() 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.
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 25th May 2013 - 02:08 PM |
|
|