public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Get All Items
  • Original author: ovate
  • Original date: May 18, 2018
  • Source thread: https://forums.rpgmakerweb.com/threads/get-all-items.95414/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

GetAllItems - 2017/04/13 Creator name: kido0617 Overview All item accessibility with plugin command

Archived First Post

GetAllItems - 2017/04/13

Creator name: kido0617

Overview
All item accessibility with plugin command

Features
- You don't have to go through Event Commands each time to add 1 of everything.
- Short code

Example-
Code:
GetAllItems item 99      # Get all items of 99 each
GetAllItems armor 10     # Get all armors of 10 each
GetAllItems weapon 1     # Get all weapons of 1 each

Preview
6M9fvb.png

If you add something like this at the beginning, you start out with whole possession of things.

Code:
/*---------------------------------------------------------------------------*
 * 2017/04/13 kido0617
 * http://kido0617.github.io/
 * MIT License
 * http://opensource.org/licenses/mit-license.php
 *---------------------------------------------------------------------------*/

/*:
 * @plugindesc All item accessibility with plugin command
 * @author kido0617
 *
 * @help
 *   Plug-in to get all weapons, armors, items
 * plugin command:
 *   GetAllItems item 99      # Get all items of 99 each
 *   GetAllItems armor 1      # Get all armors of 1 each
 *   GetAllItems weapon 1     # Get all weapons of 1 each
 */

/*:ja
 * @plugindesc 全アイテム取得プラグイン
 * @author kido0617
 *
 * @help
 *   全武器、防具、アイテムを取得するプラグイン
 * プラグインコマンド:
 *   GetAllItems item 99      # 全アイテムを99個獲得
 *   GetAllItems armor 1      # 全防具を1個獲得
 *   GetAllItems weapon 1     # 全武器を1個獲得
 */

(function(){

  var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
  Game_Interpreter.prototype.pluginCommand = function(command, args) {
    _Game_Interpreter_pluginCommand.call(this, command, args);
    if (command === 'GetAllItems') {
      switch (args[0]) {
      case 'item':
        getAlls($dataItems, Number(args[1]));
        break;
      case 'armor':
        getAlls($dataArmors, Number(args[1]));
        break;
      case 'weapon':
        getAlls($dataWeapons, Number(args[1]));
        break;
      }
    }
  };

  function getAlls(data, num){
    for(var i = 1 ; i < data.length; i++){
      if(data[i].name == "")continue;
      $gameParty.gainItem(data[i], num);
    }
  }

})();


Credit and Thanks: kido0617

Terms of Use- Free for commercial and non-commercial use.

License - MIT License: http://opensource.org/licenses/mit-license.php

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/h4t7t12cs6bf41m/GetAllItems.js?dl=1

Features Mentioned

  • You don't have to go through Event Commands each time to add 1 of everything.
  • Short code
  • Example
  • Code:
  • GetAllItems item 99 # Get all items of 99 each
  • GetAllItems armor 10 # Get all armors of 10 each
  • GetAllItems weapon 1 # Get all weapons of 1 each
  • Preview
  • "lightbox_close": "Close",
  • "lightbox_next": "Next",
  • "lightbox_previous": "Previous",
  • "lightbox_error": "The requested content cannot be loaded. Please try again later.",
  • "lightbox_start_slideshow": "Start slideshow",
  • "lightbox_stop_slideshow": "Stop slideshow",
  • "lightbox_full_screen": "Full screen",
  • "lightbox_thumbnails": "Thumbnails",
  • "lightbox_download": "Download",
  • "lightbox_share": "Share",

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

* MIT License * http://opensource.org/licenses/mit-license.php *---------------------------------------------------------------------------*/ /*:

Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar