Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // 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
- *
- * @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_Interpreter.prototype.page_graphic = function(ev, page, graphic, 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 = null) {
- $gameMap.event(ev).page_move(page, speed, freq, type);
- }
- Game_Event.prototype.page_graphic = function(page, graphic, index) {
- this.event().pages[page].image.characterName = graphic;
- this.event().pages[page].image.characterIndex = index;
- this.setupPageSettings();
- }
- Game_Event.prototype.page_priority = function(page, priority) {
- this.event().pages[page].priorityType = priority;
- this.setupPageSettings();
- }
- Game_Event.prototype.page_move = function(page, speed, freq, type) {
- this.event().pages[page].moveSpeed = speed;
- this.event().pages[page].moveFrequency = freq;
- if type { this.event().pages[page].moveType = type };
- this.setupPageSettings();
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement