• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Little Help

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2013
Messages
709
I suppose this post is a continuation of this post:
http://www.hiveworkshop.com/forums/...-find-odd-crashes-war3-xd-260655/#post2629778

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.
 
Level 14
Joined
Oct 18, 2013
Messages
709
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.
Top