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

Project1

 找回密码
 注册会员
搜索
查看: 921|回复: 1
打印 上一主题 下一主题

这个脚本的问题~~大大们帮帮忙~~~

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
55
在线时间
0 小时
注册时间
2008-7-10
帖子
15
跳转到指定楼层
1
发表于 2008-7-11 20:13:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
#==============================================================================
# Game_System
#------------------------------------------------------------------------------
# 添加内容
#==============================================================================
class Game_System
attr_accessor :mission #现在执行的任务
attr_accessor :partmission
alias carol3_ini initialize
def initialize
   carol3_ini
   @mission = ""
   @partmission = []
end
end
#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
#  处理标题画面的类。
#==============================================================================
class Scene_Title
alias carol3_title1 main
def main
   $map_infos = load_data("Data/MapInfos.rxdata")
   for key in $map_infos.keys
     $map_infos[key] = $map_infos[key].name
   end
   $任务 = ""
   $支线 = nil
   $支线完成 = nil
   carol3_title1
end
end
class Scene_Map
alias carol3_update update
def update
   carol3_update
   if $支线 != nil
     for i in 0...$game_system.partmission.size
       if $game_system.partmission == $支线
         $支线 = nil
         break
       end
     end
     if $支线 != nil
       $game_system.partmission.push($支线)
       $支线 = nil
     end
   end
   if $支线完成 != nil
     for i in 0...$game_system.partmission.size
       if $game_system.partmission == $支线完成
         $game_system.partmission.delete($game_system.partmission)
         break
       end
     end
     $支线完成 = nil
   end
end
end
#==============================================================================
# ■ Game_Map
#------------------------------------------------------------------------------
#  处理地图的类。包含卷动以及可以通行的判断功能。
# 本类的实例请参考 $game_map 。
#==============================================================================
class Game_Map
def name
   return $map_infos[@map_id]
end
end
#==============================================================================
# Window_RecordBook
#------------------------------------------------------------------------------
# 菜单界面表示信息的窗口
#==============================================================================
class Window_RecordBook < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
def initialize
   super(0, 0, 640, 480)
   self.contents = Bitmap.new(width - 32, height - 32)
   if $任务 == ""
     $任务 = $game_system.mission
   else
     $game_system.mission = $任务
   end
   refresh
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def refresh
   self.contents.clear
   self.contents.font.color = system_color
   self.contents.font.size = 20
   cx = self.contents.text_size("现在地点").width + 24
   self.contents.draw_text(4, 0, cx, 24, "现在地点")
   self.contents.font.color = normal_color
   self.contents.draw_text(4 + cx, 0, 444 - cx, 24, $game_map.name.to_s)  
   self.contents.font.color = system_color
   cx = self.contents.text_size("主线任务").width + 24
   self.contents.draw_text(4, 32, cx, 24, "主线任务")
   self.contents.font.color = Color.new(240,250,75,255)
   self.contents.draw_text(4 + cx, 32, 444 - cx, 24, $game_system.mission.to_s)  
   self.contents.font.color = system_color
   cx = self.contents.text_size("支线任务").width + 24
   self.contents.draw_text(4, 96, cx, 24, "支线任务")
   self.contents.font.color = normal_color
   for i in 0...$game_system.partmission.size
     self.contents.draw_text(4 + cx, 96 + i * 32, 444 - cx, 24, $game_system.partmission.to_s)
   end
end
end
#----------------------------------------------------------------------------
#
# ● 任务书调用场景!调用方法:$scene=Scene_RecordBook.new
#
#----------------------------------------------------------------------------
class Scene_RecordBook
def main
   @command_window = Window_RecordBook.new
   Graphics.transition
   loop do
     Graphics.update
     Input.update
     update
     if $scene != self
       break
     end
   end
   Graphics.freeze
   @command_window.dispose
   if $scene.is_a?(Scene_Title)
     Graphics.transition
     Graphics.freeze
   end
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
   @command_window.update
   if Input.trigger?(Input::B)
     $game_system.se_play($data_system.cancel_se)
     $scene = Scene_Map.new
     return
   end
end
end





这个脚本~~~~做完任务~~任务记录怎么消失~~~~~?????
此贴于 2008-7-14 0:10:55 被版主darkten提醒,请楼主看到后对本贴做出回应。
版务信息:版主帮忙结贴~

Lv1.梦旅人

梦石
0
星屑
50
在线时间
93 小时
注册时间
2008-5-16
帖子
745
2
发表于 2008-7-11 21:28:32 | 只看该作者
把所有的任务信息等于空白就可以伪装成没有了
系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-8-8 18:50

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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