adiktuzmiko

Follower Amount Control v1.0

Oct 1st, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*:
  2.  
  3.  * @plugindesc Allows you to set the max number of followers using numbers or JS codes.
  4.  * @author Adiktuzmiko
  5.  
  6.  *@help To use just change the parameter "Value" to the amount or formula that you want
  7.  
  8.  Note: It is important that the file name of this plugin is FollowerAmountControl.js
  9.  
  10.  * @param Value
  11.  * @desc The value or formula that determines your number of followers
  12.  * @default 4
  13.  
  14. */
  15.  
  16. var FollowerAmount = {};
  17. FollowerAmount.params = PluginManager.parameters('FollowerAmountControl');
  18. FollowerAmount.value = FollowerAmount.params["Value"];
  19.  
  20. Game_Followers.prototype.initialize = function() {
  21.     this._visible = $dataSystem.optFollowers;
  22.     this._gathering = false;
  23.     this._data = [];
  24.     this._max = eval(FollowerAmount.value);
  25.     for (var i = 1; i < this._max; i++) {
  26.         this._data.push(new Game_Follower(i));
  27.     }
  28. };
Advertisement
Add Comment
Please, Sign In to add comment