Hello all! After my last query here, I got around getting some of the Visustella plugins and man, things have been going smoothly! But I found a little roadblock once again...
I've read in a past thread that you can use Custom Action Sequence to make random repeat attacks (say, "shoot your target between 2-5 times") but either I'm too dense to understand the process or I'm missing something. I've tried the Repeat Hits notetag with the Math.randomInt and they don't work and I don't see anything in the plugin commands that can be randomized. Any insight will be appreciated! <3
Also apologies if this is misplaced! Lmk if I need to revisit that thread or move this elsewhere!
Put in your action sequence control variable random and loop your attack, break loop depending on that variable.
EDIT: count inside loops with another variable the times and compare to the random roll
Oooh, I see! But I'm sorry I'm having some difficulty understanding the second part, using another variable to count the loops and compare against the roll... Could you go into a bit more detail?
In the loop you add +1 to a variable X to count how many times the loop has run (set the variable to 0 before the loop). Then you compare it to your random roll variable to check when to break the loop. Like conditional:
if variable X is bigger or equal to the random roll variable -> break loop
Your break loop is outside of the loop (under the Repeat Above), so your loop just keeps running indefinitely.
(Also, you don't need the If variable 1 >= 1, because you set it to 1-5, so the condition is always true. And I wouldn't use switches or variables in the 1-10 range, because many times plugins use those...unless you've checked that no plugin is using those).
EDIT: And if you want it to look good, you need to add more action sequence commands in the loop.
EDIT2: And the check isn't "if variable 2 == 5", it should be "if variable 2 == variable 1"
Yeah, show screenshots of the skill and other stuff (without cropping).
I tested it with the loop and without any waits and it seems to work fine and all the damage numbers pop like normal on top of each other.
Put in your skill notes the notetag <Custom Action Sequence>
EDIT: don't know why you get a variable value of 0 when you set it to 1-5 though, as the common event would run even if it's not designated as an action sequence (did you check the new variables 39 and 40, or just copy what Canned Dinosaur posted?)
Cool.
If you don't put the notetag, it just runs the skill as "normal", so it does the hit and then runs the common event. However, trying to run the BC plugin command action effect at that point, I guess it can't reference the action anymore and does nothing (that's why you only saw the one normal hit). But in the middle of the action sequence you can use the command.
Mmmm, I see... I'll keep fiddling with this and keep learning more. Thank you so much for being so patient with me <3