Project1
标题:
请教大佬,rmxp的这2个脚本 ,mz怎么写出来
[打印本页]
作者:
mkl7788
时间:
2023-6-19 16:27
标题:
请教大佬,rmxp的这2个脚本 ,mz怎么写出来
for hz in 0...$game_party.actors.size
if $game_party.actors[hz].name == "阿尔修斯"
$game_party.actors[hz].add_state(28)
end
end
rmmz怎么判定某个角色是否在队伍中
module JN
PL = []
PL[0] = [3,2]
PL[1] = [4,3]
PL[2] = [5,4]
PL[3] = [6,5]
PL[4] = [13,12]
PL[5] = [14,13]
PL[6] = [15,14]
PL[7] = [16,15]
PL[8] = [23,22]
PL[9] = [24,23]
PL[10] = [25,24]
PL[11] = [26,25]
PL[12] = [33,32]
PL[13] = [34,33]
PL[14] = [35,34]
PL[15] = [36,35]
end
for i in 0...JN::PL.size
if a== JN::PL[i][0]
b=JN::PL[i][1]
end
end
还有这个数组
作者:
小秋橙
时间:
2023-6-19 16:27
本帖最后由 小秋橙 于 2023-6-22 01:28 编辑
第一个:
for (let i = 0; i < $gameParty.size(); ++i)
if ($gameParty.members()
._name === '阿尔修斯')
$gameParty.members()
.addState(28);
第二个:
window.PL = [];
for (let i = 0; i <= 3; ++i)
for (let j = 0; j <= 3; ++j)
PL[i * 4 + j] = [i * 10 + j + 3, i * 10 + j + 2];
let a = prompt('请输入a:'), b;
alert(b = PL.find(e=>e[0]===+a)?.[1]);
欢迎扫码讨教:
无标题.jpg
(118.92 KB, 下载次数: 78)
下载附件
保存到相册
2023-6-22 01:27 上传
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1