查看: 3726|回复: 3

[有事请教] 怎么在战斗中放技能显示对话

[复制链接]
梦石
0
星屑
34
在线时间
4 小时
注册时间
2019-3-22
回帖
2
发表于 2019-3-22 20:09:28 | 显示全部楼层 |阅读模式

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

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

×
这要怎么弄啊
梦石
0
星屑
2281
在线时间
403 小时
注册时间
2018-11-9
回帖
224
发表于 2019-3-23 02:05:53 | 显示全部楼层
QQ截图20190323020403.png
公共事件即可
莫把湖面倒影,当作夜空繁星。所以大角鼠yesyes,kaka的力量无人能及!
回复

使用道具 举报

梦石
0
星屑
34
在线时间
4 小时
注册时间
2019-3-22
回帖
2
 楼主| 发表于 2019-3-23 12:39:52 | 显示全部楼层

感谢 能问一下这个可以设成在攻击动画前触发吗
回复

使用道具 举报

梦石
0
星屑
16261
在线时间
4014 小时
注册时间
2015-9-14
回帖
1322

开拓者

发表于 2019-3-23 21:56:51 | 显示全部楼层
本帖最后由 wabcmcc 于 2019-3-23 21:59 编辑

用插件ExecuteCommonEventBeforeAttack.js
ExecuteCommonEventBeforeAttack.js//==============================================================================
// ExecuteCommonEventBeforeAttack.js
//==============================================================================

/*:
* @plugindesc You can execute a common event before attack.
* @author myxcher
*
* @help
*===============================================================================
*
* There are no plugin commands.
*
*===============================================================================
*
* If you insert the following expression into a skill's notebox,
* you can execute a common event before attack.
*
* <eventId:1>   # Execute common event 1 before attack.
*
*===============================================================================
*/

/*:ja
* @plugindesc スキル使用前にコモンイベントを実行可能にします。
* @author myxcher
*
* @help
*===============================================================================
*
* このプラグインにプラグインコマンドはありません。
*
*===============================================================================
*
* データベースのスキルの項のメモ欄に以下の様に記述することで、
* スキルの使用前にコモンイベントを実行させることができます。
*
* <eventId:1>   # スキルの使用前にイベント番号1番のコモンイベントを実行
*
*===============================================================================
*/

(function() {
   
//===============================================================================
// BattleManager
//===============================================================================
   
var _BattleManager_initMembers = BattleManager.initMembers;  
BattleManager.initMembers = function() {
    _BattleManager_initMembers.call(this);
    this._isCommonEventExecute = false;
};
   
var _BattleManager_processTurn = BattleManager.processTurn;
BattleManager.processTurn = function() {
    var action = this._subject.currentAction();
    if(action && !this._isCommonEventExecute){
        var eventId = Number(action.item().meta.eventId);
        if(eventId){
            $gameTemp.reserveCommonEvent(eventId);
            this._isCommonEventExecute = true;
            return;
        }
    }
    this._isCommonEventExecute = false;
    _BattleManager_processTurn.call(this);  
};
   
})();
https://rpg.blue/data/attachment/album/202003/28/021323lltgrsvfytfwuya5.gif
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部