lets say i have... a integer with 7 arrays called:
int[0, int[1]...int[6]
how do i "pick" a random int[x] of these, without being able to pick the same int twice?
tempBoolean is type "Boolean" with initial value of False
tempBoolean2 is an Array with a size of 7 and of type "Boolean" with initial value of False.
RandomInt is type "Integer" with initial value of 0
Trigger:
Custom script: loop
Custom script: exitwhen (udg_tempBoolean == true)
Set RandomInt = (Random integer number between 0 and 6)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
tempBoolean2[RandomInt] Equal to False
Then - Actions
Custom script: set udg_tempBoolean = true
Set tempBoolean2[RandomInt] = True
Else - Actions
Custom script: endloop
This was done free hand, if you'd like to know where to put your actions at to make this work for your game, feel free to PM me. And I'll make it look neater. (I'll make it JASS too.)
yes thats right, its just picking one and setting the last int in this list to this position. kind of permutation i think.
the example by failenx just picks a random slot until it hits a free slot. that can work, but it could also go horribly wrong, remember the random numbers in warcraft III are not really random...
well i dont think i have to make a jass example, the code is not too complicated and you can learn by doing
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
I think we need to add something to the bottom of the front page that shows the Headline News forum that has a link to go to the News Forum Index so people can see there is more news. Do you guys see what I am saying, lets say you read all the articles on the front page and you get to the end and it just ends, no kind of link for MOAR!
Finally finding about some of the bots that are flooding the users online - bytespider apparently is a huge offender here - ignores robots.txt and comes in from a ton of different IPs
Ghan has said he has fixed this. Monovertex please confirm this fix. This was only a problem with people that had signatures in the upper levels like not the special members but the respected members.