查看: 2246|回复: 1

[已经解决] 怎么让队伍的领队不能更换

[复制链接]
梦石
0
星屑
549
在线时间
341 小时
注册时间
2015-2-10
回帖
31
发表于 2016-7-31 20:38:45 | 显示全部楼层 |阅读模式

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

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

×
同标题,怎么让队伍的领队不能换。
不是关闭整队哦,我想让领队固定玩家不能换。
梦石
0
星屑
834
在线时间
279 小时
注册时间
2016-1-27
回帖
49
发表于 2016-7-31 22:02:37 | 显示全部楼层
请用这个
  1. #==============================================================================#
  2. # * RGSS3 Script - Captian Lock                                                #
  3. #  * Author - Shadwo Momo                                                      #
  4. #  * Version - 1.0                                                             #
  5. #  * Last Update - 2013.12.15                                                  #
  6. #------------------------------------------------------------------------------#
  7. # * Introduce                                                                  #
  8. #  Prevent the captian from being replaced.                                    #
  9. #------------------------------------------------------------------------------#
  10. # * Instruction                                                                #
  11. #  Insert the script below other materials but above Main.                     #
  12. #------------------------------------------------------------------------------#
  13. # * Update                                                                     #
  14. #  V 1.0 2013.12.15 Build                                                      #
  15. #------------------------------------------------------------------------------#
  16. # * License                                                                    #
  17. #  This script is written by Shadow Momo. Please keep this information if you  #
  18. # use or edit it.                                                              #
  19. #==============================================================================#
  20. class Scene_Menu
  21.   alias :on_formation_ok_captian_lock :on_formation_ok
  22.   def on_formation_ok
  23.     if @status_window.index == 0
  24.       Graphics.wait(20)
  25.       Sound.play_buzzer
  26.       @status_window.activate
  27.     else
  28.       on_formation_ok_captian_lock
  29.     end
  30.   end
  31. end
  32. #==============================================================================#
  33. #===========================                        ===========================#
  34. #                             End     of     File                              #
  35. #===========================                        ===========================#
  36. #==============================================================================#
复制代码

评分

参与人数 1星屑 +10 收起 理由
糯米_包子 + 10 谢谢。

查看全部评分

回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部