Project1

标题: 如何让队首固定不变? [打印本页]

作者: 布里蓝    时间: 2012-5-1 00:35
标题: 如何让队首固定不变?
本帖最后由 布里蓝 于 2012-5-1 18:43 编辑

{:2_253:} 求解……因为如果玩家换了队首的主角后会出现各种对话奇葩


‘‘──布里蓝于2012-5-1 00:44补充以下内容

就是整队的时候,可以换2~4号角色,但1号角色强制不能换
’’
作者: hcm    时间: 2012-5-1 10:42
转载http://rpg.blue/thread-225511-1-1.html
  1. class Scene_Menu < Scene_MenuBase
  2.   alias fix_num1_on_formation_ok on_formation_ok
  3.   def on_formation_ok
  4.     if @status_window.index == $game_variables[10]
  5.       Sound.play_buzzer
  6.       @status_window.activate
  7.     else
  8.       fix_num1_on_formation_ok
  9.     end
  10.   end
  11. end
复制代码





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