@givirus its because of your script logic, maybe you dont call the function? OR you dont have proper error handling which results into certain parts of your script being skipped since they are inside an if statement. I encountered this problem many times in the past, you will need to handle errors and it'll will be most likely fixed, for the purpose of debugging you can use the "Log" function at several points to see where it will print it.
Loop section within a script random amount of times before moving on
-
Can someone provide an example code of looping a section within a script a random amount of times before moving on?
Thanks
-
@juniperberry said in Loop section within a script random amount of times before moving on:
Can someone provide an example code of looping a section within a script a random amount of times before moving on?
Thanks
Use the "for" loop and the "Random Number" action
-
Doesn't seem to be working, I want to run the script, then once it gets to a certain part, loop a section of the script, then once its looped the amount of random times, move on.
I'm putting the 'for loop' part before looped section and the current loop repetition after, but it doesn't work, just runs the script as if there isnt the 'for loop' included.
Cheers for any help
-
@juniperberry said in Loop section within a script random amount of times before moving on:
Doesn't seem to be working, I want to run the script, then once it gets to a certain part, loop a section of the script, then once its looped the amount of random times, move on.
I'm putting the 'for loop' part before looped section and the current loop repetition after, but it doesn't work, just runs the script as if there isnt the 'for loop' included.
Cheers for any help
-
thanks man!