快捷导航
新手引导关于我们满天星繁体中文 🌓
查看: 419|回复: 0

[脚本] 队伍中的队长不可更换

[复制链接]
会员等级

积分信息
金币:852
金钱:0
钻石:0
活跃:205
发电:0

荣誉勋章
热心会员优秀版主首批会员最佳新人

TA的灵将
 UID: 6 发表于 2023-3-15 11:35:55 | 显示全部楼层 |阅读模式
[JavaScript] 纯文本查看 复制代码
//-----------------------------------------------------------------------------
//  Midgardsormr's Lock Formation Leader MZ
//-----------------------------------------------------------------------------
//  For: RPGMAKER MZ
//  MID_LockFormationLeader.js
//-----------------------------------------------------------------------------
//  2021-02-02 - Version 1.0 - release
//-----------------------------------------------------------------------------
//  Terms: CC BY 4.0 license -  [url]https://creativecommons.org/licenses/by/4.0/[/url]
//-----------------------------------------------------------------------------
 
var Imported = Imported || {};
Imported.MID_LockFormationLeader = true;
 
var MID = MID || {};        // MIDGARDSORMR's main object
MID.MID_LockFormationLeader = MID.MID_LockFormationLeader || {};
 
//-----------------------------------------------------------------------------
/*:
 * @plugindesc (v.1.0) Locks the first Actor in the formation (it cannot be swapped or replaced).
 * @target MZ
 * @author Midgardsormr
 * ----------------------------------------------------------------------------
 */
 
 // ALIAS
 MID.MID_LockFormationLeader.gactor_isFormationChangeOk = Game_Actor.prototype.isFormationChangeOk;
 
 Game_Actor.prototype.isFormationChangeOk = function() {
    return this.index() != 0 && MID.MID_LockFormationLeader.gactor_isFormationChangeOk();
};



直接原文上传转发了,作者midgardsormr,保存到新建js中,加载即可。

最近访客

  • Nyath
    2024-11-20
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 加入民族

本版积分规则

论坛用工具

蓝凑云 hello图床 聚合图床 TinyPNG remove 代码测试 颜色代码 颜色编写

Powered by Discuz! Comsenz Inc.

© 本站成立于2022-11-17

实用工具

AI人工智能图片放大 图片无损放大 百宝箱 孟坤工具箱 在线压缩图片 RPG游戏展

您一共访问了本站 加载中... 次

Archiver|小黑屋|RPG民族

GMT+8, 2026-11-29 15:44 , Processed in 0.826111 second(s), 34 queries .

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