查看: 4155|回复: 9

[有事请教] 【已经解决】如何让技能先结算公共事件再结算伤害

[复制链接]
梦石
0
星屑
2281
在线时间
403 小时
注册时间
2018-11-9
回帖
224
发表于 2019-6-12 09:17:23 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 Niko_ 于 2019-6-13 20:52 编辑

我想角色在释放技能前说一句骚话,再造成伤害。这怎么实现呢?
莫把湖面倒影,当作夜空繁星。所以大角鼠yesyes,kaka的力量无人能及!
梦石
0
星屑
2281
在线时间
403 小时
注册时间
2018-11-9
回帖
224
 楼主| 发表于 2019-6-12 15:00:27 | 显示全部楼层
我发现用yep技能核心似乎就能做到
T1.png
于是我写了以下代码(重点是前三行)
T2.png
然而,当我进入战斗时,公共事件依旧是在最后执行的。。。。。这是哪里出问题了?
莫把湖面倒影,当作夜空繁星。所以大角鼠yesyes,kaka的力量无人能及!
回复

使用道具 举报

梦石
0
星屑
2281
在线时间
403 小时
注册时间
2018-11-9
回帖
224
 楼主| 发表于 2019-6-12 18:32:06 | 显示全部楼层
回复

使用道具 举报

梦石
0
星屑
3922
在线时间
1198 小时
注册时间
2016-8-9
回帖
2355

开拓者

发表于 2019-6-12 19:14:23 | 显示全部楼层
本帖最后由 白嫩白嫩的 于 2019-6-12 19:22 编辑

用yep的动作插件可以实现,也是在技能备注那里写打开公共事件,然后再开始技能设置

Yanfly Engine Plugins - Battle Engine Extension - Action Sequence Pack 1
// YEP_X_ActSeqPack1.js


plugindesc v1.12 (Requires YEP_BattleEngineCore.js) Basic functions are
* added to the Battle Engine Core's action sequences.


COMMON EVENT: X
*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Plays common event X at that point in the action sequence. Nothing else
* will continue until the common event is finished (unless it is a forced
* action, in which case, it will wait until the action is complete first).
*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Usage Example: common event: 1


其他推荐:
奶牛的yep转载
老鹰的原创动作
老杨的动作生成器

点评

那还不给个好评,亲~~~  发表于 2019-6-13 20:54
你的方法很有效,先谢谢啦0.0  发表于 2019-6-13 20:52
抱歉,系统似乎出问题了没提示回复(还有可能是我手贱点掉了。。。)而且现在我正在沉迷动作插件。。0.0  发表于 2019-6-13 20:51
酸酸甜甜就④哇噢
回复 1 0

使用道具 举报

梦石
0
星屑
68
在线时间
4 小时
注册时间
2021-1-28
回帖
2
发表于 2021-7-15 14:04:12 | 显示全部楼层
<common event:1>
<common event: 1>
<common event: 0001>
common event:1
common event:0001
common event: 1
common event: 0001

大佬,这个插件到底怎么用啊?
上面那几种备注写法我都试过了,全都没效果……都快试吐了,到底怎么用啊……?
回复

使用道具 举报

梦石
0
星屑
3922
在线时间
1198 小时
注册时间
2016-8-9
回帖
2355

开拓者

发表于 2021-7-15 19:26:53 | 显示全部楼层
13904415870 发表于 2021-7-15 14:04
common event:1
common event:0001
common event: 1

这是很久以前写的一段技能代码,可以参考,里面有夹杂公共事件
<setup action>
display action
add state 29: user, show
immortal: targets, true
</setup action>
<target action>
camera focus: target, front
zoom: 120%, 30
wait for zoom
opacity not focus: 0%, 20
wait for opacity
action animation
ani wait: 2
action effect
death break
wait for animation
wait for movement
</target action>
<follow action>
common event: 41
reset zoom: 10
reset camera: 10
opacity not focus: 100%, 20
wait for opacity
clear battle log
</follow action>



注: 公共事件的执行可以根据你的需要放在你认为合适的节奏点上
酸酸甜甜就④哇噢
回复

使用道具 举报

梦石
0
星屑
68
在线时间
4 小时
注册时间
2021-1-28
回帖
2
发表于 2021-7-18 18:52:07 | 显示全部楼层
白嫩白嫩的 发表于 2021-7-15 19:26
[fold=这是很久以前写的一段技能代码,可以参考,里面有夹杂公共事件]

display action

哦~~~~~~
原来是要都放上去啊!
终于懂了,谢谢大佬!
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部