I have a variable in game that contains a word.
I wanna draw this word on the screen for each character
how would I go about doing this? its variable number 10
i declare the variable for the menu and set the in-game variable to that?
not sure where to start. i managed to lay out my menu but i dont know
how to add stuff beyond what the menu has to begin with...
can anyone help me?
//DISPLAY OF HEALTH, MANA, LEVEL, ICONS, CLASS ETC BELOW
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x
var y = rect.y
var width = rect.width - x - this.textPadding();
var lineHeight = this.lineHeight();
//variable for the morality
var morality = 'pure evil' (i dont know how to set it from the game variable....)
//width2 is the length of the bar
var width2 = 160;
//the actor name location
this.drawActorName(actor, x + 130, y + 30);
//the actor level location
this.drawActorLevel(actor, x, y + 100 + lineHeight * 1);
//the actors debuffs location
this.drawActorIcons(actor, x, y + lineHeight * 2);
//the actors class name location
this.drawActorClass(actor, x + 252, y -40 + lineHeight * 3);
//X and Y is position, width is length of the bars (lineHeight is the spacing between the bars)
this.drawActorHp(actor, x + 150, y + 47 + lineHeight, width2);
this.drawActorMp(actor, x + 150, y + 47 + lineHeight + 26, width2);
// this.drawActorHp(actor, x, y + lineHeight * 4, width2);
// this.drawActorMp(actor, x, y + lineHeight * 5, width2);
this.draw(morality, x, y); ?????
I wanna draw this word on the screen for each character
how would I go about doing this? its variable number 10
i declare the variable for the menu and set the in-game variable to that?
not sure where to start. i managed to lay out my menu but i dont know
how to add stuff beyond what the menu has to begin with...
can anyone help me?
//DISPLAY OF HEALTH, MANA, LEVEL, ICONS, CLASS ETC BELOW
Window_MenuStatus.prototype.drawItemStatus = function(index) {
var actor = $gameParty.members()[index];
var rect = this.itemRect(index);
var x = rect.x
var y = rect.y
var width = rect.width - x - this.textPadding();
var lineHeight = this.lineHeight();
//variable for the morality
var morality = 'pure evil' (i dont know how to set it from the game variable....)
//width2 is the length of the bar
var width2 = 160;
//the actor name location
this.drawActorName(actor, x + 130, y + 30);
//the actor level location
this.drawActorLevel(actor, x, y + 100 + lineHeight * 1);
//the actors debuffs location
this.drawActorIcons(actor, x, y + lineHeight * 2);
//the actors class name location
this.drawActorClass(actor, x + 252, y -40 + lineHeight * 3);
//X and Y is position, width is length of the bars (lineHeight is the spacing between the bars)
this.drawActorHp(actor, x + 150, y + 47 + lineHeight, width2);
this.drawActorMp(actor, x + 150, y + 47 + lineHeight + 26, width2);
// this.drawActorHp(actor, x, y + lineHeight * 4, width2);
// this.drawActorMp(actor, x, y + lineHeight * 5, width2);
this.draw(morality, x, y); ?????