For those who know how to code, you should know what a for/while loop is.
For those who don’t, it’s basically a loop that continues repeating until either a certain condition is met (while loop), or until it iterates through something some amount of times (for loop).
They’re incredibly useful for any sort of code-like mechanism, and are almost necessary for a number of systems. For some reason, however, we haven’t actually made a guide on this yet. (I’m still really surprised we didn’t have these a long time ago)
The basic idea is this: we run a task, check if a certain condition is fulfilled, if not, we run it again.
We can actually do this with just this incredibly basic system:
SO HOW DO WE DO IT?
The trigger is the triggering thing. We can also substitute a counter in there instead if we don’t want any delay.
The counter can check for a property or item amount or something. Let’s say we’re using hooked property A. A starts at 10. The counter checks to see if A is above 0. When it is above 0, it will bounce the signal back to the trigger, along with decrementing the property’s hook. It then repeats 10 times, wow!
That’s literally it.
This is insane.
If you’ve ever decided against something because you didn’t have a for loop, time to reconsider!