Project1
标题: 事件脚本 让 a =soldier_id 的数值 [打印本页]
作者: 金芒芒 时间: 2023-7-12 09:03
标题: 事件脚本 让 a =soldier_id 的数值
本帖最后由 金芒芒 于 2023-7-12 14:23 编辑
只求第三张图片人物头像对应地图上的士兵
selected = $scene.group_lisenter.include?(@character.group)
a = $scene.team_groups[@character.group-1].soldier_id
x=443
for i in a
$game_screen.pictures[i].show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end
selected = $scene.group_lisenter.include?(@character.group)
a = $scene.team_groups[@character.group-1].soldier_id
x=443
for i in a
$game_screen.pictures[i].show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end
(函数):在命令355中nil:nil类的未定义方法组
(eval) : in command 355undefined method group for nil : NilClass
以前a=[2]
x = 443
a.push(11)
a.push(4)
a.push(6)
a.push(8)
for i in a
$game_screen.pictures[i].show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end
a=[2]
x = 443
a.push(11)
a.push(4)
a.push(6)
a.push(8)
for i in a
$game_screen.pictures[i].show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end
-
事件脚本.png
(31.18 KB, 下载次数: 27)
-
事件脚本1.png
(9.83 KB, 下载次数: 27)
-
1616.png
(691.96 KB, 下载次数: 27)
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |