照着大佬的教程,自己搞了一个出来,谢谢大家23333
[pre lang="javascript"]Window_NEWBattleStatus.prototype.drawsxcz = function(x, y) {
var color1 = this.textColor(0);
var color2 = this.textColor(20);
var v1 = $gameVariables.value(1);
var v2 = 999;
var rate = v1 / v2;
var width = 300;
var fill = Math.floor(width * rate)
this.contents.fillRect(x, y ,width,5,color1)
this.contents.gradientFillRect(x, y ,fill ,5,color2,color2)
};[/pre]
但是这个只是针对1个变量的槽值。。。一个个写实在是...
如果大佬能告诉我如何用$gameVariables.value(i)和i++来直接写一列的属性槽就更好了。