Advertisement
nio_kasgami

Nio Simple Max Actor

Oct 25th, 2015
2,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //==============================================================================
  2. // Nio Simple max actor
  3. //==============================================================================
  4. /*:
  5.   // Basic Header
  6.    @plugindesc Small snipset who permit to increase the maximum battle member.
  7.    @author Nio Kasgami
  8.    @Data : 2015/10/25
  9.    @Version : 1.0.0
  10.    @ Require : NA
  11. //==============================================================================
  12.  // PLUGINS BOX COMMAND
  13.   @param Max member
  14.   @desc Permit to change the max member in the party and battle.
  15.   @default 4
  16.   @help This plugin does not provide plugin commands.
  17.  
  18.   @param Member pos offset
  19.   @desc Change the position in Y-axis for the members. it's a fix for avoid the overlaps with your status window.
  20.   @default -40
  21.  */
  22.  
  23.  
  24. (function() {
  25.     var parameters = PluginManager.parameters('Simple Max actor');
  26.     var new_max_member = Number(parameters['Max member']);
  27.     var members_posy_offset = Number(parameters['Member pos offset']);
  28.  
  29. //==============================================================================
  30. // ■ Game_Party
  31. //------------------------------------------------------------------------------
  32. // The game object class for the party. Information such as gold and items is
  33. // included.
  34. //==============================================================================
  35.  
  36. //----------------------------------------------------------------------------
  37. // ● overwrite function: maxBattleMembers
  38. //----------------------------------------------------------------------------  
  39. Game_Party.prototype.maxBattleMembers = function() {
  40.     return new_max_member;
  41. };
  42.  
  43. //===============================================================================
  44. // => END : Game_Party
  45. //===============================================================================
  46.  
  47. //==============================================================================
  48. // ■ Sprite_Actor
  49. //------------------------------------------------------------------------------
  50. // The sprite for displaying an actor.
  51. //==============================================================================
  52.  
  53. //----------------------------------------------------------------------------
  54. // ● overwrite function: setActorHome
  55. //----------------------------------------------------------------------------  
  56. Sprite_Actor.prototype.setActorHome = function(index) {
  57.     this.setHome(600 + index * 32, 280 + index * 48 + members_posy_offset);
  58. };
  59.  
  60. })();
  61. //===============================================================================
  62. // => END : Sprite_Actor
  63. //===============================================================================
  64.  
  65. //===============================================================================
  66. // => END PLUGIN
  67. //===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement