| 赞 | 659  | 
 
| VIP | 62 | 
 
| 好人卡 | 144 | 
 
| 积分 | 337 | 
 
| 经验 | 110435 | 
 
| 最后登录 | 2024-7-10 | 
 
| 在线时间 | 5096 小时 | 
 
 
 
 
 
Lv5.捕梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 33742 
 
        - 在线时间
 - 5096 小时
 
        - 注册时间
 - 2012-11-19
 
        - 帖子
 - 4877
 
 
  
 
 | 
	
- //=================================================================================================
 
 - Game_Map.prototype.restoreEvent = function() {
 
 -     var arr = Array.prototype.slice.call(arguments, 0);
 
 -     arr.forEach(function(id){
 
 -         this._events[id] && this._events[id].restoreInitialState();
 
 -     }, this);
 
 -     arr.length > 0 && this.requestRefresh();
 
 - };
 
 - //=================================================================================================
 
 - Game_Event.prototype.restoreInitialState = function() {
 
 -     ['A','B','C','D'].forEach(function(n){
 
 -         var key = [this._mapId, this._eventId, n];
 
 -         $gameSelfSwitches.setValue(key, false);
 
 -     });
 
 - };
 
 - //=================================================================================================
 
  复制代码 
吧这个脚本做成插件塞到工程里,作用为将指定事件的 ABCD 四个独立开关全部关闭。 
用法:事件 -> 脚本:$gameMap.restoreEvent(id,id,id...); 
括号里面的 事件id 可以填写多个 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |