| 赞 | 5  | 
 
| VIP | 0 | 
 
| 好人卡 | 0 | 
 
| 积分 | 72 | 
 
| 经验 | 15725 | 
 
| 最后登录 | 2025-11-1 | 
 
| 在线时间 | 1239 小时 | 
 
 
 
 
 
Lv4.逐梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 7221 
 
        - 在线时间
 - 1239 小时
 
        - 注册时间
 - 2015-8-15
 
        - 帖子
 - 711
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
 本帖最后由 金芒芒 于 2023-8-18 08:40 编辑  
 
第一个是显示脚本部分,第2个是整个脚本 
[pre lang="ruby"]    t= Marshal::load(Marshal.dump(team_selected_troops))       a=t.flatten     x=457     for i in 0...a.size     $game_screen.pictures[i+1].show("头像#{a[i]}", 0,x, 550, 100, 100, 255, 0)     x-=87     end #----------------------------------------------------------------------------- #   if $game_switches[18] == true     e = Marshal::load(Marshal.dump(enermy_selected_troops))     b=e.flatten     x=544     for i in 0...b.size     $game_screen.pictures[6+i+1].show("头像#{b[i]}", 0,x, 550, 100, 100, 255, 0)     x+=87   end 
 
 [pre lang="ruby"]    t= Marshal::load(Marshal.dump(team_selected_troops))  
   
    a=t.flatten  
    x=457  
    for i in 0...a.size  
    $game_screen.pictures[i+1].show("头像#{a[i]}", 0,x, 550, 100, 100, 255, 0)  
    x-=87  
    end  
#-----------------------------------------------------------------------------  
#   if $game_switches[18] == true  
    e = Marshal::load(Marshal.dump(enermy_selected_troops))  
    b=e.flatten  
    x=544  
    for i in 0...b.size  
    $game_screen.pictures[6+i+1].show("头像#{b[i]}", 0,x, 550, 100, 100, 255, 0)  
    x+=87  
  end  
 
  [/pre] 
def command_custom_battle#定义命令_自定义战斗     # 演奏确定 SE     $game_system.se_play($data_system.decision_se)      #$游戏系统。se播放($数据系统。未指定文件或目录       choose_map_main#选择主地图  # map_info = $custom_battle_next_map_id#@map_info#地图信息=@地图信息   #如果选择随机地图随机士兵  # if ! @force_back and map_info[0] == -1#如果!@强制返回并地图信息[0]==-1  #   make_random_efs_game#生成随机efs_game  #   return  # end #---------------------------------------------------- ↑↓        #如果@强制后退或@强制后退==无     if ! @force_back or @force_back == nil     #自定义主战场(0,@地图信息[1],@地图信息[2])data_id     custom_battle_main(0,@map_info[1],@map_info[2])     #团队选定部队=@选定部队     team_selected_troops = @selected_units         #如果@强制后退或@强制后退==无     if ! @force_back or @force_back == nil       #自定义主战场(1,@地图信息[1],@地图信息[2])       custom_battle_main(1,@map_info[1],@map_info[2])       #敌人选定部队=@选定部队       if $game_switches[18] == true       #true是打开,false是关闭       #敌军enermy精选部队         enermy_selected_troops =[[17],[18],[19],[21],[16]] #@selected_units           # @group_one.x = 928       #  @group_one.y = 544     #  @group_two.x = 1248     #  @group_two.y = 640         end       if $game_switches[19] == true       enermy_selected_troops =[ [5,5],[5,5,5],[5,5],[5,5,5],[5,5,5,5,5] ]     end           #如果@强制后退或@强制后退==无       if ! @force_back or @force_back == nil         choose_hero_main#选择英雄主         selected_hero = nil         #selected_hero = @selected_hero#选定的英雄=@选定的英雄         #如果@强制后退或@强制后退==无         if ! @force_back or @force_back == nil           team_army = Game_Army_Slg.new(0)         #enermy军队         enermy_army = Game_Army_Slg.new(1)         team_army.create_empty_army         enermy_army.create_empty_army         #team_army.load_twoD_Array(team_selected_troops,selected_hero)         team_army.load_twoD_Array(team_selected_troops,selected_hero)         enermy_army.load_twoD_Array(enermy_selected_troops)        # 切换地图画面        #team_army.set_groups_name#团队军队。设置团队名称[@character.group-1] #--------------------------------------------------------------------------------     t= Marshal::load(Marshal.dump(team_selected_troops))       a=t.flatten     x=457     for i in 0...a.size     $game_screen.pictures[i+1].show("头像#{a[i]}", 0,x, 550, 100, 100, 255, 0)     x-=87     end #----------------------------------------------------------------------------- #   if $game_switches[18] == true     e = Marshal::load(Marshal.dump(enermy_selected_troops))     b=e.flatten     x=544     for i in 0...b.size     $game_screen.pictures[6+i+1].show("头像#{b[i]}", 0,x, 550, 100, 100, 255, 0)     x+=87   end #  end         #$自定义战斗下一个战斗者团队=团队军队         $custom_battle_next_fighter_team = team_army         #$自定义战斗下一个战斗者敌军=敌军军队         $custom_battle_next_fighter_enermy = enermy_army         #$自定义战斗下一个地图ID=16         $custom_battle_next_map_id = 16#map_info[0]        #if $game_switches[19] == true         # a = [1, 2, 3, 5, 8]        # $custom_battle_next_map_id  = a[rand(a.size)]        # end         $game_party.setup_starting_members#游戏部分设置启动成员           # 设置初期位置的地图##############1356622        $game_map.setup(30)     # 主角向初期位置移动         $game_player.moveto(0, 0)         # 刷新主角         $game_player.refresh     # 执行地图设置的 BGM 与 BGS 的自动切换         $game_map.autoplay             # 刷新地图 (执行并行事件)         $game_map.update     # 切换地图画面         $scene = Scene_Map.new            # $scene = Scene_Map.new           #efs_title_main            else # fourth         @force_back = false#@强制后退=错误         Graphics.update #图形更新         efs_title_update#EFS标题更新         end              else # third       @force_back = false#@强制后退=错误       Graphics.update#图形更新       efs_title_update#EFS标题更新       end        else # second     @force_back = false#@强制后退=错误     Graphics.update#图形更新     efs_title_update#EFS标题更新     end      else #1st      @force_back = false#@强制后退=错误      Graphics.update#图形更新      efs_title_update#EFS标题更新    end      end end 
 
 def command_custom_battle#定义命令_自定义战斗  
    # 演奏确定 SE  
    $game_system.se_play($data_system.decision_se)  
     #$游戏系统。se播放($数据系统。未指定文件或目录  
   
    choose_map_main#选择主地图  
 # map_info = $custom_battle_next_map_id#@map_info#地图信息=@地图信息  
  #如果选择随机地图随机士兵  
 # if ! @force_back and map_info[0] == -1#如果!@强制返回并地图信息[0]==-1  
 #   make_random_efs_game#生成随机efs_game  
 #   return  
 # end  
#---------------------------------------------------- ↑↓     
    #如果@强制后退或@强制后退==无  
    if ! @force_back or @force_back == nil  
    #自定义主战场(0,@地图信息[1],@地图信息[2])data_id  
    custom_battle_main(0,@map_info[1],@map_info[2])  
    #团队选定部队=@选定部队  
    team_selected_troops = @selected_units  
   
   
    #如果@强制后退或@强制后退==无  
    if ! @force_back or @force_back == nil  
      #自定义主战场(1,@地图信息[1],@地图信息[2])  
      custom_battle_main(1,@map_info[1],@map_info[2])  
      #敌人选定部队=@选定部队  
      if $game_switches[18] == true  
      #true是打开,false是关闭  
      #敌军enermy精选部队  
   
      enermy_selected_troops =[[17],[18],[19],[21],[16]] #@selected_units  
   
   
      # @group_one.x = 928  
   
    #  @group_one.y = 544  
    #  @group_two.x = 1248  
    #  @group_two.y = 640  
   
      end  
      if $game_switches[19] == true  
      enermy_selected_troops =[ [5,5],[5,5,5],[5,5],[5,5,5],[5,5,5,5,5] ]  
    end  
   
   
      #如果@强制后退或@强制后退==无  
      if ! @force_back or @force_back == nil  
        choose_hero_main#选择英雄主  
        selected_hero = nil  
        #selected_hero = @selected_hero#选定的英雄=@选定的英雄  
        #如果@强制后退或@强制后退==无  
        if ! @force_back or @force_back == nil  
   
        team_army = Game_Army_Slg.new(0)  
        #enermy军队  
        enermy_army = Game_Army_Slg.new(1)  
        team_army.create_empty_army  
        enermy_army.create_empty_army  
        #team_army.load_twoD_Array(team_selected_troops,selected_hero)  
        team_army.load_twoD_Array(team_selected_troops,selected_hero)  
        enermy_army.load_twoD_Array(enermy_selected_troops)  
       # 切换地图画面  
   
     #team_army.set_groups_name#团队军队。设置团队名称[@character.group-1]  
#--------------------------------------------------------------------------------  
    t= Marshal::load(Marshal.dump(team_selected_troops))  
   
    a=t.flatten  
    x=457  
    for i in 0...a.size  
    $game_screen.pictures[i+1].show("头像#{a[i]}", 0,x, 550, 100, 100, 255, 0)  
    x-=87  
    end  
#-----------------------------------------------------------------------------  
#   if $game_switches[18] == true  
    e = Marshal::load(Marshal.dump(enermy_selected_troops))  
    b=e.flatten  
    x=544  
    for i in 0...b.size  
    $game_screen.pictures[6+i+1].show("头像#{b[i]}", 0,x, 550, 100, 100, 255, 0)  
    x+=87  
  end  
#  end  
        #$自定义战斗下一个战斗者团队=团队军队  
        $custom_battle_next_fighter_team = team_army  
        #$自定义战斗下一个战斗者敌军=敌军军队  
        $custom_battle_next_fighter_enermy = enermy_army  
        #$自定义战斗下一个地图ID=16  
        $custom_battle_next_map_id = 16#map_info[0]  
       #if $game_switches[19] == true   
       # a = [1, 2, 3, 5, 8]  
       # $custom_battle_next_map_id  = a[rand(a.size)]  
       # end  
        $game_party.setup_starting_members#游戏部分设置启动成员  
   
   
   
    # 设置初期位置的地图##############1356622  
       $game_map.setup(30)  
    # 主角向初期位置移动  
        $game_player.moveto(0, 0)  
   
   
    # 刷新主角  
        $game_player.refresh  
    # 执行地图设置的 BGM 与 BGS 的自动切换  
        $game_map.autoplay  
   
   
   
   
    # 刷新地图 (执行并行事件)  
        $game_map.update  
    # 切换地图画面  
        $scene = Scene_Map.new  
   
         # $scene = Scene_Map.new  
          #efs_title_main  
   
         else # fourth  
        @force_back = false#@强制后退=错误  
        Graphics.update #图形更新  
        efs_title_update#EFS标题更新  
        end     
   
   
      else # third  
      @force_back = false#@强制后退=错误  
      Graphics.update#图形更新  
      efs_title_update#EFS标题更新  
      end     
    else # second  
    @force_back = false#@强制后退=错误  
    Graphics.update#图形更新  
    efs_title_update#EFS标题更新  
    end  
   
   else #1st  
     @force_back = false#@强制后退=错误  
     Graphics.update#图形更新  
     efs_title_update#EFS标题更新  
   end   
   
  end  
end  
 
  |   
 
 
 
 |