HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Performing a specific action for many destructibles.

10-15-2007, 11:20 PM#1
The Kingpin
Well, here's my problem: I have a group of foot switch platforms, two different destructible types in a checkerboard pattern. I want to assign each an x:y value without having to type something 64 times. I tried enumerating the destructibles but unfortunately wc3 doesn't enumerate them in order.

Does anyone have a less tedious way of doing this? (vJass, textmacros wont cut it.)

Here's an example.

Click image for larger version

Name:	untitled.JPG
Views:	17
Size:	95.3 KB
ID:	29786
Attached Images
File type: jpguntitled.JPG (95.3 KB)
10-16-2007, 04:53 AM#2
TheSpanishInquisition
Create the destructables in nested loops, one for x and one for y. You then have the option of storing the data in a 'grid' struct (basically a 2D array) that would hold all of your cells, which could hold your x/y and be attached to each destructable as they are created.
10-16-2007, 07:54 PM#3
The Kingpin
Ah, thanks. That's much easier.