assume tmp and i are local variables of type integer.
Pick Each Integer From 0 to (size of array - 1)
Set i = Random integer from 0 to (size of array - 1)
Set tmp = Array[i]
Set Array[i] = Array[(picked integer)]
Set Array[(Picked integer)] = tmp
to be honest though if you're getting trigger errors and can't figure out what's wrong then I think you just don't understand some of the fundamentals of how triggers (or programming in general) work. maybe go through some tutorials or something to get a better understanding.
If mapping since day 1 of SC1 -> WC3 - > TFT -> SC2 doesn't count for some measure of fundamental understanding, I'm not sure what community I am in anymore.
the value assigned to the IntegerOrder will remain the same, but the order of the IntegerOrder will be randomly re-ordered using 1-50 "slots" per say.
My goal is to create a virtual table and randomize its order. Then, I return values based on 1 through 50, which has been randomized for the map I am creating.
0
Do you plan on having an idle stand animation? Because... it's a badass model. :P Standing completely frozen just looks odd.
0
The Tyrant is awesome. I love how the textures are similar to that of other zerg units. It fits right in.
How long have you been modeling, if I may ask?
0
[ I've decided to remove the crap that sucks. Look for new things at the end of this thread ]
0
If mapping since day 1 of SC1 -> WC3 - > TFT -> SC2 doesn't count for some measure of fundamental understanding, I'm not sure what community I am in anymore.
However, thank you for the input.
--
I think I understand what to do now.
0
I attempted what I thought it was you suggested, and got nothing but trigger errors for an hour.
And then I tried what the 1st suggestion was... and got trigger errors again. I deleted both triggers and am starting from scratch.
Again: I am reoganizing an array, but the arrays being reorganized (randomly) still hold the same values. Grr :P
0
I need mathmatical help. Is there a way to randomize an array in an integer (in theory, reorganizing it) without creating duplicate values?
For example:
Make variable "IntegerOrder[player#][loop50]" = "Integer_id_number[player#][loop50]"
go to:
variable "IntegerOrder[player#][randomized reordering]" = "Integer_id_number[player#][loop50]"
the value assigned to the IntegerOrder will remain the same, but the order of the IntegerOrder will be randomly re-ordered using 1-50 "slots" per say.
My goal is to create a virtual table and randomize its order. Then, I return values based on 1 through 50, which has been randomized for the map I am creating.
I hope I made a little sense....