赞 | 6 |
VIP | 0 |
好人卡 | 5 |
积分 | 5 |
经验 | 13099 |
最后登录 | 2022-11-27 |
在线时间 | 271 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 470
- 在线时间
- 271 小时
- 注册时间
- 2011-10-17
- 帖子
- 99
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
功能很简单,每移动一步,执行一下公共事件
个人想法是利用增加步数(Game_Player.prototype.increaseSteps)来修改
结果自己写的插件经测试完全没有反应,请大神指教
另外话说论坛怎么发代码的格式?
//=============================================================================
// MoveEvent
//
// Last Update: 2017.6.30
//=============================================================================
/*:
* @plugindesc Allows move trigger CommonEvent
* @author
*
* @param Common Event ID
* @default 12
*
* @help This plugin does not provide plugin commands.
*
*/
(function() {
var CommonEventId = parseInt(parameters['Common Event ID'] || 12);
//增加步数
Game_Player.prototype.increaseSteps = function() {
//游戏人物 增加步数 呼叫(this , x , y)
Game_Character.prototype.increaseSteps.call(this);
//如果( 是普通() )
if (this.isNormal()) {
//游戏队伍 增加步数()
$gameParty.increaseSteps();
$gameTemp.reserveCommonEvent(CommonEventId);//此处为我添加的内容
}
};
})();
|
|