Started by
pepsi
on
Topic category: Help with MCreator software
heres my code:
https://imgur.com/a/QDOJx6P
the game crashes when the wait until random 6000-12000 ticks happens
Topic category: Help with MCreator software
heres my code:
https://imgur.com/a/QDOJx6P
the game crashes when the wait until random 6000-12000 ticks happens
crash log?
I slightly changed the code today but it probably wont make much of a difference and this was the crash report because the same thing happened:
https://pastebin.com/w5D2a0U4
You call your own procedure that calls its own procedure again infinitely which won't work right
ohhh, with the medication i added i want it to wait 6000-12000 ticks then send the popup and give the status effects then once that is done it loops then it loops again and again forever, how would i do this? I cant just use on tick update as the wait will continously be activated because it doesnt wait for the script to be finished before it starts again
I'm not totally sure exactly what you want here, but you need variable, something like "timer," that gets set to a random number (or integer) 6000-12000. Every tick (using another procedure set to run on tick update), set this number to itself minus 1. So, then have your procedure check if that number is equal to 0 and only run if that's the case. From there, set the variable to 6000-12000 again and it'll repeat.
ok 8BitBunnie, i have no idea why i didnt try this, -_- it came up in none of the tutorials i watched for loops in mcreator ill see if it works.
i simplified the code on what should work acording to 8BitBunnie but it just doesnt activate?! heres my code:
https://imgur.com/a/Wu2X2Ge