- Joined
- Nov 3, 2018
- Messages
- 1
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I'm writing a simple(?) plugin to change the number of followers on the map but can't understand why my plugin won't execute. The code I wrote is as follows:
I'm not done yet but my question is: as is, the code will work as intended. However, if I un-comment the lines it won't work. Could someone explain why that is? Also, I know there are plugins out there that can do this but I'm trying to learn how to code.
Code:
* @param Follower Count
* @desc Determines the number of followers
* @default 4
(function() {
//var parameters = PlugInManager.parameters('MaxFollowers');
//var followerCount = Number(parameters['Follower Count']);
var _Game_Followers_initialize = Game_Followers.prototype.initialize;
Game_Followers.prototype.initialize = function() {
_Game_Followers_initialize.call(this);
for (var i = 4; i > 2; i--) {
this._data.pop();
}
};
})();

