I want to add a popup for a custom state, which I know you can do with SRD Battle Popup Customizer but I don't understand how to do it. It says to do this:
If this condition is set to true, an Custom Popup will appear. Input a Javascript eval; "result" is a Game_ActionResult.
I've been trying to figure out what this means. Where do I put the code? I went into the javascript file to the section called Game_ActionResult but I'm not sure where to put it and what exactly to type. The name of the state is stun so I tried putting it at the end like this:
var _Game_ActionResult_clear = Game_ActionResult.prototype.clear;
Game_ActionResult.prototype.clear = function() {
_Game_ActionResult_clear.apply(this, arguments);
this.guarded = false;
this.elementRate = 1;
eval; "stun"
};
I also tried not putting quotes around stun, or adding "is a Game_ActionResult" after it which I assume is wrong. This is the only code in the Game_ActionResult section of the javascript file. I'm also confused about what to put in the "Custom 1 Condition" part in the menu for the plugin. I tried "result.stun" and "result.stun && result.used && !result.missed". Am I doing everything wrong? Does anyone use this plugin and has gotten this to work and can help?
EDIT: I watched the plugin creator's youtube video about it and read all the comments and now I'm even more confused. He doesn't seem to give any info about it for people who aren't familiar with javascript.
If this condition is set to true, an Custom Popup will appear. Input a Javascript eval; "result" is a Game_ActionResult.
I've been trying to figure out what this means. Where do I put the code? I went into the javascript file to the section called Game_ActionResult but I'm not sure where to put it and what exactly to type. The name of the state is stun so I tried putting it at the end like this:
var _Game_ActionResult_clear = Game_ActionResult.prototype.clear;
Game_ActionResult.prototype.clear = function() {
_Game_ActionResult_clear.apply(this, arguments);
this.guarded = false;
this.elementRate = 1;
eval; "stun"
};
I also tried not putting quotes around stun, or adding "is a Game_ActionResult" after it which I assume is wrong. This is the only code in the Game_ActionResult section of the javascript file. I'm also confused about what to put in the "Custom 1 Condition" part in the menu for the plugin. I tried "result.stun" and "result.stun && result.used && !result.missed". Am I doing everything wrong? Does anyone use this plugin and has gotten this to work and can help?
EDIT: I watched the plugin creator's youtube video about it and read all the comments and now I'm even more confused. He doesn't seem to give any info about it for people who aren't familiar with javascript.