Finalmente posso ricominciare a convertire il sistema di battaglia su MV. Il plugin è stato corretto da un gentilissimo utente e sembra funzionare davvero bene. Questo è il plugin:
//=============================================================================
// Change Event Settings
// by Shaz (conversion of Ace script for TechnoNinja)
// Last Updated: 2016.05.31
//
//=============================================================================
/*:
* @plugindesc Allows change of event graphic, priority and movement settings
* @author Shaz
* Correct by Krimer
* @help
*
* Call one of the following in a Script command (not a plugin command):
* page_graphic(ev, page, graphic, index)
* to change the graphic on an event's page
* page_priority(ev, page, priority)
* to change a page's priority
* page_move(ev, page, speed, freq, type)
* to change the momvement options of a page
*
*/
(function () {
Game_Event.prototype.page_graphic = function(page, graphic, index) {
index = index || 0;
this.event().pages.image.characterName = graphic;
this.event().pages.image.characterIndex = index;
this.setupPageSettings();
};
Game_Event.prototype.page_priority = function(page, priority) {
this.event().pages.priorityType = priority;
this.setupPageSettings();
};
Game_Event.prototype.page_move = function(page, speed, freq, type) {
type = type || null;
this.event().pages.moveSpeed = speed;
this.event().pages.moveFrequency = freq;
if (type) { this.event().pages.moveType = type };
this.setupPageSettings();
};
Game_Interpreter.prototype.page_graphic = function(ev, page, graphic, index) {
index = index || 0;
$gameMap.event(ev).page_graphic(page, graphic, index);
};
Game_Interpreter.prototype.page_priority = function(ev, page, priority) {
$gameMap.event(ev).page_priority(page, priority);
};
Game_Interpreter.prototype.page_move = function(ev, page, speed, freq, type) {
$gameMap.event(ev).page_move(page, speed, freq, type);
};
})();
"this.page_graphic(ev, page, graphic, index)"to change the graphic on an event's pagethis.page_priority(ev, page, priority)"to change a page's priorit"this.page_move(ev, page, speed, freq, type)"to change the momvement options of a page