有相关脚本给你用,楼下贴了,先写个战斗结束后触发的公共事件,条件分歧判定血量,判定成功时就通过这个脚本强制使用物品(还得加个物品数量判定)作者: shiroin 时间: 2023-10-26 19:52
(function(v,i,t,a,c,u) {
if (i = $dataItems[+v || 0]) {
u = $gameParty.members()[0];
a = new Game_Action(u);
a.setItemObject(i);
t = i.scope === 7 ? [u] : a.makeTargets();
for (n of t) c = c || a.testApply(n);
if (u.canUse(i) && (i.scope === 0 || c)) {
u.useItem(i);
for (n of t) for (var m = a.numRepeats(); m--;) a.apply(n);
a.applyGlobal();
}}})($gameVariables.value(41));