/******************************************************************************/ /***********************************江湖声望划分*******************************/ /******************************************************************************/ var shift = 20; //变量起始位置 //shift = 0时,声望1-4;善名5-8;恶名9-12;悟性、福缘、武常以此类推 //数据库中第N个角色对应第N个变量,目前最多4个角色 Window_Base.prototype.drawActorClass = function(actor, x, y, width) { width = width || 168; this.contents.textColor = this.textColor(3); this.contents.fontFace = "汉仪小隶书简"; var name = "声望"; this.drawText(name, x, y, width); this.contents.textColor = this.textColor(5); var index = actor.actorId() + shift; if ($gameVariables.value(index) < 100) name = "【默默无闻】"; else if ($gameVariables.value(index) < 200) name = "【江湖新秀】" else if ($gameVariables.value(index) < 300) { if($gameVariables.value(index+4) - $gameVariables.value(actor.actorId()+20) >= 100) name = "【江湖少侠】"; else if($gameVariables.value(index+8) - $gameVariables.value(actor.actorId()+10) >= 100) name = "【江湖恶霸】"; else name = "【江湖浪子】"; } else name = "【默默无闻】" this.drawText(name, x+64, y, width); };
/******************************************************************************/
/***********************************江湖声望划分*******************************/
/******************************************************************************/
var shift = 20; //变量起始位置
//shift = 0时,声望1-4;善名5-8;恶名9-12;悟性、福缘、武常以此类推
//数据库中第N个角色对应第N个变量,目前最多4个角色
Window_Base.prototype.drawActorClass = function(actor, x, y, width) {
width = width || 168;
this.contents.textColor = this.textColor(3);
this.contents.fontFace = "汉仪小隶书简";
var name = "声望";
this.drawText(name, x, y, width);
this.contents.textColor = this.textColor(5);
var index = actor.actorId() + shift;
if ($gameVariables.value(index) < 100)
name = "【默默无闻】";
else if ($gameVariables.value(index) < 200)
name = "【江湖新秀】"
else if ($gameVariables.value(index) < 300)
{
if($gameVariables.value(index+4) - $gameVariables.value(actor.actorId()+20) >= 100)
name = "【江湖少侠】";
else if($gameVariables.value(index+8) - $gameVariables.value(actor.actorId()+10) >= 100)
name = "【江湖恶霸】";
else
name = "【江湖浪子】";
}
else
name = "【默默无闻】"
this.drawText(name, x+64, y, width);
};
把这样一个小插件 修改成 属性栏 他要200?????
然后我感觉不值
我让他单独扩展一下
就是不需要角色 控制 直接变量操作
他居然认为 我搞他 有没有这种奇才
|