How would I make something happen only when a specific number is randomly generated?

How would I make for example a character move every time a specific number is chosen? For example 1 - 20, number needed is 5

1 Like

Here’s the code.


Here you go

1 Like

Well dang, thats less complicated than the code I had or it could be more complicated since what I have is if random number 1 - 20 =/< 5 change creature1 phase by 1 (yes this does work, sure makes it a pain though to scroll through the code but this would make it harder)

Ty, this is the method I’ve been using for awhile, I was extremely tired when I wrote this thread and didn’t think about this one