def efs_team_show_character_name return false if @character.is_a?(Game_Player) #如果@角色.是_a?则返回假的?(EFS英雄) return false if @character.is_a?(EFS_Hero) #如果$场景可以用的队组 == 无 则返回假的 return false if $scene.group_lisenter == nil #挑选选着=$场景。小组成员。包括?(@角色队组) selected = $scene.group_lisenter.include?(@character.group) # cp队长=场景。小组[@角色.队组-1].队长 cp = $scene.team_groups[@character.group-1].captain if cp == @character #如果队长==@角色 --------------------------------------------------------------------------------- a=[] x = 443 如果cp(角色)ID包括2 a添加2 如果cp(角色)ID包括5 a添加5 for i in a $game_screen.pictures[i].show("头像#{i}", 0, x, 550, 100, 100, 255, 0) x-=87 end
ID.png (14.18 KB, 下载次数: 16)
soulsaga 发表于 2023-7-5 14:12
重点 角色ID=Figter_data::data_id
你知道是2直接==2就好啦..根本不用这么麻烦
金芒芒 发表于 2023-7-5 14:19
因为每次战斗角色多不一样
下面我自己写的不知道错在那里了还是定义错了
team_groups=5个group,每个组都 ...
soulsaga 发表于 2023-7-5 18:27
哪里不一样?你就写了一个2吧..还有其他吗?不要吓我
我说了多少次等於是写作==你用够=没
数组往后加元素是 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |