设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

【已解决】p i 以后是0 1 2 3 4 是5个分组的编号 如何+fighte...

查看数: 601 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2023-8-16 09:54

正文摘要:

本帖最后由 金芒芒 于 2023-8-17 10:25 编辑 RUBY 代码复制team_selected_troops = @selected_units    for i in 0...@selected_units.size    #team_selected_troo ...

回复

soulsaga 发表于 2023-8-16 18:02:28
金芒芒 发表于 2023-8-16 17:20
就提取了头像, i = nil 了
  def command_custom_battle#定义命令_自定义战斗
    # 演奏确定 SE

RUBY 代码复制
  1. team_selected_troops = @selected_units.dup
  2.     t=[]
  3.     for i in 0...@selected_units.size
  4.     t[i] = Figter_data::THE_NAME.index(team_selected_troops[i])
  5.     p i #0 1 2 3 4
  6.     end
  7.     a=t.flatten
  8.     x=544
  9.     for i in 0...a.size
  10.     $game_screen.pictures[i+1].show("头像#{a[i]}", 0,x, 550, 100, 100, 255, 0)
  11.     x-=87
  12.     end
soulsaga 发表于 2023-8-16 16:05:23
不要乱改脚本..照抄就行
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-14 14:56

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表