Little Help

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2013
Messages
743
I suppose this post is a continuation of this post:
https://www.hiveworkshop.com/threads/i-find-odd-crashes-war3-xd.260655/post-2629778

So I was messing a little to do as Dr. Super Good suggested, but I'm kinda stuck. The issue is that slots get used more than once, which I don't want. Any help is appreciated ^^

Trigger: (MaxIndex is 10 by default b.c 10 slots for icons to be placed.)
  • Set TempInt = (Random integer number between 1 and MaxIndex)
  • Set UIWinPoint[MaxIndex] = UIWinPoint[TempInt]
  • Set MaxIndex = (MaxIndex - 1)
I need to clear locations btw so take that into consideration.
 
Kind of a pain to explain, but here we go; xD
Alright so there are 10 points, and i only want each one used once. I can't do anything recursive,so I'm trying to make a list of points that will get taken out of the list after being used, to assure a valid point is always selected. When a point is selected, I reduce the size of the list (MaxIndex). TempInt is the point that was selected. So I set the last point in the list equal to the selected point, then I reduce the size of the index.

So basically, I need to make it so that the selected point cannot be picked again, but i'm stumped for some reason on pulling that off >.<
 
Status
Not open for further replies.
Back
Top