JacobV
Member
So in my game, I have a system which randomly selects a set of attacks. In an object, I create 3 global variables: attack1, attack2, and attack3. I then run a timeline, which runs a script, which selects one of the attack timelines, and then assigns it to the attack1 variable. The first timeline then repeats the process for 2 and 3. Now that I have the set of attacks selected, I run the attack1 timeline. At the end of each attack timeline, it randomly chooses to run attack1, attack2, or attack3, and this forms a loop. This...does work. However, it's a very clunky system, and doesn't allow for much expansion; my goal is to have around 20 possible attacks in each set, and for the attacks to not get repeated; ie, if it runs attack1, it cannot run attack1 for the next attack. Does anyone have any ideas for how I can improve upon this system?