I edited my reply.
Also, it shows 2.1 instead of 2.2 in the desc. That was what I was pointing out. Lol
Description_Window.prototype.drawCastCost = function(skill, x, y, widthLimit) {
var actor = Game_BattlerBase.prototype;//edit Afaryz //actor in function
let cdText = this.getSkillCooldownText(skill);
if (!skill.mpCost && !skill.tpCost && cdText.length === 0)
return;
let text = "";
if (skill.mpCost) {
text += skill.mpCost + " \\C[" + (Yanfly.Param && Yanfly.Param.ColorMpCost || 23) + "]" +
actor.mpA+ "\\C"; //actor war vorher TextManager
}
if (skill.mpCost && skill.tpCost)
text += ", ";
if (skill.tpCost) {
text += skill.tpCost + " \\C[" + (Yanfly.Param && Yanfly.Param.ColorTpCost || 29) + "]" +
TextManager.tpA + "\\C";
}
if (cdText.length > 0) {
if (text.length > 0)
text += ", ";
text += cdText;
}
this.drawTextDecreased(text, x, y, widthLimit);
};
Game_BattlerBase.prototype.drawCastCost = function() {
//code here
};Thanks ShadowDragon for your fast reply. The Description_Window.prototype.drawCastCost function is out of the other plugin. It is a custom Window made by the skilltree author. Sadly I don't understand your reply. I do have some experience in coding, but in another languages.
let mpName = this._actor && this._actor.mpA ? this._actor.mpA : TextManager.mpA;
Totally works! You are the best 🙂 🙂
Oh okay, would love to play it. You will publish it soon?
So you're saying that, say, a "Shiny Stone" (sample item name) might be in the "Mystery Box" (sample loot box name) with a limited quantity of say 5, and after getting 5 Shiny Tones from the Mystery Box on one map, going to another map yields another 5 Shiny Stones from the type of box, the Mystery Box?
Correct. It's ok. So far I didn't notice anything else wrong but who knows. You might fix something I thought was a feature. Lol.
You sure it isn't two different-but-similar boxes? The loot box data structure is keyed entirely by the box name, so map ids shouldn't affect it at all.
Could be. Trying to see if doing a new game will change anything. I'll check, but I'm 95% sure it's the same loot box.
Original thread: https://forums.rpgmakerweb.com/threads/burned.109451/