Project1

标题: 事件脚本 让 a =soldier_id 的数值 [打印本页]

作者: 金芒芒    时间: 2023-7-12 09:03
标题: 事件脚本 让 a =soldier_id 的数值
本帖最后由 金芒芒 于 2023-7-12 14:23 编辑

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

RUBY 代码复制
  1. selected = $scene.group_lisenter.include?(@character.group)
  2. a = $scene.team_groups[@character.group-1].soldier_id
  3. x=443
  4. for i in a
  5. $game_screen.pictures[i].show("头像#{i}", 0,
  6. x, 550, 100, 100, 255, 0)
  7. x-=87
  8. end


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

以前
RUBY 代码复制
  1. a=[2]
  2. x = 443
  3. a.push(11)
  4. a.push(4)
  5. a.push(6)
  6. a.push(8)
  7. for i in a
  8. $game_screen.pictures[i].show("头像#{i}", 0,
  9. x, 550, 100, 100, 255, 0)
  10. x-=87
  11. end

事件脚本.png (31.18 KB, 下载次数: 5)

事件脚本.png

事件脚本1.png (9.83 KB, 下载次数: 4)

事件脚本1.png

1616.png (691.96 KB, 下载次数: 5)

1616.png





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1