Project1
标题:
关于等级称号
[打印本页]
作者:
荣耀工作室
时间:
2019-3-30 01:51
标题:
关于等级称号
请问下各位大佬,有没有让等级变为名称的脚本?
就比如
Level 1 替换为 炼体一级
level 11 替换为 炼血一级
就是想做境界等级,最好是能兼容YEP等级上限的脚本。
小弟在此先向各位说声谢谢。
作者:
玄羽
时间:
2019-3-30 10:40
var Dxxs = Dxxs || {};
Dxxs.HE = Dxxs.HE || {};
Dxxs.HE.version = 1.00;
/*:
* @plugindesc 修炼等级划分插件
* @author 帝星邪神
*
* @param Maxlevel
* @desc 等级上限.
* 默认值: 83
* @default 83
*
* @param 职业MP的描述
*
* @param MpWz
* @desc 古武的MP描述.
* 默认值: 灵气
* @default 灵气
*
* @param MpDz
* @desc 斗气的MP描述.
* 默认值: 斗气
* @default 斗气
*
* @param MpXmz
* @desc 修魔的MP描述.
* 默认值: 魔气
* @default 魔气
*
* @param MpXzz
* @desc 修真的MP描述.
* 默认值: 灵气
* @default 灵气
*
* @param MpWu
* @desc 不显示等级的MP描述.
* 默认值: 法力
* @default 法力
*
* @help
* 职业备注:职业id分划等级,每种职业有83个默认等级划分
<zhiye:1> :古武等级划分
<zhiye:2> :斗气等级划分
<zhiye:3> :修魔等级划分
<zhiye:4> :修真等级划分
<zhiye:5> :不显示等级
<mlevel:i> :给职业备注等级上限,若没有备注将采用插件的默认等级上限。
*/
Dxxs.Parameters = PluginManager.parameters('ALEVEL');
Dxxs.Param = Dxxs.Param || {};
Dxxs.HE.Dj = Number(Dxxs.Parameters['Maxlevel']);
Dxxs.HE.MpWz = String(Dxxs.Parameters['MpWz']);
Dxxs.HE.MpDz = String(Dxxs.Parameters['MpDz']);
Dxxs.HE.MpXmz = String(Dxxs.Parameters['MpXmz']);
Dxxs.HE.MpXzz = String(Dxxs.Parameters['MpXzz']);
Dxxs.HE.MpWu = String(Dxxs.Parameters['MpWu']);
(function() {
Window_Base.prototype.levelWuzhe = function(n) {
switch (n) {
case 1:
return "黄阶【初期】";
break;
case 2:
return "黄阶【中期】";
break;
case 3:
return "黄阶【后期】";
break;
case 4:
return "黄阶【巅峰】";
break;
case 5:
return "玄阶【初期】";
break;
case 6:
return "玄阶【中期】";
break;
case 7:
return "玄阶【后期】";
break;
case 8:
return "玄阶【巅峰】";
break;
case 9:
return "地阶【初期】";
break;
case 10:
return "地阶【中期】";
break;
case 11:
return "地阶【后期】";
break;
case 12:
return "地阶【巅峰】";
break;
case 13:
return "天阶【初期】";
break;
case 14:
return "天阶【中期】";
break;
case 15:
return "天阶【后期】";
break;
case 16:
return "天阶【巅峰】";
break;
case 17:
return "后天【初期】";
break;
case 18:
return "后天【中期】";
break;
case 19:
return "后天【后期】";
break;
case 20:
return "后天【巅峰】";
break;
case 21:
return "先天【初期】";
break;
case 22:
return "先天【中期】";
break;
case 23:
return "先天【后期】";
break;
case 24:
return "先天【巅峰】";
break;
case 25:
return "贤阶【初期】";
break;
case 26:
return "贤阶【中期】";
break;
case 27:
return "贤阶【后期】";
break;
case 28:
return "贤阶【巅峰】";
break;
case 29:
return "圣阶【初期】";
break;
case 30:
return "圣阶【中期】";
break;
case 31:
return "圣阶【后期】";
break;
case 32:
return "圣阶【巅峰】";
break;
case 33:
return "圣转【初期】";
break;
case 34:
return "圣转【中期】";
break;
case 35:
return "圣转【后期】";
break;
case 36:
return "圣转【巅峰】";
break;
case 37:
return "至阶【隐藏】";
break;
case 38:
return "至阶【初期】";
break;
case 39:
return "至阶【中期】";
break;
case 40:
return "至阶【后期】";
break;
case 41:
return "至阶【巅峰】";
break;
case 42:
return "真阶【初期】";
break;
case 43:
return "真阶【中期】";
break;
case 44:
return "真阶【后期】";
break;
case 45:
return "真阶【巅峰】";
break;
case 46:
return "灵动期【初期】";
break;
case 47:
return "灵动期【中期】";
break;
case 48:
return "灵动期【后期】";
break;
case 49:
return "灵动期【巅峰】";
break;
case 50:
return "灵轮期【初期】";
break;
case 51:
return "灵轮期【中期】";
break;
case 52:
return "灵轮期【后期】";
break;
case 53:
return "灵轮期【巅峰】";
break;
case 54:
return "灵回期【初期】";
break;
case 55:
return "灵回期【中期】";
break;
case 56:
return "灵回期【后期】";
break;
case 57:
return "灵回期【巅峰】";
break;
case 58:
return "融天境【初期】";
break;
case 59:
return "融天境【中期】";
break;
case 60:
return "融天境【后期】";
break;
case 61:
return "融天境【巅峰】";
break;
case 62:
return "化天境【初期】";
break;
case 63:
return "化天境【中期】";
break;
case 64:
return "化天境【后期】";
break;
case 65:
return "化天境【巅峰】";
break;
case 66:
return "通天境【初期】";
break;
case 67:
return "通天境【中期】";
break;
case 68:
return "通天境【后期】";
break;
case 69:
return "通天境【巅峰】";
break;
case 70:
return "规则境【初期】";
break;
case 71:
return "规则境【中期】";
break;
case 72:
return "规则境【后期】";
break;
case 73:
return "规则境【巅峰】";
break;
case 74:
return "主宰境【初期】";
break;
case 75:
return "主宰境【中期】";
break;
case 76:
return "主宰境【后期】";
break;
case 77:
return "主宰境【巅峰】";
break;
case 78:
return "【证道主宰】";
break;
case 79:
return "【塑道主宰】";
break;
case 80:
return "【育道主宰】";
break;
case 81:
return "【化道主宰】";
break;
case 82:
return "【道元主宰】";
break;
case 83:
return "【混元主宰】";
break;
}
}
Window_Base.prototype.levelDouzhe = function(n) {
switch (n) {
case 1:
return "斗者【初期】";
break;
case 2:
return "斗者【中期】";
break;
case 3:
return "斗者【后期】";
break;
case 4:
return "斗者【巅峰】";
break;
case 5:
return "斗师【初期】";
break;
case 6:
return "斗师【中期】";
break;
case 7:
return "斗师【后期】";
break;
case 8:
return "斗师【巅峰】";
break;
case 9:
return "斗将【初期】";
break;
case 10:
return "斗将【中期】";
break;
case 11:
return "斗将【后期】";
break;
case 12:
return "斗将【巅峰】";
break;
case 13:
return "斗侯【初期】";
break;
case 14:
return "斗侯【中期】";
break;
case 15:
return "斗侯【后期】";
break;
case 16:
return "斗侯【巅峰】";
break;
case 17:
return "斗王【初期】";
break;
case 18:
return "斗王【中期】";
break;
case 19:
return "斗王【后期】";
break;
case 20:
return "斗王【巅峰】";
break;
case 21:
return "斗皇【初期】";
break;
case 22:
return "斗皇【中期】";
break;
case 23:
return "斗皇【后期】";
break;
case 24:
return "斗皇【巅峰】";
break;
case 25:
return "斗尊【初期】";
break;
case 26:
return "斗尊【中期】";
break;
case 27:
return "斗尊【后期】";
break;
case 28:
return "斗尊【巅峰】";
break;
case 29:
return "斗宗【初期】";
break;
case 30:
return "斗宗【中期】";
break;
case 31:
return "斗宗【后期】";
break;
case 32:
return "斗宗【巅峰】";
break;
case 33:
return "斗转【初期】";
break;
case 34:
return "斗转【中期】";
break;
case 35:
return "斗转【后期】";
break;
case 36:
return "斗转【巅峰】";
break;
case 37:
return "【半圣】";
break;
case 38:
return "斗圣【初期】";
break;
case 39:
return "斗圣【中期】";
break;
case 40:
return "斗圣【后期】";
break;
case 41:
return "斗圣【巅峰】";
break;
case 42:
return "斗帝【初期】";
break;
case 43:
return "斗帝【中期】";
break;
case 44:
return "斗帝【后期】";
break;
case 45:
return "斗帝【巅峰】";
break;
case 46:
return "裂空期【初期】";
break;
case 47:
return "裂空期【中期】";
break;
case 48:
return "裂空期【后期】";
break;
case 49:
return "裂空期【巅峰】";
break;
case 50:
return "开天期【初期】";
break;
case 51:
return "开天期【中期】";
break;
case 52:
return "开天期【后期】";
break;
case 53:
return "开天期【巅峰】";
break;
case 50:
return "劈地期【初期】";
break;
case 51:
return "劈地期【中期】";
break;
case 52:
return "劈地期【后期】";
break;
case 53:
return "劈地期【巅峰】";
break;
case 54:
return "生死境【初期】";
break;
case 55:
return "生死境【中期】";
break;
case 56:
return "生死境【后期】";
break;
case 57:
return "生死境【巅峰】";
break;
case 58:
return "轮回境【初期】";
break;
case 59:
return "轮回境【中期】";
break;
case 60:
return "轮回境【后期】";
break;
case 61:
return "轮回境【巅峰】";
break;
case 62:
return "涅槃境【初期】";
break;
case 63:
return "涅槃境【中期】";
break;
case 64:
return "涅槃境【后期】";
break;
case 65:
return "涅槃境【巅峰】";
break;
case 66:
return "至尊【初期】";
break;
case 67:
return "至尊【中期】";
break;
case 68:
return "至尊【后期】";
break;
case 69:
return "至尊【巅峰】";
break;
case 70:
return "地至尊【初期】";
break;
case 71:
return "地至尊【中期】";
break;
case 72:
return "地至尊【后期】";
break;
case 73:
return "地至尊【巅峰】";
break;
case 74:
return "天至尊【初期】";
break;
case 75:
return "天至尊【中期】";
break;
case 76:
return "天至尊【后期】";
break;
case 77:
return "天至尊【巅峰】";
break;
case 78:
return "【证道至尊】";
break;
case 79:
return "【塑道至尊】";
break;
case 80:
return "【育道至尊】";
break;
case 81:
return "【化道至尊】";
break;
case 82:
return "【道元至尊】";
break;
case 83:
return "【混元至尊】";
break;
}
}
Window_Base.prototype.levelXiumozhe = function(n) {
switch (n) {
case 1:
return "悟气【一层】";
break;
case 2:
return "悟气【二层】";
break;
case 3:
return "悟气【三层】";
break;
case 4:
return "悟气【四层】";
break;
case 5:
return "悟气【五层】";
break;
case 6:
return "悟气【六层】";
break;
case 7:
return "聚气期【一层】";
break;
case 8:
return "聚气期【二层】";
break;
case 9:
return "聚气期【三层】";
break;
case 10:
return "聚气期【四层】";
break;
case 11:
return "聚气期【五层】";
break;
case 12:
return "聚气期【六层】";
break;
case 13:
return "聚气期【七层】";
break;
case 14:
return "聚气期【八层】";
break;
case 15:
return "聚气期【九层】";
break;
case 16:
return "聚气期【十层】";
break;
case 17:
return "凝元期【初期】";
break;
case 18:
return "凝元期【中期】";
break;
case 19:
return "凝元期【后期】";
break;
case 20:
return "凝元期【巅峰】";
break;
case 21:
return "意欲期【初期】";
break;
case 22:
return "意欲期【中期】";
break;
case 23:
return "意欲期【后期】";
break;
case 24:
return "意欲期【巅峰】";
break;
case 25:
return "魔婴期【初期】";
break;
case 26:
return "魔婴期【中期】";
break;
case 27:
return "魔婴期【后期】";
break;
case 28:
return "魔婴期【巅峰】";
break;
case 29:
return "离识期【初期】";
break;
case 30:
return "离识期【中期】";
break;
case 31:
return "离识期【后期】";
break;
case 32:
return "离识期【巅峰】";
break;
case 33:
return "合体期【初期】";
break;
case 34:
return "合体期【中期】";
break;
case 35:
return "合体期【后期】";
break;
case 36:
return "合体期【巅峰】";
break;
case 37:
return "【大乘】";
break;
case 38:
return "渡劫期【初期】";
break;
case 39:
return "渡劫期【中期】";
break;
case 40:
return "渡劫期【后期】";
break;
case 41:
return "渡劫期【巅峰】";
break;
case 42:
return "化魔期【初期】";
break;
case 43:
return "化魔期【中期】";
break;
case 44:
return "化魔期【后期】";
break;
case 45:
return "化魔期【巅峰】";
break;
case 46:
return "初级魔法师【➀】";
break;
case 47:
return "初级魔法师【➁】";
break;
case 48:
return "初级魔法师【➂】";
break;
case 49:
return "初级魔法师【➃】";
break;
case 50:
return "中级魔法师【➀】";
break;
case 51:
return "中级魔法师【➁】";
break;
case 52:
return "中级魔法师【➂】";
break;
case 53:
return "中级魔法师【➃】";
break;
case 50:
return "高级魔法师【➀】";
break;
case 51:
return "高级魔法师【➁】";
break;
case 52:
return "高级魔法师【➂】";
break;
case 53:
return "高级魔法师【➃】";
break;
case 54:
return "魔导师【初期】";
break;
case 55:
return "魔导师【中期】";
break;
case 56:
return "魔导师【后期】";
break;
case 57:
return "魔导师【巅峰】";
break;
case 58:
return "大魔导师【初期】";
break;
case 59:
return "大魔导师【中期】";
break;
case 60:
return "大魔导师【后期】";
break;
case 61:
return "大魔导师【巅峰】";
break;
case 62:
return "圣魔导师【初期】";
break;
case 63:
return "圣魔导师【中期】";
break;
case 64:
return "圣魔导师【后期】";
break;
case 65:
return "圣魔导师【巅峰】";
break;
case 66:
return "魔导法皇【初期】";
break;
case 67:
return "魔导法皇【中期】";
break;
case 68:
return "魔导法皇【后期】";
break;
case 69:
return "魔导法皇【巅峰】";
break;
case 70:
return "魔导法帝【初期】";
break;
case 71:
return "魔导法帝【中期】";
break;
case 72:
return "魔导法帝【后期】";
break;
case 73:
return "魔导法帝【巅峰】";
break;
case 74:
return "魔导法圣【初期】";
break;
case 75:
return "魔导法圣【中期】";
break;
case 76:
return "魔导法圣【后期】";
break;
case 77:
return "魔导法圣【巅峰】";
break;
case 78:
return "【证道法神】";
break;
case 79:
return "【塑道法神】";
break;
case 80:
return "【育道法神】";
break;
case 81:
return "【化道法神】";
break;
case 82:
return "【道元法神】";
break;
case 83:
return "【混元法神】";
break;
}
}
Window_Base.prototype.levelXiuzhenzhe = function(n) {
switch (n) {
case 1:
return "炼体【一层】";
break;
case 2:
return "炼体【二层】";
break;
case 3:
return "炼体【三层】";
break;
case 4:
return "炼体【四层】";
break;
case 5:
return "炼体【五层】";
break;
case 6:
return "炼体【六层】";
break;
case 7:
return "炼气期【一层】";
break;
case 8:
return "炼气期【二层】";
break;
case 9:
return "炼气期【三层】";
break;
case 10:
return "炼气期【四层】";
break;
case 11:
return "炼气期【五层】";
break;
case 12:
return "炼气期【六层】";
break;
case 13:
return "炼气期【七层】";
break;
case 14:
return "炼气期【八层】";
break;
case 15:
return "炼气期【九层】";
break;
case 16:
return "炼气期【十层】";
break;
case 17:
return "筑基期【初期】";
break;
case 18:
return "筑基期【中期】";
break;
case 19:
return "筑基期【后期】";
break;
case 20:
return "筑基期【巅峰】";
break;
case 21:
return "金丹期【初期】";
break;
case 22:
return "金丹期【中期】";
break;
case 23:
return "金丹期【后期】";
break;
case 24:
return "金丹期【巅峰】";
break;
case 25:
return "元婴期【初期】";
break;
case 26:
return "元婴期【中期】";
break;
case 27:
return "元婴期【后期】";
break;
case 28:
return "元婴期【巅峰】";
break;
case 29:
return "元神期【初期】";
break;
case 30:
return "元神期【中期】";
break;
case 31:
return "元神期【后期】";
break;
case 32:
return "元神期【巅峰】";
break;
case 33:
return "凝体期【初期】";
break;
case 34:
return "凝体期【中期】";
break;
case 35:
return "凝体期【后期】";
break;
case 36:
return "凝体期【巅峰】";
break;
case 37:
return "【大乘】";
break;
case 38:
return "劫变期【初期】";
break;
case 39:
return "劫变期【中期】";
break;
case 40:
return "劫变期【后期】";
break;
case 41:
return "劫变期【巅峰】";
break;
case 42:
return "化真期【初期】";
break;
case 43:
return "化真期【中期】";
break;
case 44:
return "化真期【后期】";
break;
case 45:
return "化真期【巅峰】";
break;
case 46:
return "地仙【初期】";
break;
case 47:
return "地仙【中期】";
break;
case 48:
return "地仙【后期】";
break;
case 49:
return "地仙【巅峰】";
break;
case 50:
return "天仙【初期】";
break;
case 51:
return "天仙【中期】";
break;
case 52:
return "天仙【后期】";
break;
case 53:
return "天仙【巅峰】";
break;
case 50:
return "灵仙【初期】";
break;
case 51:
return "灵仙【中期】";
break;
case 52:
return "灵仙【后期】";
break;
case 53:
return "灵仙【巅峰】";
break;
case 54:
return "真仙【初期】";
break;
case 55:
return "真仙【中期】";
break;
case 56:
return "真仙【后期】";
break;
case 57:
return "真仙【巅峰】";
break;
case 58:
return "玄仙【初期】";
break;
case 59:
return "玄仙【中期】";
break;
case 60:
return "玄仙【后期】";
break;
case 61:
return "玄仙【巅峰】";
break;
case 62:
return "【金仙】";
break;
case 63:
return "【金仙★】";
break;
case 64:
return "【太乙金仙】";
break;
case 65:
return "【大罗金仙】";
break;
case 66:
return "仙王【初期】";
break;
case 67:
return "仙王【中期】";
break;
case 68:
return "仙王【后期】";
break;
case 69:
return "仙王【巅峰】";
break;
case 70:
return "仙尊【初期】";
break;
case 71:
return "仙尊【中期】";
break;
case 72:
return "仙尊【后期】";
break;
case 73:
return "仙尊【巅峰】";
break;
case 74:
return "仙帝【初期】";
break;
case 75:
return "仙帝【中期】";
break;
case 76:
return "仙帝【后期】";
break;
case 77:
return "仙帝【巅峰】";
break;
case 78:
return "【证道圣帝】";
break;
case 79:
return "【塑道圣帝】";
break;
case 80:
return "【育道圣帝】";
break;
case 81:
return "【化道圣帝】";
break;
case 82:
return "【道元圣帝】";
break;
case 83:
return "【混元圣帝】";
break;
}
}
Window_Base.prototype.drawActorLevel = function(actor, x, y) {
var c = actor.currentClass();
if (c.meta.zhiye != null) {
zhiye = Number(c.meta.zhiye);
this.changeTextColor('rgba(255,255,0,1)');
switch (zhiye) {
case 1:
this.drawText(this.levelWuzhe(actor.level), x, y, 312);
break;
case 2:
this.drawText(this.levelDouzhe(actor.level), x, y, 312);
break;
case 3:
this.drawText(this.levelXiumozhe(actor.level), x, y, 312);
break;
case 4:
this.drawText(this.levelXiuzhenzhe(actor.level), x, y, 312);
break;
case 5:
this.drawText("", x, y, 312);
break;
}
} else {
this.changeTextColor(this.systemColor());
this.drawText(TextManager.levelA, x, y, 48);
this.resetTextColor();
this.drawText(actor.level, x + 84, y, 36, 'right');
}
};
Window_Base.prototype.drawActorMp = function(actor, x, y, width) {
width = width || 186;
var MpWz = String(Dxxs.HE.MpWz);
var MpDz = String(Dxxs.HE.MpDz);
var MpXmz = String(Dxxs.HE.MpXmz);
var MpXzz = String(Dxxs.HE.MpXzz);
var MpWu = String(Dxxs.HE.MpWu);
var color1 = this.mpGaugeColor1();
var color2 = this.mpGaugeColor2();
this.drawGauge(x, y, width, actor.mpRate(), color1, color2);
this.changeTextColor(this.systemColor());
var c = actor.currentClass();
if (c.meta.zhiye != null) {
zhiye = Number(c.meta.zhiye);
switch (zhiye) {
case 1:
this.drawText(MpWz, x, y, 44);
break;
case 2:
this.drawText(MpDz, x, y, 44);
break;
case 3:
this.drawText(MpXmz, x, y, 44);
break;
case 4:
this.drawText(MpXzz, x, y, 44);
break;
case 5:
this.drawText(MpWu, x, y, 44);
break;
}
} else {
this.drawText(TextManager.mpA, x, y, 44);
}
this.drawCurrentAndMax(actor.mp, actor.mmp, x, y, width,
this.mpColor(actor), this.normalColor());
};
Game_Actor.prototype.maxLevel = function() {
var c = this.currentClass();
if (c.meta.mlevel != null) {
mlevel = Number(c.meta.mlevel);
return mlevel;
}else {
var Dj = eval(Dxxs.HE.Dj);
return Dj;
}
};
})();
复制代码
作者:
鲁迅周树人
时间:
2019-4-2 21:35
大大 一开插件mp就变成undefined是什么原因呀 求帮助啊大大
作者:
5201314lwl
时间:
2019-4-5 16:35
楼下这个插件的确是很好,但是如果你是做仙侠游戏的,没发现弊端吗??仙侠游戏风格的,直接升级就是突破境界,这样是没意思的
作者:
5201314lwl
时间:
2019-4-5 16:38
我建议你用境界代替职业,把职业全部废了,再利用公共事件,每一次突破境界需要多少灵石或者金钱,需要什么材料,然后成功突破后,自身增加多少属性,增加什么技能
作者:
5201314lwl
时间:
2019-4-5 16:39
当然如果找人定做一个这样的脚本也可以,不过很麻烦,所以说我建议是用境界代替职业,我都是这样做的
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1