Project1

标题: [新人求助]如何让第1号人物只在队伍的第一个 [打印本页]

作者: 江户川洛奇    时间: 2013-2-19 20:15
标题: [新人求助]如何让第1号人物只在队伍的第一个
本帖最后由 江户川洛奇 于 2013-2-23 22:02 编辑

如何让第1号人物只在队伍的第一个,别的都在后面
譬如:王小虎(ID001,***(ID002)  ***(ID003)),***(ID004)
怎么让王小虎永远在队伍中的第一个
新人求指导
作者: 喵呜喵5    时间: 2013-2-19 20:52
RUBY 代码复制
  1. #==============================================================================
  2. # ★ RGSS3_先頭並び替え不可 Ver1.0
  3. #==============================================================================
  4. =begin
  5.  
  6. 作者:tomoaky
  7. webサイト:ひきも記 ([url]http://hikimoki.sakura.ne.jp/[/url])
  8.  
  9. パーティの先頭にいるアクターは並び替えできないように制限します。
  10.  
  11. 2012.09.14  Ver1.0
  12.   公開
  13.  
  14. =end
  15.  
  16. #==============================================================================
  17. # ■ Window_MenuStatus
  18. #==============================================================================
  19. class Window_MenuStatus
  20.   #--------------------------------------------------------------------------
  21.   # ● 決定ボタンが押されたときの処理
  22.   #--------------------------------------------------------------------------
  23.   alias tmtopfix_window_menustatus_process_ok process_ok
  24.   def process_ok
  25.     if @pending_index >= 0 && (index == 0 || @pending_index == 0)
  26.       Sound.play_buzzer
  27.     else
  28.       tmtopfix_window_menustatus_process_ok
  29.     end
  30.   end
  31. end

作者: 1715063941    时间: 2013-2-24 14:00
去网上找主要角色固定脚本




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