I'm looking for a plugin to work with YEP Battle Engine Core that displays either text or an icon when you strike an enemy (or enemy strikes you) and the attacked entity is "weak" to the attack or "resistant" to the attack.
Request: "Weakness" and "Resistant" popups in YEP Battle System.
JS Plugin RequestsBump!!
I am also looking for something like this.
If Element Rate > 100% (modifiable) and damage display, display "Weak" near enemy target
If Element Rate < 100% (modifiable) and damage display, display "Resist" near enemy target
*Tip: If multiple enemies weak/resist, all show
It would be nice if "Weak" and "Resist" were displayed as images from the System Folder like how "Miss" is so we can customized the look of "Weak" and "Resist" to the same style as "Miss."
If Element Rate > 100% (modifiable) and damage display, display "Weak" near enemy target
If Element Rate < 100% (modifiable) and damage display, display "Resist" near enemy target
*Tip: If multiple enemies weak/resist, all show
It would be nice if "Weak" and "Resist" were displayed as images from the System Folder like how "Miss" is so we can customized the look of "Weak" and "Resist" to the same style as "Miss."
I agree completely. I've tried to make the plugin myself, but I just cant seem to find the right functions to edit and include... plus im a JavaScript noob..
Bump!
I'm looking for a similar plugin. Not being able to know how effective attacks actually are: it drives me nuts.
I'm bumping this up again. Hopefully someone is able to make this..
Bump
A very very good request. I hope someone takes this on, because this is one of those features that should really be in every game that uses elements.
So, I made a plugin for this.
It's not yet really finished, since I don't know how to do some things.
The "unfinished part" is the displaying of Weakpoint/Resistance normally, because currently it displays them as popups that are just jumping very, very high.
And also the Damage.png is unfinished, because I had to have some placeholders, and I'm not an artist.
Maybe you could hire an artist to do that.
Here is the script and here is the picture that you will need to replace Damage.png with.
It's not yet really finished, since I don't know how to do some things.
The "unfinished part" is the displaying of Weakpoint/Resistance normally, because currently it displays them as popups that are just jumping very, very high.
And also the Damage.png is unfinished, because I had to have some placeholders, and I'm not an artist.
Maybe you could hire an artist to do that.
Here is the script and here is the picture that you will need to replace Damage.png with.
I can't get anything to pop up... I tried turning everything off except yanfly core plugins and still nothing.
Did you try to insert Yanfly Battle and turn off Yanfly Core? That was my environment...
Still nothing.
Upon research of where it may be going wrong, using console logs to see if they are working, your lines 90 and 97 are never returning true (I put colsole logs into the result of each if statement)
But your resultResist() and resultWeak() are indeed being called (proved by another console log).
Also, even when I set your this.createWeak() or this.createResist() to always happening (by removing the if portion) still nothing appears.
Upon research of where it may be going wrong, using console logs to see if they are working, your lines 90 and 97 are never returning true (I put colsole logs into the result of each if statement)
But your resultResist() and resultWeak() are indeed being called (proved by another console log).
Also, even when I set your this.createWeak() or this.createResist() to always happening (by removing the if portion) still nothing appears.
Do you have the custom Damage.png?
And where did you put it?
And did you edit Element Rate to the enemy you are testing with?
And where did you put it?
And did you edit Element Rate to the enemy you are testing with?
Yes, img/system, yes.
It recognizes the new Damage image, because I had different Damage font for the numbers before, now it is the font on the new custom Damage.
It recognizes the new Damage image, because I had different Damage font for the numbers before, now it is the font on the new custom Damage.
Can you go to resultWeak or resultResist and tell me the output of
console.log(this.elementRate(this._result.elementId))EDIT: Oops, forgot to log it to console
console.log(this.elementRate(this._result.elementId))EDIT: Oops, forgot to log it to console
(First, I made an initial error, I accidentally put the console logs AFTER the return of the resultWeak/Resist if statements, so they actually do return true when appropriate.)
Your request returns the appropriate values of the element in question (0.5 for a 50% element, 2 for a 200% element).
They still do not pop up.
Your request returns the appropriate values of the element in question (0.5 for a 50% element, 2 for a 200% element).
They still do not pop up.
Then maybe it's a parameter error.
Did you name the plugin YEP_WeakResist.js?
Can you tell me then outputs of :
Did you name the plugin YEP_WeakResist.js?
Can you tell me then outputs of :
Code:
console.log(this.elementRate(this._result.elementId) < weakResult);console.log(weakResult);
they come out as true and 1.2, as expected.
I think there has to be some issue with actually creating the popups.. since setting this.createWeak() or this.createResist() to always true did nothing.
I think there has to be some issue with actually creating the popups.. since setting this.createWeak() or this.createResist() to always true did nothing.
OH GOODNESS!
I forgot to update the plugin!
The same thing didn't work for me!
Try to download it now...
The thing is that
var weakJump = Number(_pluginParams["Weak Jump"]);var resistJump = Number(_pluginParams["Resist Jump"]);were
So it was interpreting weakJump and resistJump as Strings
I forgot to update the plugin!
The same thing didn't work for me!
Try to download it now...
The thing is that
var weakJump = Number(_pluginParams["Weak Jump"]);var resistJump = Number(_pluginParams["Resist Jump"]);were
Code:
var weakJump = _pluginParams["Weak Jump"];var resistJump = _pluginParams["Resist Jump"];
Original thread: https://forums.rpgmakerweb.com/threads/request-weakness-and-resistant-popups-in-yep-battle-system.47888/