查看: 1548|回复: 0

[有事请教] 事件脚本 让 a =soldier_id 的数值

[复制链接]
梦石
0
星屑
7296
在线时间
1244 小时
注册时间
2015-8-15
回帖
473
发表于 2023-7-12 09:03:27 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 金芒芒 于 2023-7-12 14:23 编辑

只求第三张图片人物头像对应地图上的士兵

[pre lang="ruby"]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.show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end[/pre]

(函数):在命令355中nil:nil类的未定义方法组
(eval) : in command 355undefined method group for nil : NilClass

以前[pre lang="ruby"]a=[2]
x = 443
a.push(11)
a.push(4)
a.push(6)
a.push(8)
for i in a
$game_screen.pictures.show("头像#{i}", 0,
x, 550, 100, 100, 255, 0)
x-=87
end[/pre]
事件脚本.png
事件脚本1.png
1616.png
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部