I'm using yanfly's target core and i was wondering if you can do some shenanigans that allows it to use the <repeat> function based on a variable so a move can repeat more times under the certain conditions?
www.yanfly.moe
MV Can you use Target Core to have a move repeat a variable amount of times
Javascript/Plugin SupportI think you would need yanflys action sequence plugins to do this. I believe that ones is a payed plugin these days, if you do not own it already. With those plugins, you can basically put animations in the battle skills, like move the battlers around. But you can also make skills repeat or do additional damage.
If you have these plugins, I'd start looking into those, if I were you. They might not be the easiest plugins to start with, but once you got the hang of it they will be a great help with ideas like yours.
For MV users, I do recommend buying the full yanfly library all at once, instead of buying the plugins one by one. I've seen the full collection for as cheap as $5.
Sorry, can't link to the full pack, because the site or even the name of the site, is banned by this forum. You might know it, though. It starts with a P and ends on ATREON. 😛 Just look for Yanfly there.
If you have these plugins, I'd start looking into those, if I were you. They might not be the easiest plugins to start with, but once you got the hang of it they will be a great help with ideas like yours.
For MV users, I do recommend buying the full yanfly library all at once, instead of buying the plugins one by one. I've seen the full collection for as cheap as $5.
Sorry, can't link to the full pack, because the site or even the name of the site, is banned by this forum. You might know it, though. It starts with a P and ends on ATREON. 😛 Just look for Yanfly there.
I have the plugins thats not an issue, how would i go about making it repeat equal to a variable
Well, that is a bit more complicated. 😛 I'd have to experiment with this myself before I can answer that question. I would do so, if I had more time. Maybe I can do this in the weekend.
Until then, you should study the help section of those plugins yourself, too. Once I have time, I will try to figure out how to ass a condition to the sequence. When we found how to add a condition, then the condition should be "$gameVariables.value(1) > 1" and not "v[1] > 1"
I hope that helps you start your journey. If this is not solved before the weekend, I'll start up MV and figure this out with you.
Good luck.
Until then, you should study the help section of those plugins yourself, too. Once I have time, I will try to figure out how to ass a condition to the sequence. When we found how to add a condition, then the condition should be "$gameVariables.value(1) > 1" and not "v[1] > 1"
I hope that helps you start your journey. If this is not solved before the weekend, I'll start up MV and figure this out with you.
Good luck.
You actually need one more add-on plugin - this adds loop functionality to action sequences:
forums.rpgmakerweb.com
I'll say variable 1 is the number of times you want to attack, and variable 5 is unused by anything else.
Then you can do:
where obviously the commands to perform the attack is whatever you want.
Action Sequence Loops 1.10
Action Sequence Loops 1.10 SergeofBIBEK Hey everyone! I made a plugin that I think would be useful to hardcore action sequence makers! **Introduction** This is a really simple plugin. It allows you to loop within action sequences. **How to Set Up** Place this plugin below...
forums.rpgmakerweb.com
I'll say variable 1 is the number of times you want to attack, and variable 5 is unused by anything else.
Then you can do:
Code:
change variable 5 = 0
while $gameVariables.value(5) < $gameVariables.value(1)
action effect
action animation
wait for animation
change variable 5 + 1
end while
where obviously the commands to perform the attack is whatever you want.
You can also use the <custom target eval> in Yanfly's target core. It would look something like this :
Replace 'x' with your variable ID, and set that variable equal to number of times you want the skill to hit. I haven't tested this with aoe skills, as a heads up.
Only downside, it requires some setup with the action sequence. And by that, I mean you need to make sure your skill user returns to their 'attack' position after each hit. Otherwise your sequence looks funky.
Just an alternative idea to adding another plugin 🙂
<Custom Target Eval>
var z = $gameVariables.value(x);
for (var i = 0; i < z; ++i) {
targets.push(target);
}
</Custom Target Eval>
var z = $gameVariables.value(x);
for (var i = 0; i < z; ++i) {
targets.push(target);
}
</Custom Target Eval>
Replace 'x' with your variable ID, and set that variable equal to number of times you want the skill to hit. I haven't tested this with aoe skills, as a heads up.
Only downside, it requires some setup with the action sequence. And by that, I mean you need to make sure your skill user returns to their 'attack' position after each hit. Otherwise your sequence looks funky.
Just an alternative idea to adding another plugin 🙂
Moved to: Plugin Support
@Cythera That's a pretty clever notion. I never thought of using that tag to manipulate the target list before getting into the action sequence.
Original thread: https://forums.rpgmakerweb.com/threads/can-you-use-target-core-to-have-a-move-repeat-a-variable-amount-of-times.157030/