Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // MoreItemDrops.js v1.0
- //=============================================================================
- /*:
- * @plugindesc Allows for unlimited item drop rewards from enemies after battle instead of the normal 3 max.
- * <id:More Item Drops>
- * @author Drykul
- *
- * @help
- * Use the first 3 drops for each enemy in the database as normal. For additional
- * drops, use the notetag:
- *
- * <drops>
- * x, y, z
- * x, y, z
- * ...
- * </drops>
- *
- * x = item type (1 is item, 2 is weapon, and 3 is armor)
- * y = item ID in the database
- * z = the denominator of chance (Works the same as normal in the database)
- *
- * You can add as many lines as you want to have an endless number of potential
- * item drops from that particular enemy.
- *
- * If you have any bugs to report, requests, or questions you can contact me
- * at drykul(at)cloud9studios.net. I'm also on www.rpgmakerweb.com and
- * www.rpgmakervxace.net as shaynec1981 as well as www.rpgmakermv.co as drykul.
- *
- * No credit is necessary for use of this script in either free
- * or commercial projects. Just shoot me a line and let me know if it was
- * worth your time! :)
- *
- * Visit us at www.cloud9studios.net to see what game we're working on next
- * and sign up for our newsletter to stay up to date with our goings-on!
- *
- * /~~CHANGE LOG~~/
- *
- * 07-31-16: 1.0 release
- */
- ////// Main function
- $multiLineTag = '';
- var Scene_Title_Alias_Drykul = Scene_Title.prototype.initialize
- Scene_Title.prototype.initialize = function () {
- for (i = 1; i < $dataEnemies.length; i++) {
- $multiLineTag = /<drops>([\s\S]*)<\/drops>/.exec($dataEnemies[i].note);
- if ($multiLineTag != null) {
- $multiLineTag = $multiLineTag[1];
- $multiLineTag = $multiLineTag.split('\n');
- $multiLineTag.pop();
- $multiLineTag.shift();
- for (x = 0; x < $multiLineTag.length; x++) {
- _tempVar = $multiLineTag[x].split(", ");
- $dataEnemies[i].dropItems[$dataEnemies[i].dropItems.length] = {
- kind: Number(_tempVar[0])
- , dataId: Number(_tempVar[1])
- , denominator: Number(_tempVar[2])
- };
- };
- $multiLineTag = '';
- };
- };
- Scene_Title_Alias_Drykul.call(this);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement