I want to make an integer array of 20 in size, and i want each part of the array to have a number between 1 and 20, but none can have the same number. Does anyone have an idea of how to make a trigger that can randomize the variables in this fashion?
You could do it the other way around, and take one out at random as needed:
Setup:
Set Count = 20
For each Integer A from 1 to Count
- Set Array[Integer A] = Integer A
Get a number:
Set TempInteger = Random integer between 1 and Count
do something with Array[TempInteger]
Set Array[TempInteger] = Array[Count]
Set Count = Count - 1
Alternatively, randomize the order inside the array:
For each Integer A from 1 to Count
- Set Integer1 = Random integer between 1 and Count
- Set Integer2 = Random integer between 1 and Count
- Set TempInteger = Array[Integer1]
- Set Array[Integer1] = Array[Integer2]
- Set Array[Integer2] = TempInteger
Can you convert that pseudo-code into WE format so I can visualize it better? Also, is there code in JASS that can make a loop repeat until a condition is met? If so that could be an easy way to do it by causing the loop to repeat until the other integers in the array no longer matches any of the other numbers.
The purpose is that I am making a map with 20 minigames, like Skibi's, and I want to randomize the minigames, but I don't want any minigame to be replayed until all have been played.
Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
@tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart