- Joined
- Mar 15, 2012
- Messages
- 153
- Reaction score
- 8
- First Language
- english
I want to use the script call section to make custom enemy transform calls based on a game variable instead of the manual drop down menu in the editor. Doing so should allow designers to create one troop that can spawn any enemies in your game, eliminating the need for unique troops for every desired possibility of an encounter mix. This is the function for it but I'm not sure how to call it properly via script.
Code:
// Enemy TransformGame_Interpreter.prototype.command336 = function() { this.iterateEnemyIndex(this._params[0], function(enemy) { enemy.transform(this._params[1]); $gameTroop.makeUniqueNames(); }.bind(this)); return true;};
Last edited by a moderator:

