Thanks!! I was really waiting for this!! Now is there a way to use lunatic mode to make a "Detect" skill that show all steallable items from an enemy? Something like the libra you did before. Maybe you could do this in the next Tips and Tricks video 😉 Thanks for the Plugin Yanfly.
I was wondering why you didn't put in the icon of the stolen item, and was about to do it myself, when I was quickly reminded why you didn't: that annoying thing where DrawTextEx doesn't easily center and DrawText does, but doesn't do much of anything else interesting.
Edit: That said, centering is not impossible with DrawTextEx... you just kinda have to do it yourself! (Well, centering Message Boxes is still kind of a pain.) May I recommend the following to those who want icons (like I do)?
Window_BattleLog.prototype.drawCenterLine = function(index) {
var text = this._lines[index].replace('<CENTER>', '');
var rect = this.itemRectForText(index);
this.contents.clearRect(rect.x, rect.y, rect.width, rect.height);
var textWidth = this.textWidthEx(text);
var centeredX = rect.x + (rect.width - textWidth) / 2
this.drawTextEx(text, centeredX, rect.y);
};
Game_Action.prototype.getStealableItem = function(target, stealable) {
stealable.isStolen = true;
var id = stealable.id;
switch (stealable.type) {
case 'item':
var item = $dataItems[id];
this.playStealSound(item.stealSound);
$gameParty.gainItem(item, 1);
var name = "\\i[" + item.iconIndex + "]" + item.name;
this.afterStealEffect(target, item);
break;
case 'weapon':
var item = $dataWeapons[id];
this.playStealSound(item.stealSound);
$gameParty.gainItem(item, 1);
var name = "\\i[" + item.iconIndex + "]" + item.name;
this.afterStealEffect(target, item);
break;
case 'armor':
var item = $dataArmors[id];
this.playStealSound(item.stealSound);
$gameParty.gainItem(item, 1);
var name = "\\i[" + item.iconIndex + "]" + item.name;
this.afterStealEffect(target, item);
break;
case 'gold':
$gameParty.gainGold(id);
this.playStealSound(Yanfly.Param.StealSEGold);
var fmt = Yanfly.Param.StealGold;
var name = fmt.format(Yanfly.Util.toGroup(id), TextManager.currencyUnit);
break;
}
var fmt = Yanfly.Param.StealSuccess;
if (fmt === '') return;
var text = fmt.format(this.subject().name(), target.name(), name);
this.displayStealText(text);
};
(The former replaces a function in BattleEngineCore.)
On CTB combat system..
I'm a beginner, so a lot of these formulas are hard to understand for me yet. I hope u can help me to improve my skills.
So, I installed the YEP_X_BattleSysCTB plug-in from Yanfly and I tried to run it on my game.
I designed the skills system in a way that some skills are instantly casted by the actor (a shot for example) at his turn, and others skills have to wait 'x' turns before they can be casted (a shield for example). I read that this is influenced by the 'speed' value of the skill, so I changed them to negative value (the ones I want to be casted with delay)
But when I run the battle test, the skills that need to wait before the actor execute them (the ones with negative value) dont act as I expect: the actor cast them immediatly and then it go at the bottom of the line.
Do I think wrong if I expect to see that the actor go backwards some ‘x’ turns when I choose (and execute) the skill and then he automatically cast the skill when his turn come?
My classes have AGI like 20 to 30 at level 1 and around 200-300 at their max level (99)
After some tweaks around values in Full Gauge and Full Turn I dont see anychange during the test in the battle window. Maybe this isnt the battlesystem that I have to adopt for what I want to do?
Thanks in advance for the help 🙂
Hi everyone!
I want to know if someone know who to tweak the Time a Message is shown in the Battle Log with Yanfly Plugins?
Right now, I'm doing a Mug attack and everything work fine, but I can't find where to tweak the time for the message shown when my character mug a enemy.
It's unreadeable because it go so fast right now... I just want to give the player the chance to see if he have succeed his action.
Can someone help me on this one?
thank you 😀
Lovely plugins.
For your gab window, there seems to be an issue - if it is my user error, I can't find it.
I have gab in a common event with:
GabText \I[314] + \v[23] gold
ShowGab
I can repeatedly call this event. It runs after picking up some gold. Shows a gold icon, then a variable number of gold.
It works on the first one, but nothing after. No matter how long I wait, anything after the first does not show.
I tried ForceGab, but it didn't do anything. Clearing doesn't seem like it would do what I'd want.
Basically, it isn't queueing the gabs/playing after the first for some reason.
Thanks if this can be resolved!