- Joined
- Nov 25, 2016
- Messages
- 10
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hey, everyone. I'm making some skills for a Dark Knight, and I have one where the idea is that if the target has the fear state, it will become an instant skill, allowing the user to act again.
This is what I have in the note section of the skill. I will preface this by saying that I don't know Javascript like, at all:
<HP Cost: 15%>
<Instant Eval>
if (target.isStateAffected(30)) instant = true;
</Instant Eval>
if (target.isStateAffected(30)){
var gain = .15*user.mhp;
user.hp += gain;
target.removeState(30);
}
I basically copied and pasted the example from the help section in Yanfly's Instant Cast Plugin, but changed it from if the user's attack is equal to or more than 300 to what I have here. That section is the only section that messes up, as I've isolated each part of the note and tried again.
Any time I try to battle test, the test crashes, with the error code: require(...).Window.get(...).isDevToolsOpen is not a function.
Now, is this something with the Script, or is it something on my end, i.e. the code?
I don't really know Javascript all that well, but I do know Java. I've just taken to trying things out, and most of the time, they work. But if this is something with me, then what is it, and how do I fix it?
This is what I have in the note section of the skill. I will preface this by saying that I don't know Javascript like, at all:
<HP Cost: 15%>
<Instant Eval>
if (target.isStateAffected(30)) instant = true;
</Instant Eval>
if (target.isStateAffected(30)){
var gain = .15*user.mhp;
user.hp += gain;
target.removeState(30);
}
I basically copied and pasted the example from the help section in Yanfly's Instant Cast Plugin, but changed it from if the user's attack is equal to or more than 300 to what I have here. That section is the only section that messes up, as I've isolated each part of the note and tried again.
Any time I try to battle test, the test crashes, with the error code: require(...).Window.get(...).isDevToolsOpen is not a function.
Now, is this something with the Script, or is it something on my end, i.e. the code?
I don't really know Javascript all that well, but I do know Java. I've just taken to trying things out, and most of the time, they work. But if this is something with me, then what is it, and how do I fix it?

