Project1

标题: 上次大家对于显示文章修改的继续改进 [打印本页]

作者: horussakai    时间: 2008-6-27 01:16
标题: 上次大家对于显示文章修改的继续改进
if $game_switches[50] == true
if $game_temp.choice_max > 0
  $game_system.se_play($data_system.decision_se)
  $game_temp.choice_proc.call(self.index)
end
terminate_message
else
if Input.trigger?(Input::C)
  if $game_temp.choice_max > 0
    $game_system.se_play($data_system.decision_se)
    $game_temp.choice_proc.call(self.index)
  end
  terminate_message
end
end



--------------------------


当50号game_switches为ON时


如何让文章出现后暂停100祯再消失?要么就是需要回车,要么就消失太快了


WINDOWS MESSAGE类里是无法用:@wait_count = 100的,我写进入也没作用 [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~
作者: horussakai    时间: 2008-6-27 17:07
没人回答?{/fd}
作者: horussakai    时间: 2008-6-27 22:09
一句话的事,没人知道{/gg}
作者: dbshy    时间: 2008-6-27 22:59
def terminate_message
   for i in 0..50
     Graphics.update
   end
   
   self.active = false
   self.pause = false
   self.index = -1
   self.contents.clear
   # 清除显示中标志
   @contents_showing = false
   # 呼叫信息调用
   if $game_temp.message_proc != nil
     $game_temp.message_proc.call
   end
   # 清除文章、选择项、输入数值的相关变量
   $game_temp.message_text = nil
   $game_temp.message_proc = nil
   $game_temp.choice_start = 99
   $game_temp.choice_max = 0
   $game_temp.choice_cancel_type = 0
   $game_temp.choice_proc = nil
   $game_temp.num_input_start = 99
   $game_temp.num_input_variable_id = 0
   $game_temp.num_input_digits_max = 0
   # 开放金钱窗口
   if @gold_window != nil
     @gold_window.dispose
     @gold_window = nil
   end
end

作者: horussakai    时间: 2008-6-27 23:08
等~~~~~~~~你那个是对terminate_message全部改动吧


我上面只想IF里实现

ELSE里还是保持按C一直显示的呀
作者: horussakai    时间: 2008-6-27 23:09
if $game_switches[50] == true
if $game_temp.choice_max > 0
$game_system.se_play($data_system.decision_se)
$game_temp.choice_proc.call(self.index)
end
terminate_message
else
if Input.trigger?(Input::C)
if $game_temp.choice_max > 0
   $game_system.se_play($data_system.decision_se)
   $game_temp.choice_proc.call(self.index)
end
terminate_message
end
end

-----------------------

可能我没说清楚,if $game_switches[50] == true才想保持显示100祯~~~~~~~~~~~~


作者: 灯笼菜刀王    时间: 2008-6-27 23:10
话说- -,上次告诉你的,用开关在显示文章前处理,不更简单- -,

而且冲突小见效快无副作用滋阴补肾疗效显著功能持久一次性根除所有后患。
作者: horussakai    时间: 2008-6-27 23:11
话说- -,上次告诉你的,用开关在显示文章前处理,不更简单- -,

<那个我用了,不成啊,关闭是关闭了,可是关的太快了~~~~~~~~~~~~~~~~~{/fd}
作者: dbshy    时间: 2008-6-27 23:12
alias old_terminate_message terminate_message
def terminate_message
   if $game_switches[50] then
     for i in 0..50
       Graphics.update
     end
     old_terminate_message
   else old_terminate_message
   end
end
     
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: horussakai    时间: 2008-6-27 23:14
dbshy,谢谢你

认可答案下,那我上面那个IF ELSE就没意义了,是吧.


alias old_terminate_message terminate_message
def terminate_message
  if $game_switches[50] then
    for i in 0..50
      Graphics.update
    end
    old_terminate_message
  else old_terminate_message
  end
end



这段是写在WINDOW_MESSAGE里?
作者: 暫時用來說話    时间: 2008-6-27 23:17
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-6-27 23:18
以下引用暫時用來說話于2008-6-27 15:17:49的发言:


以下引用dbshy于2008-6-27 15:12:18的发言:

alias old_terminate_message terminate_message
def terminate_message
if $game_switches[50] then
   for i in 0..50
     Graphics.update
   end
   old_terminate_message
else old_terminate_message
end
end
   


系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~


then是沒用的………!!



我以前学FP时,养成的习惯 = =b
作者: horussakai    时间: 2008-6-27 23:18
#--------------------------------------------------------------------------
  # ● 处理信息结束
  #--------------------------------------------------------------------------
  def terminate_message
    self.active = false
    self.pause = false
    self.index = -1
    self.contents.clear
    # 清除显示中标志
    @contents_showing = false
    # 呼叫信息调用
    if $game_temp.message_proc != nil
      $game_temp.message_proc.call
    end
    # 清除文章、选择项、输入数值的相关变量
    $game_temp.message_text = nil
    $game_temp.message_proc = nil
    $game_temp.choice_start = 99
    $game_temp.choice_max = 0
    $game_temp.choice_cancel_type = 0
    $game_temp.choice_proc = nil
    $game_temp.num_input_start = 99
    $game_temp.num_input_variable_id = 0
    $game_temp.num_input_digits_max = 0
    # 开放金钱窗口
    if @gold_window != nil
      @gold_window.dispose
      @gold_window = nil
    end
  end
  
  
  alias old_terminate_message terminate_message
def terminate_message
if $game_switches[50] then
   for i in 0..50
     Graphics.update
   end
   old_terminate_message
else old_terminate_message
end
end


这样写???????
作者: horussakai    时间: 2008-6-27 23:20
#--------------------------------------------------------------------------
  # ● 处理信息结束
  #--------------------------------------------------------------------------
  def terminate_message
    self.active = false
    self.pause = false
    self.index = -1
    self.contents.clear
    # 清除显示中标志
    @contents_showing = false
    # 呼叫信息调用
    if $game_temp.message_proc != nil
      $game_temp.message_proc.call
    end
    # 清除文章、选择项、输入数值的相关变量
    $game_temp.message_text = nil
    $game_temp.message_proc = nil
    $game_temp.choice_start = 99
    $game_temp.choice_max = 0
    $game_temp.choice_cancel_type = 0
    $game_temp.choice_proc = nil
    $game_temp.num_input_start = 99
    $game_temp.num_input_variable_id = 0
    $game_temp.num_input_digits_max = 0
    # 开放金钱窗口
    if @gold_window != nil
      @gold_window.dispose
      @gold_window = nil
    end
  end
  
  #horus
  
  alias old_terminate_message terminate_message
def terminate_message
if $game_switches[50] ==true then
   for i in 0..50
     Graphics.update
   end
   old_terminate_message
else old_terminate_message
end
end


也没用啊............  alias那段要写在哪里啊{/gg}
作者: 暫時用來說話    时间: 2008-6-27 23:21
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1