- Joined
- Mar 15, 2012
- Messages
- 1,743
- Reaction score
- 2,638
I'm trying to make a skill that has splash damage, here's what I have so far
<damage formula>
//POW = D6
var POW = Math.floor((Math.random() * 6) + 1);
value = ((POW*user.mat*2+user.atk)*user.mat)/(target.def+target.mat)
if(target !== targets[0]) {
value = value/3;
}
</damage formula>
<Custom Target Eval>
var targetpos;
for (var i = 0; i < foes.aliveMembers().length; ++i) {
var member = foes.aliveMembers();
if (member === target) targetpos = i;
}
targets.push(foes.aliveMembers()[targetpos]);
if(targetpos !== 0) {
targets.push(foes.aliveMembers()[targetpos-1]);
}
if(targetpos !== foes.aliveMembers().length) {
targets.push(foes.aliveMembers()[targetpos+1]);
}
</Custom Target Eval>
the only problem is "if(target !== targes[0])" if I don't run this then all three enemies take damage
From the front page:
NOTE: I'll only provide support for my own plugins and code that I, myself, have provided. This isn't because I disrespect other plugin makers or anything of the sort. If I did, I wouldn't go so far as to maximize compatibility with my plugins when possible. The reason behind is because of my lack of time, and I'd like to put my undivided attention to errors caused by my own plugins. That said, any modifications you've made to the plugins itself, any custom Lunatic Mode code you've made yourself that isn't provided by me, or problems with the source code will not be supported by me either.
---
Hello Yanfly.
I used skill note tag about <HP Cost: x> and <HP Cost: x%> from YEP_SkillCore but it didn't work.
But MP Cost & TP Cost work normally.
BASIC TROUBLE SHOOTING
1. Are all your plugins up to date? If they're not, download the updated versions from here: http://yanfly.moe/yep/changelog/
2. Did you rename any of their plugins from their default filenames? If you did, then the plugins won't work. Do NOT rename them.
3. Did you make sure all of the plugins are placed in order as http://yanfly.moe/yep/ inside of the Plugin Manager?
4. When you updated the plugin, did you /open up/ the plugin within the Plugin Manager?
You are getting the error because you updated the plugin and did not go into the plugin itself like the instructions here in the first video:http://yanfly.moe/yep/changelog/
Why is this important? Because whenever new parameters are added to a plugin upon a new update, you have to enter the plugin in order for the Plugin Manager to add those new parameters into your game. Otherwise, you will get undefined errors and "random" crashes. Skipping that step is not optional and is very crucial to getting updated plugins to work.
5. If you are using non-Yanfly plugins, turn off ALL of the non-Yanfly plugins to see if there are any conflicts.
6. If you are testing your project in Battle Test and aren't seeing any changes made after updating your plugin, make sure you -save- your project. RPG Maker MV does not carry over changes to Battle Test until you save your project.
---
Hey @Yanfly, just an incredibly minor thing to point out, but the "Plugin Updates 167~" article on your website doesn't include the "Common Event Menu" plugin when you choose to download all the plugins.
Also, do you have anything special planned for the 100th plugin?
Thanks, I'll get it updated.
---
Hello I'm having an issue with region restrictions.
i want an event to be able to pass through more than one region, regions 2 and 6 at the moment. Works fine for just 2, but if I add 6 the event no longer moves, it won't even move along the 2 region until it meets the 6 region. I looked in the help file for the plugin and have tried typing 2 6 2 6> 2,6 & 2, 6 in the plugin settings but no combination makes a difference.
What have i done wrong?
Thanks
If you're talking about the plugin parameters, it doesn't support multiple numbers.



