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

Project1

 找回密码
 注册会员
搜索

关于战败读档会弹出……

查看数: 1898 | 评论数: 3 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2014-8-10 10:29

正文摘要:

本帖最后由 550806810 于 2014-8-10 19:36 编辑 P.S. 已经解决 就是这样,下面是脚本。 #============================================================================== # ■ Scene_Gameover #---------- ...

回复

kuerlulu 发表于 2014-8-10 18:50:01
一看看就觉得像<囧魂>里的没想到真的是= =
使用这个脚本时必须把Scene_File/Load/Save/Window_SaveFile一起使用才行, 或者你自己把有关game_map_name的Marshal的代码删掉也行

点评

谢谢~解决了喵~  发表于 2014-8-10 19:36
不要在意啦,这是自娱自乐的游戏不准备发6R的……因为用的别人的东西太多我……=A=  发表于 2014-8-10 19:29
还有 Game_Map 里的 map_name  发表于 2014-8-10 18:51

评分

参与人数 2星屑 +10 梦石 +1 收起 理由
RyanBern + 1 认可答案
550806810 + 10 认可答案

查看全部评分

550806810 发表于 2014-8-10 10:45:56
#==============================================================================
# ■ Interpreter (分割定义 6)
#------------------------------------------------------------------------------
#  执行事件命令的解释器。本类在 Game_System 类
# 和 Game_Event 类的内部使用。
#==============================================================================

class Interpreter
  #--------------------------------------------------------------------------
  # ● 战斗处理
  #--------------------------------------------------------------------------
  def command_301
    # 如果不是无效的队伍
    if $data_troops[@parameters[0]] != nil
      # ■■■■■■■■ [战斗失败再挑战]战斗前自动存临时档 ■■■■■■■■
      file = File.open("Save/Battle_Auto_Save.rxdata", "wb")
      # ■END■
      # 保存魔法编号
      # (将编辑器保存的值以随机值替换)
      $game_system.magic_number = $data_system.magic_number
      # 写入各种游戏对像
      Marshal.dump($game_system, file)
      Marshal.dump($game_switches, file)
      Marshal.dump($game_variables, file)
      Marshal.dump($game_self_switches, file)
      Marshal.dump($game_screen, file)
      Marshal.dump($game_actors, file)
      Marshal.dump($game_party, file)
      Marshal.dump($game_troop, file)
      Marshal.dump($game_map, file)
      Marshal.dump($game_player, file)
      file.close
      # 关闭地图遇暗敌标记
      $fight_again_map = nil
      # ■■■■■■■■■■■■■■■ END ■■■■■■■■■■■■■■■■
      # 设置中断战斗标志
      $game_temp.battle_abort = true
      # 设置战斗调用标志
      $game_temp.battle_calling = true
      $game_temp.battle_troop_id = @parameters[0]
      $game_temp.battle_can_escape = @parameters[1]
      $game_temp.battle_can_lose = @parameters[2]
      # 设置返回调用
      current_indent = @list[@index].indent
      $game_temp.battle_proc = Proc.new { |n| @branch[current_indent] = n }
    end
    # 推进索引
    @index += 1
    # 结束
    return false
  end
  #--------------------------------------------------------------------------
  # ● 胜利的情况下
  #--------------------------------------------------------------------------
  def command_601
    # 战斗结果为胜利的情况下
    if @branch[@list[@index].indent] == 0
      # 删除分支数据
      @branch.delete(@list[@index].indent)
      # 继续
      return true
    end
    # 不符合条件的情况下 : 指令跳转
    return command_skip
  end
  #--------------------------------------------------------------------------
  # ● 逃跑的情况下
  #--------------------------------------------------------------------------
  def command_602
    # 战斗结果为逃跑的情况下
    if @branch[@list[@index].indent] == 1
      # 删除分支数据
      @branch.delete(@list[@index].indent)
      # 继续
      return true
    end
    # 不符合条件的情况下 : 指令跳转
    return command_skip
  end
还有这个一小段
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-2-22 23:46

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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