查看: 4553|回复: 1

[搬运汉化] 【汉化】Yanfly系列--Region图层控制系列插件

[复制链接]
梦石
0
星屑
50
在线时间
21 小时
注册时间
2015-12-24
回帖
16
发表于 2016-2-25 11:21:58 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 bennett01 于 2016-2-25 11:23 编辑

Hello 大家好!年过的还好吗?很久没露面是因为过年太忙了(谁关心啊..),好吧,年后给大家带来了Yanfly系列的Region图层控制系列插件的汉化。
什么?你问我Region图层是个什么鬼?哼,我才不会告诉你 region就是图层界面的R选项卡中那些包含从1到255的奇快色块呢!
关于还是摸不着头脑的同学,建议配合教学视频一起观看!嗯,视频就麻烦@沧笙 同学了。

-------------------------我华丽吗?------------------------------

1、YEP_RegionBattlebacks --- Region 战斗背景控制
YEP_RegionBattlebacks//=============================================================================
// Yanfly Engine Plugins - Region Battlebacks
// YEP_RegionBattlebacks.js
//=============================================================================

var Imported = Imported || {};
Imported.YEP_RegionBattlebacks = true;

var Yanfly = Yanfly || {};
Yanfly.RBB = Yanfly.RBB || {};

//=============================================================================
/*:
* @plugindesc v1.00 This lets you assign certain battlebacks to specific
* region ID's when entering battle in that region.
* @author Yanfly Engine Plugins
* region战斗背景定义工具--可以使用区域图块组控制你遇敌时的战斗背景
* 什么叫区域图块组?就是图块组里的R选项卡,里面是1-255的ID标识
* 同时这个插件还可以让你修改默认地形的遇敌背景,很方便。
* --翻译 by 抖M俱乐部的 SmithJiong/bennett01/SOAP
* 转载请注明出处
* 注意:下面parameters配置中,Battleback1表示背景图下层,即img\battlebacks1中的文件
* Battleback2表示背景图上层,即img\battlebacks2中的文件,不再单独解释。
* paremeters配置主要让你修改默认地图战斗背景使用,
* 如果你想使用region区块标记不同的战斗背景,请使用地图配置界面的注释命令。
*
* @param ----------
* @default
*
* @param Default 1
* @desc The filename used by default for battleback1.
* Default: Grassland
* @default Grassland
* 默认平地形战斗底图1
*
* @param Default 2
* @desc The filename used by default for battleback2.
* Default: Grassland
* @default Grassland
* 默认平地形战斗底图2
*
* @param ----------
* @default
*
* @param Ship 1
* @desc The filename used by ships for battleback1.
* Default: Ship
* @default Ship
* 默认船上战斗底图1
*
* @param Ship 2
* @desc The filename used by ships for battleback2.
* Default: Ship
* @default Ship
* 默认船上战斗底图2
*
* @param ----------
* @default
*
* @param Forest 1
* @desc The filename used by forests for battleback1.
* Default: There is none.
* @default There is none.
* 默认森林战斗底图1
*
* @param Forest 2
* @desc The filename used by forests for battleback2.
* Default: Forest
* @default Forest2
*
* @param ----------
* @default
*
* @param Cliff 1
* @desc The filename used by cliffs for battleback1.
* Default: There is none.
* @default There is none.
* 默认峭壁战斗底图1
*
* @param Cliff 2
* @desc The filename used by cliffs for battleback2.
* Default: Cliff
* @default Cliff
* 默认峭壁战斗底图2
*
* @param ----------
* @default
*
* @param Wasteland 1
* @desc The filename used by wastelands for battleback1.
* Default: Wasteland
* @default Wasteland
* 默认荒地战斗底图1
*
* @param Wasteland 2
* @desc The filename used by wastelands for battleback2.
* Default: Wasteland
* @default Wasteland
* 默认荒地战斗底图2
*
* @param ----------
* @default
*
* @param Dirtfield 1
* @desc The filename used by dirt fields for battleback1.
* Default: Wasteland
* @default Wasteland
* 默认废土战斗底图1
*
* @param Dirtfield 2
* @desc The filename used by dirt fields for battleback2.
* Default: There is none.
* @default There is none.
* 默认废土战斗底图2
*
* @param ----------
* @default
*
* @param Desert 1
* @desc The filename used by deserts for battleback1.
* Default: Desert
* @default Desert
* 默认沙漠战斗底图1
*
* @param Desert 2
* @desc The filename used by deserts for battleback2.
* Default: Desert
* @default Desert
* 默认沙漠战斗底图2
*
* @param ----------
* @default
*
* @param Lava1 1
* @desc The filename used by lava type 1 for battleback1.
* Default: Lava1
* @default Lava1
* 默认熔岩1战斗底图1
*
* @param Lava1 2
* @desc The filename used by lava type 1 for battleback2.
* Default: Lava
* @default Lava
* 默认熔岩1战斗底图2
*
* @param ----------
* @default
*
* @param Lava2 1
* @desc The filename used by lava type 2 for battleback1.
* Default: Lava2
* @default Lava2
* 默认熔岩2战斗底图1
*
* @param Lava2 2
* @desc The filename used by lava type 2 for battleback2.
* Default: Lava
* @default Lava
* 默认熔岩2战斗底图2
*
* @param ----------
* @default
*
* @param Snowfield 1
* @desc The filename used by snow fields for battleback1.
* Default: Snowfield
* @default Snowfield
* 默认雪地战斗底图1
*
* @param Snowfield 2
* @desc The filename used by snow fields for battleback2.
* Default: Snowfield
* @default Snowfield
* 默认雪地战斗底图2
*
* @param ----------
* @default
*
* @param Clouds 1
* @desc The filename used by clouds for battleback1.
* Default: Clouds
* @default Clouds
* 默认云端战斗底图1
*
* @param Clouds 2
* @desc The filename used by clouds for battleback2.
* Default: Clouds
* @default Clouds
* 默认云端战斗底图2
*
* @param ----------
* @default
*
* @param PoisonSwamp 1
* @desc The filename used by poison swamps for battleback1.
* Default: PoisonSwamp
* @default PoisonSwamp
* 默认沼泽战斗底图1
*
* @param PoisonSwamp 2
* @desc The filename used by poison swamps for battleback2.
* Default: PoisonSwamp
* @default PoisonSwamp
* 默认沼泽战斗底图2
*
* @param ----------
* @default
*
* @help
* ============================================================================
* Introduction--插件介绍
* ============================================================================
*
* When using an overworld map, you actually have no control over any of the
* battlebacks used for the region you're in. Although they sometimes make
* sense if you're using the default RTP graphics, other parts of the terrain
* do not translate well if you're using custom graphics with different names.
* As a result, this can result in certain images not loading and promptly
* crashing the game.
* 使用世界地图时,你会发现自己并不能使用region区块来控制战斗背景。当然,本插件还能
* 有效避免因为其他地图上战斗背景名称不匹配和加载失败引起的游戏崩溃。
*
* This plugin will allow you to alter the battlebacks used by default for the
* overworld in addition to bind specific battlebacks to specific tiles on the
* map through usage of regions.
* 本插件可以允许你改变默认地形的默认战斗背景,同时也可以让你用地图注释命令定义
* 使用region区块定义的特别战斗背景。
*
* ============================================================================
* Notetags--注释命令
* ============================================================================
*
* To bind specific battlebacks to certain region ID's, you can use these
* following notetags:
* 要绑定背景地图给特殊的region区块,你可以使用下面的的注释命令:
*
* Map Notetags:--地图注释
*
*   <Region x Battleback1: filename>
*   <Region x Battleback2: filename>
*   This will change the battleback1 or battleback2 for region x to use
*   the battleback image with the matching filename. When writing out the
*   filename, it is case sensitive. Do not insert the file extension.
*   很简单x为region区块的ID号,filename为背景图片名称。注意这里只需要用文件名
*   不需要路径,你的所有战斗背景都应该放在游戏工程的原始目录下面。
*
*   For example:--例子
*
*   If you want Region 5 to use battleback1 Dirt2.png and battleback2 as
*   Forest.png, you would use these two notetags:
*
*   <Region 5 Battleback1: Dirt2>
*   <Region 5 Battleback2: Forest>
*   
*   Insert these combinations into the noteboxes of the maps you wish to use
*   specific battlebacks per region for.
*   上面的命令实现了如果玩家踏入地图上ID为5的region标记区域触发的战斗都将会使用
*   以Dirt2文件为地、Forest文件为天的战斗背景。
*
* ============================================================================
* Changelog
* ============================================================================
*
* Version 1.00:
* - Finished Plugin!
*/
//=============================================================================

//=============================================================================
// Parameter Variables
//=============================================================================

Yanfly.Parameters = PluginManager.parameters('YEP_RegionBattlebacks');
Yanfly.Param = Yanfly.Param || {};

Yanfly.Param.RBBDefault1 = String(Yanfly.Parameters['Default 1']);
Yanfly.Param.RBBDefault2 = String(Yanfly.Parameters['Default 2']);
Yanfly.Param.RBBShip1 = String(Yanfly.Parameters['Ship 1']);
Yanfly.Param.RBBShip2 = String(Yanfly.Parameters['Ship 2']);
Yanfly.Param.RBBForest2 = String(Yanfly.Parameters['Forest 2']);
Yanfly.Param.RBBCliff2 = String(Yanfly.Parameters['Cliff 2']);
Yanfly.Param.RBBWasteland1 = String(Yanfly.Parameters['Wasteland 1']);
Yanfly.Param.RBBWasteland2 = String(Yanfly.Parameters['Wasteland 2']);
Yanfly.Param.RBBDirtField1 = String(Yanfly.Parameters['Dirtfield 1']);
Yanfly.Param.RBBDesert1 = String(Yanfly.Parameters['Desert 1']);
Yanfly.Param.RBBDesert2 = String(Yanfly.Parameters['Desert 2']);
Yanfly.Param.RBBLaval11 = String(Yanfly.Parameters['Lava1 1']);
Yanfly.Param.RBBLaval12 = String(Yanfly.Parameters['Lava1 2']);
Yanfly.Param.RBBLaval21 = String(Yanfly.Parameters['Lava2 1']);
Yanfly.Param.RBBLaval22 = String(Yanfly.Parameters['Lava2 2']);
Yanfly.Param.RBBSnowfield1 = String(Yanfly.Parameters['Snowfield 1']);
Yanfly.Param.RBBSnowfield2 = String(Yanfly.Parameters['Snowfield 2']);
Yanfly.Param.RBBClouds1 = String(Yanfly.Parameters['Clouds 1']);
Yanfly.Param.RBBClouds2 = String(Yanfly.Parameters['Clouds 2']);
Yanfly.Param.RBBPoisonSwamp1 = String(Yanfly.Parameters['PoisonSwamp 1']);
Yanfly.Param.RBBPoisonSwamp2 = String(Yanfly.Parameters['PoisonSwamp 2']);

//=============================================================================
// DataManager
//=============================================================================

DataManager.getBattlebackName = function(regionId, type) {
  if (!$dataMap) return '';
  var notedata = $dataMap.note.split(/[\r\n]+/);
  for (var i = 0; i < notedata.length; i++) {
    var line = notedata;
    if (line.match(/<REGION[ ](\d+)[ ]BATTLEBACK(\d+):[ ](.*)>/i)) {
      var id = parseInt(RegExp.$1);
      var typeId = parseInt(RegExp.$2);
      var name = String(RegExp.$3);
      if (id === regionId && typeId === type) return name;
    }
  }
  return '';
};

//=============================================================================
// Game_Map
//=============================================================================

Yanfly.RBB.Game_Map_battleback1Name = Game_Map.prototype.battleback1Name;
Game_Map.prototype.battleback1Name = function() {
  var battlebackName = this.getRegionBattlebackName(1);
  if (battlebackName !== '') return battlebackName;
  return Yanfly.RBB.Game_Map_battleback1Name.call(this);
};

Yanfly.RBB.Game_Map_battleback2Name = Game_Map.prototype.battleback2Name;
Game_Map.prototype.battleback2Name = function() {
  var battlebackName = this.getRegionBattlebackName(2);
  if (battlebackName !== '') return battlebackName;
  return Yanfly.RBB.Game_Map_battleback2Name.call(this);
};

Game_Map.prototype.getRegionBattlebackName = function(type) {
  if (!$dataMap) return '';
  return DataManager.getBattlebackName($gamePlayer.regionId(), type);
};

//=============================================================================
// Spriteset_Battle
//=============================================================================

Spriteset_Battle.prototype.terrainBattleback1Name = function(type) {
    switch (type) {
    case 24: case 25:
        return Yanfly.Param.RBBWasteland1;
    case 26: case 27:
        return Yanfly.Param.RBBDirtField1;
    case 32: case 33:
        return Yanfly.Param.RBBDesert1;
    case 34:
        return Yanfly.Param.RBBLaval11;
    case 35:
        return Yanfly.Param.RBBLaval21;
    case 40: case 41:
        return Yanfly.Param.RBBSnowfield1;
    case 42:
        return Yanfly.Param.RBBClouds1;
    case 4: case 5:
        return Yanfly.Param.RBBPoisonSwamp1;
    default:
        return null;
    }
};

Spriteset_Battle.prototype.terrainBattleback2Name = function(type) {
    switch (type) {
    case 20: case 21:
        return Yanfly.Param.RBBForest2;
    case 22: case 30: case 38:
        return Yanfly.Param.RBBCliff2;
    case 24: case 25: case 26: case 27:
        return Yanfly.Param.RBBWasteland2;
    case 32: case 33:
        return Yanfly.Param.RBBDesert2;
    case 34:
        return Yanfly.Param.RBBLaval12;
    case 35:
        return Yanfly.Param.RBBLaval22;
    case 40: case 41:
        return Yanfly.Param.RBBSnowfield2;
    case 42:
        return Yanfly.Param.RBBClouds2;
    case 4: case 5:
        return Yanfly.Param.RBBPoisonSwamp2;
    }
};

Spriteset_Battle.prototype.defaultBattleback1Name = function() {
    return Yanfly.Param.RBBDefault1;
};

Spriteset_Battle.prototype.defaultBattleback2Name = function() {
    return Yanfly.Param.RBBDefault2;
};

Spriteset_Battle.prototype.shipBattleback1Name = function() {
    return Yanfly.Param.RBBShip1;
};

Spriteset_Battle.prototype.shipBattleback2Name = function() {
    return Yanfly.Param.RBBShip2;
};

//=============================================================================
// End of File
//=============================================================================


--------------------------------------------------------------------------------------------------------

2、YEP_RegionEvents--公共事件控制
YEP_RegionEvents//=============================================================================
// Yanfly Engine Plugins - Region Events
// YEP_RegionEvents.js
//=============================================================================

var Imported = Imported || {};
Imported.YEP_RegionEvents = true;

var Yanfly = Yanfly || {};
Yanfly.RCE = Yanfly.RCE || {};

//=============================================================================
/*:
* @plugindesc v1.01a Make it so that whenever players step on certain
* Region ID's, the game will play certain common events.
* @author Yanfly Engine Plugins
* 这个插件的功能很简单,可以用地图上的Region ID来调用某个公共事件。
* 下面的配置就不一一翻译了,从Region1到Region255代表了RegionID的256个图块
* 默认值default为0 代表该regionID没有绑定任何公共事件,如果你想绑定公共事件
* 就把0改为公共事件的编号
* 举个例子:我定义了一个公共事件0005,事件触发效果为屏幕闪烁、玩家队伍HP减少10%
* 我现在把region1的default值改为5,并在地图上所有沼泽区域覆盖region1图层
* 那么当角色进入所有沼泽地形时就会触发上述事件,实现地形伤害效果。
* 这种方法比修改伤害地形类型有效,在于事件可以触发更多连锁效果,比如闪屏、弹出对话框等
*
* @param Region 1
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 2
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 3
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 4
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 5
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 6
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 7
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 8
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 9
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 10
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 11
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 12
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 13
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 14
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 15
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 16
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 17
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 18
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 19
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 20
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 21
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 22
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 23
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 24
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 25
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 26
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 27
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 28
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 29
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 30
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 31
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 32
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 33
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 34
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 35
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 36
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 37
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 38
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 39
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 40
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 41
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 42
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 43
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 44
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 45
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 46
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 47
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 48
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 49
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 50
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 51
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 52
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 53
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 54
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 55
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 56
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 57
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 58
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 59
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 60
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 61
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 62
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 63
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 64
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 65
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 66
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 67
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 68
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 69
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 70
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 71
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 72
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 73
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 74
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 75
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 76
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 77
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 78
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 79
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 80
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 81
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 82
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 83
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 84
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 85
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 86
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 87
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 88
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 89
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 90
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 91
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 92
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 93
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 94
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 95
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 96
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 97
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 98
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 99
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 100
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 101
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 102
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 103
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 104
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 105
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 106
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 107
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 108
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 109
* @desc The common event to play for this region when stepped on.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 110
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 111
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 112
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 113
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 114
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 115
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 116
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 117
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 118
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 119
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 120
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 121
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 122
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 123
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 124
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 125
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 126
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 127
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 128
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 129
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 130
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 131
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 132
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 133
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 134
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 135
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 136
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 137
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 138
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 139
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 140
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 141
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 142
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 143
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 144
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 145
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 146
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 147
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 148
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 149
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 150
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 151
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 152
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 153
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 154
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 155
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 156
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 157
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 158
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 159
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 160
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 161
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 162
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 163
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 164
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 165
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 166
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 167
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 168
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 169
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 170
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 171
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 172
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 173
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 174
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 175
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 176
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 177
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 178
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 179
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 180
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 181
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 182
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 183
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 184
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 185
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 186
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 187
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 188
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 189
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 190
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 191
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 192
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 193
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 194
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 195
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 196
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 197
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 198
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 199
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that region not trigger a common event.
* @default 0
*
* @param Region 200
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 201
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 202
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 203
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 204
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 205
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 206
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 207
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 208
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 209
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 210
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 211
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 212
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 213
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 214
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 215
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 216
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 217
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 218
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 219
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 220
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 221
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 222
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 223
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 224
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 225
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 226
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 227
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 228
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 229
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 230
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 231
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 232
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 233
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 234
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 235
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 236
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 237
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 238
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 239
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 240
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 241
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 242
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 243
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 244
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 245
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 246
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 247
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 248
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 249
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 250
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 251
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 252
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 253
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 254
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @param Region 255
* @desc What common event to play for this Region when stepped upon.
* Use 0 to have that Region not trigger a common event.
* @default 0
*
* @help
* ============================================================================
* Introduction and Instructions
* ============================================================================
*
* There are 255 Regions you can mark on your map. You can set it so that when
* players step on those specific Regions, a Common Event will play each time
* they step on it. To do so, bind a Common Event's ID to the Region number in
* this plugin's parameters. It will make it so that any tile with that very
* specific Region ID to trigger an on-Player Touch event using the Common
* Event ID that you have marked for it.
* 此处功能开始时已经介绍的很明白,不再赘翻。
*
* Keep in mind that if any common event occurs during a touch input, it will
* clear the touch input as intended by the game engine.
*
* ============================================================================
* Notetags-注释命令
* ============================================================================
*
* You can use this notetag inside of your maps.
* 以下注释命令用在地图配置界面。
*
* Map Notetags:
*   <Region x Event: y>
*   If the player steps onto a tile marked by Region x, it will run the
*   common event y. This will override the default settings marked in the
*   editor specifically for that map.
*   自定义region ID为X的图层块,会触发公共事件Y。注意X范围为1-255,Y的范围为你自定义
*   公共事件的编号。
*
* ============================================================================
* Changelog
* ============================================================================
*
* Version 1.01a:
* - Fixed a bug with region event notetags that stopped working if it was used
* to teleport onto the same map.
*
* Version 1.00:
* - Finished plugin!
*/
//=============================================================================

//=============================================================================
// Parameter Variables
//=============================================================================

Yanfly.Parameters = PluginManager.parameters('YEP_RegionEvents');
Yanfly.Param = Yanfly.Param || {};

Yanfly.RCE.RegionEvents = {};
for (Yanfly.i = 1; Yanfly.i <= 255; ++Yanfly.i) {
  Yanfly.line = "Number(Yanfly.Parameters['Region " + Yanfly.i + "'] || 0)";
  Yanfly.RCE.RegionEvents[Yanfly.i] = eval(Yanfly.line);
};

//=============================================================================
// DataManager
//=============================================================================

DataManager.processRECNotetags = function() {
        if (!$dataMap) return;
        if (!$dataMap.note) return;
        var notedata = $dataMap.note.split(/[\r\n]+/);
  $dataMap.regionCommonEvents = {};
        for (var i = 0; i < notedata.length; i++) {
                var line = notedata;
                if (line.match(/<(?:REGION)[ ](\d+)[ ](?:EVENT):[ ](\d+)>/i)) {
                        $dataMap.regionCommonEvents[parseInt(RegExp.$1)] = parseInt(RegExp.$2);
                }
        }
};

//=============================================================================
// Game_Map
//=============================================================================

Yanfly.RCE.Game_Map_setup = Game_Map.prototype.setup;
Game_Map.prototype.setup = function(mapId) {
    if ($dataMap) DataManager.processRECNotetags();
                Yanfly.RCE.Game_Map_setup.call(this, mapId);
};

Game_Map.prototype.isRegionEvent = function(mx, my) {
    return (this.isValid(mx, my) && this.regionEventTag(mx, my));
};

Game_Map.prototype.getUniqueRegionCommonEvent = function(regionId) {
    if ($dataMap.regionCommonEvents === undefined) {
      DataManager.processRECNotetags();
    }
    if ($dataMap.regionCommonEvents && $dataMap.regionCommonEvents[regionId]) {
      return $dataMap.regionCommonEvents[regionId];
    }
    return 0;
};

Game_Map.prototype.regionEventTag = function(mx, my) {
    if (this.regionId(mx, my) <= 0) return false;
    var regionId = this.regionId(mx, my);
    if (this.getUniqueRegionCommonEvent(regionId) > 0) return true;
    return Yanfly.RCE.RegionEvents[regionId] > 0;
};

Game_Map.prototype.moveAfterCommonEvent = function() {
    var interpreter = $gameMap._interpreter;
    if (!interpreter._list) return false;
    if (interpreter.eventId() > 0) return false;
    var list = interpreter._list;
    if ($gameTemp.destinationX() === $gamePlayer.x &&
      $gameTemp.destinationY() === $gamePlayer.y) {
        $gameTemp.clearDestination();
    }
    for (var i = 0; i < list.length; ++i) {
      var code = list.code;
      if ([201, 205, 230, 232, 261, 301].contains(code)) return false;
    }
    return true;
};

//=============================================================================
// Game_Player
//=============================================================================

Yanfly.RCE.Game_Player_checkEventTriggerHere =
    Game_Player.prototype.checkEventTriggerHere;
Game_Player.prototype.checkEventTriggerHere = function(triggers) {
    if (!this.canStartLocalEvents()) return;
    this.processRegionEvent();
    Yanfly.RCE.Game_Player_checkEventTriggerHere.call(this, triggers);
};

Game_Player.prototype.processRegionEvent = function() {
    if (!$gameMap.isRegionEvent(this.x, this.y)) return;
    if (Input.isTriggered('ok')) return;
    if (TouchInput.isPressed()) return;
    var regionId = $gameMap.regionId(this.x, this.y)
    if ($gameMap.getUniqueRegionCommonEvent(regionId) > 0) {
      var commonEventId = $gameMap.getUniqueRegionCommonEvent(regionId);
    } else {
      var commonEventId = Yanfly.RCE.RegionEvents[regionId];
    }
    $gameTemp.reserveCommonEvent(commonEventId);
};

Yanfly.RCE.Game_Player_canMove = Game_Player.prototype.canMove;
Game_Player.prototype.canMove = function() {
    if ($gameMessage.isBusy()) {
      return false;
    }
    if (this.isMoveRouteForcing() || this.areFollowersGathering()) {
        return false;
    }
    if (this._vehicleGettingOn || this._vehicleGettingOff) {
        return false;
    }
    if (this.isInVehicle() && !this.vehicle().canMove()) {
        return false;
    }
    if ($gameMap.isEventRunning() && $gameMap.moveAfterCommonEvent()) {
      return true;
    }
    return Yanfly.RCE.Game_Player_canMove.call(this);
};


//=============================================================================
// End of File
//=============================================================================

-------------------------------------------------------------------------
3、YEP_RegionRestrictions---事件和人物限制控制
YEP_RegionRestrictions//=============================================================================
// Yanfly Engine Plugins - Region Restrictions
// YEP_RegionRestrictions.js
//=============================================================================

var Imported = Imported || {};
Imported.YEP_RegionRestrictions = true;

var Yanfly = Yanfly || {};
Yanfly.RR = Yanfly.RR || {};

//=============================================================================
/*:
* @plugindesc v1.01 Use regions to block out Events and/or the player from
* being able to venture into those spots.
* @author Yanfly Engine Plugins
* 本插件可以使用Region图层阻挡事件或者玩家进入某些区域
* 注意:插件配置中定义的Region为全局生效,即在插件本身定义的region功能会
* 适用于所有地图图层,如果你想在不同的地图定义不同的region阻挡功能,请参照
* 下文的注释命令于各地图配置页面单独设置。
*
* @param Player Restrict
* @desc This region ID will restrict the player from entering.
* Use 0 if you do not wish to make use of this property.
* 定义哪个Region ID可以阻挡玩家,默认0,即所有RegionID均不阻挡,以下同理。
* @default 0
*
* @param Event Restrict
* @desc This region ID will restrict all events from entering.
* Use 0 if you do not wish to make use of this property.
* 定义可以阻挡事件穿越或发生的Region ID,比如阻挡正在跟随玩家的NPC移动事件。
* @default 0
*
* @param All Restrict
* @desc This region ID will restrict players and events.
* Use 0 if you do not wish to make use of this property.
* 定义可以同时阻挡玩家和事件的regionID
* @default 0
*
* @param Player Allow
* @desc This region ID will always allow player passability.
* Use 0 if you do not wish to make use of this property.
* 定义一个总是可以让玩家穿越的regionID,这个通常被用来做机关暗道使用。
* @default 0
*
* @param Event Allow
* @desc This region ID will always allow events passability.
* Use 0 if you do not wish to make use of this property.
* 定义总是允许事件发生和穿过的regionID
* @default 0
*
* @param All Allow
* @desc This region ID will always allow both passability.
* Use 0 if you do not wish to make use of this property.
* 定义总是允许玩家和事件穿过的regionID
* @default 0
*
* @help
* ============================================================================
* Introduction and Instructions
* ============================================================================
*
* Not everybody wants NPC's to travel all over the place. With this plugin,
* you can set NPC's to be unable to move pass tiles marked by a specified
* Region ID. Simply draw out the area you want to enclose NPC's in on and
* they'll be unable to move past it unless they have Through on. Likewise,
* there are regions that you can prevent the player from moving onto, too!
* 不是所有人都想让NPC能够随便溜达的!本插件可以让你你的NPC无法穿越某Region图层
* 覆盖的区域。同样的,你也可以使用region图层设置总是允许玩家、NPC穿越的区域,
* 从而忽略地形限制,如此就不必担心过多的具有跟随功能的NPC把你逼近死胡同、堵在大
* 门口,而且能够使一些隐蔽通道、隐藏地区的设计更简单。
* A new change from the RPG Maker VX Ace version is that now there exist
* Regions that can allow players and events to always travel through.
*
* ============================================================================
* Notetags-注释命令
* ============================================================================
*
* You can use this notetag inside of your maps.
* 以下注释命令用于地图属性界面
* Map Notetags:
*
*   <Player Restrict Region: x>
*   <Player Restrict Region: x, x, x>
*   <Player Restrict Region: x to y>
*   Restricts region x for the player on this particular map. Use multiple x
*   to mark more regions. From x to y, you can mark a multitude of regions.
*   阻止玩家 通过ID为x的region图层,可以单独定义1个ID,也可以定义复数个,还可以定义区间
*   例子<Player Restrict Region: 1 to 10>
*   以下同理
*
*   <Event Restrict Region: x>
*   <Event Restrict Region: x, x, x>
*   <Event Restrict Region: x to y>
*   Restricts region x for all events on this particular map. Use multiple x
*   to mark more regions. From x to y, you can mark a multitude of regions.
*   阻止事件 通过ID为x的region图层
*
*   <All Restrict Region: x>
*   <All Restrict Region: x, x, x>
*   <All Restrict Region: x to y>
*   Restricts region x for the player and all events on this particular map.
*   Use multiple x to mark more regions. From x to y, you can mark a multitude
*   of regions.
*   阻止事件和玩家 通过ID为x的region图层
*
*   <Player Allow Region: x>
*   <Player Allow Region: x, x, x>
*   <Player Allow Region: x to y>
*   Allows region x for the player on this particular map. Use multiple x
*   to mark more regions. From x to y, you can mark a multitude of regions.
*   强制允许玩家 通过ID为x的region图层
*
*   <Event Allow Region: x>
*   <Event Allow Region: x, x, x>
*   <Event Allow Region: x to y>
*   Allows region x for all events on this particular map. Use multiple x
*   to mark more regions. From x to y, you can mark a multitude of regions.
*   强制允许事件 通过ID为x的region图层
*
*   <All Allow Region: x>
*   <All Allow Region: x, x, x>
*   <All Allow Region: x to y>
*   Allows region x for the player and all events on this particular map.
*   Use multiple x to mark more regions. From x to y, you can mark a multitude
*   of regions.
*   强制允许玩家和事件 通过ID为x的region图层
*
* ============================================================================
* Changelog
* ============================================================================
*
* Version 1.01:
* - Added new notetags to allow for more region restriction settings!
*
* Version 1.00:
* - Finished plugin!
*/
//=============================================================================

//=============================================================================
// Parameter Variables
//=============================================================================

Yanfly.Parameters = PluginManager.parameters('YEP_RegionRestrictions');
Yanfly.Param = Yanfly.Param || {};

Yanfly.Param.RRAllAllow = Number(Yanfly.Parameters['All Allow']);
Yanfly.Param.RRAllRestrict = Number(Yanfly.Parameters['All Restrict']);
Yanfly.Param.RREventAllow = Number(Yanfly.Parameters['Event Allow']);
Yanfly.Param.RREventRestrict = Number(Yanfly.Parameters['Event Restrict']);
Yanfly.Param.RRPlayerAllow = Number(Yanfly.Parameters['Player Allow']);
Yanfly.Param.RRPlayerRestrict = Number(Yanfly.Parameters['Player Restrict']);

//=============================================================================
// DataManager
//=============================================================================

DataManager.processRRNotetags = function() {
  if (!$dataMap) return;
  $dataMap.restrictPlayerRegions = [];
  $dataMap.restrictEventRegions = [];
  $dataMap.allowPlayerRegions = [];
  $dataMap.allowEventRegions = [];
  if (!$dataMap.note) return;

  var note1a = /<(?:PLAYER RESTRICT REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note1b = /<(?:PLAYER RESTRICT REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;
  var note2a = /<(?:EVENT RESTRICT REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note2b = /<(?:EVENT RESTRICT REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;
  var note3a = /<(?:ALL RESTRICT REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note3b = /<(?:ALL RESTRICT REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;

  var note4a = /<(?:PLAYER ALLOW REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note4b = /<(?:PLAYER ALLOW REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;
  var note5a = /<(?:EVENT ALLOW REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note5b = /<(?:EVENT ALLOW REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;
  var note6a = /<(?:ALL ALLOW REGION):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note6b = /<(?:ALL ALLOW REGION):[ ](\d+)[ ](?:TO)[ ](\d+)>/i;

  var notedata = $dataMap.note.split(/[\r\n]+/);


  for (var i = 0; i < notedata.length; i++) {
    var line = notedata;
    if (line.match(note1a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.restrictPlayerRegions =
        $dataMap.restrictPlayerRegions.concat(array);
    } else if (line.match(note1b)) {
      var mainArray = $dataMap.restrictPlayerRegions;
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.restrictPlayerRegions =
        $dataMap.restrictPlayerRegions.concat(range);
    } else if (line.match(note2a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.restrictEventRegions =
        $dataMap.restrictEventRegions.concat(array);
    } else if (line.match(note2b)) {
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.restrictEventRegions =
        $dataMap.restrictEventRegions.concat(range);
    } else if (line.match(note3a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.restrictPlayerRegions =
        $dataMap.restrictPlayerRegions.concat(array);
      $dataMap.restrictEventRegions =
        $dataMap.restrictEventRegions.concat(array);
    } else if (line.match(note3b)) {
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.restrictPlayerRegions =
        $dataMap.restrictPlayerRegions.concat(array);
      $dataMap.restrictEventRegions =
        $dataMap.restrictEventRegions.concat(array);
    } else if (line.match(note4a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.allowPlayerRegions =
        $dataMap.allowPlayerRegions.concat(array);
    } else if (line.match(note4b)) {
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.allowPlayerRegions =$dataMap.allowPlayerRegions.concat(range);
    } else if (line.match(note5a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.allowEventRegions = $dataMap.allowEventRegions.concat(array);
    } else if (line.match(note5b)) {
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.allowEventRegions = $dataMap.allowEventRegions.concat(range);
    } else if (line.match(note6a)) {
      array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');
      $dataMap.allowPlayerRegions = $dataMap.allowPlayerRegions.concat(array);
      $dataMap.allowEventRegions = $dataMap.allowEventRegions.concat(array);
    } else if (line.match(note6b)) {
      var range = Yanfly.Util.getRange(parseInt(RegExp.$1),
        parseInt(RegExp.$2));
      $dataMap.allowPlayerRegions = $dataMap.allowPlayerRegions.concat(array);
      $dataMap.allowEventRegions = $dataMap.allowEventRegions.concat(array);
    }
  }
};

//=============================================================================
// Game_Map
//=============================================================================

Yanfly.RR.Game_Map_setup = Game_Map.prototype.setup;
Game_Map.prototype.setup = function(mapId) {
    Yanfly.RR.Game_Map_setup.call(this, mapId);
    if ($dataMap) DataManager.processRRNotetags();
};

Game_Map.prototype.restrictEventRegions = function() {
    if ($dataMap.restrictEventRegions === undefined) {
      DataManager.processRRNotetags();
    }
    return $dataMap.restrictEventRegions || [];
};

Game_Map.prototype.restrictPlayerRegions = function() {
    if ($dataMap.restrictPlayerRegions === undefined) {
      DataManager.processRRNotetags();
    }
    return $dataMap.restrictPlayerRegions || [];
};

Game_Map.prototype.allowEventRegions = function() {
    if ($dataMap.allowEventRegions === undefined) {
      DataManager.processRRNotetags();
    }
    return $dataMap.allowEventRegions || [];
};

Game_Map.prototype.allowPlayerRegions = function() {
    if ($dataMap.allowPlayerRegions === undefined) {
      DataManager.processRRNotetags();
    }
    return $dataMap.allowPlayerRegions || [];
};

//=============================================================================
// Game_CharacterBase
//=============================================================================

Yanfly.RR.Game_CharacterBase_isMapPassable =
    Game_CharacterBase.prototype.isMapPassable;
Game_CharacterBase.prototype.isMapPassable = function(x, y, d) {
    if (this.isEventRegionForbid(x, y, d)) return false;
    if (this.isPlayerRegionForbid(x, y, d)) return false;
    if (this.isEventRegionAllow(x, y, d)) return true;
    if (this.isPlayerRegionAllow(x, y, d)) return true;
    return Yanfly.RR.Game_CharacterBase_isMapPassable.call(this, x, y, d);
};

Game_CharacterBase.prototype.isEvent = function() {
    return false;
};

Game_CharacterBase.prototype.isPlayer = function() {
    return false;
};

Game_CharacterBase.prototype.processRRNotetags = function() {
    DataManager.processRRNotetags();
};

Game_CharacterBase.prototype.isEventRegionForbid = function(x, y, d) {
    if (this.isPlayer()) return false;
    if (this.isThrough()) return false;
    var regionId = this.getRegionId(x, y, d);
    if (regionId === 0) return false;
    if ($gameMap.restrictEventRegions().contains(regionId)) return true;
    if (regionId === Yanfly.Param.RRAllRestrict) return true;
    return regionId === Yanfly.Param.RREventRestrict;
};

Game_CharacterBase.prototype.isPlayerRegionForbid = function(x, y, d) {
    if (this.isEvent()) return false;
    if (this.isThrough()) return false;
    var regionId = this.getRegionId(x, y, d);
    if (regionId === 0) return false;
    if ($gameMap.restrictPlayerRegions().contains(regionId)) return true;
    if (regionId === Yanfly.Param.RRAllRestrict) return true;
    return regionId === Yanfly.Param.RRPlayerRestrict;
};

Game_CharacterBase.prototype.isEventRegionAllow = function(x, y, d) {
    if (this.isPlayer()) return false;
    var regionId = this.getRegionId(x, y, d);
    if (regionId === 0) return false;
    if ($gameMap.allowEventRegions().contains(regionId)) return true;
    if (regionId === Yanfly.Param.RRAllAllow) return true;
    return regionId === Yanfly.Param.RREventAllow;
};

Game_CharacterBase.prototype.isPlayerRegionAllow = function(x, y, d) {
    if (this.isEvent()) return false;
    var regionId = this.getRegionId(x, y, d);
    if (regionId === 0) return false;
    if ($gameMap.allowPlayerRegions().contains(regionId)) return true;
    if (regionId === Yanfly.Param.RRAllAllow) return true;
    return regionId === Yanfly.Param.RRPlayerAllow;
};

Game_CharacterBase.prototype.getRegionId = function(x, y, d) {
    switch (d) {
    case 1:
      return $gameMap.regionId(x - 1, y + 1);
      break;
    case 2:
      return $gameMap.regionId(x + 0, y + 1);
      break;
    case 3:
      return $gameMap.regionId(x + 1, y + 1);
      break;
    case 4:
      return $gameMap.regionId(x - 1, y + 0);
      break;
    case 5:
      return $gameMap.regionId(x + 0, y + 0);
      break;
    case 6:
      return $gameMap.regionId(x + 1, y + 0);
      break;
    case 7:
      return $gameMap.regionId(x - 1, y - 1);
      break;
    case 8:
      return $gameMap.regionId(x + 0, y - 1);
      break;
    case 9:
      return $gameMap.regionId(x + 1, y - 1);
      break;
    }
    return 0;
};

//=============================================================================
// Game_Event
//=============================================================================

Game_Event.prototype.isEvent = function() {
    return true;
};

//=============================================================================
// Game_Player
//=============================================================================

Game_Player.prototype.isPlayer = function() {
    return true;
};

//=============================================================================
// Utilities
//=============================================================================

Yanfly.Util = Yanfly.Util || {};

Yanfly.Util.getRange = function(n, m) {
    var result = [];
    for (var i = n; i <= m; ++i) result.push(i);
    return result;
};

//=============================================================================
// End of File
//=============================================================================

评分

参与人数 1赞 +1 收起 理由
Kim_Shyuen + 1 精品文章

查看全部评分

梦石
0
星屑
76
在线时间
11 小时
注册时间
2018-2-11
回帖
7
发表于 2018-3-16 16:34:39 | 显示全部楼层
感谢楼主汉化,非常实用的插件。只不过似乎跟我安装的地图插件有冲突。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部