| 09-08-2007, 08:09 PM | #1 |
How would i make a point equal every spot in map area... like every cordinate on the map... like if i want to make a unit in every spot... or something like that... well.. this dose like horizontly Trigger: any ideas? |
| 09-08-2007, 08:35 PM | #2 |
...learn how triggers work. Please. Look at tutorials for basic triggering. |
| 09-08-2007, 08:36 PM | #3 |
You would basically need two loops. An Integer A loop for the X coordinates, and an Integer B loop for the Y coordinates. Put one inside the other, and then it should do that for you. |
| 09-08-2007, 09:06 PM | #4 |
A point equals a point. A point does not equal 10000 points. |
| 09-08-2007, 09:09 PM | #5 |
Just curious... but couldn't this eat up so much memory that your computer explodes? |
| 09-08-2007, 10:29 PM | #6 | |
Actually, your's does it in a diagonal line with slope 1 through the center of the map. Also, I can't fathom the use of resetting a single point to all of those locations. If you really need it, wouldn't loading to an array be the wiser option? Quote:
|
| 09-09-2007, 03:56 AM | #8 |
Trigger: Set trackpoint = (Point((Real((Integer A))), (Real((Integer A)))))Use this -- Trigger: Set trackpoint = (Point((Real((Integer A))), (Real((Integer B)))))Also, just so you know, this is probably going to smack OP limit very quickly. Consider doing this in chunks of 50 or something to keep it reasonable. |
| 09-09-2007, 05:13 AM | #9 |
You will be running it 49 million times (49,000,000) If you plan to do it without hitting the op limit, I suggest you use a timer to do it over a few seconds instead of all at once. |
| 09-09-2007, 06:40 AM | #10 |
How about inserting a Wait-Function into your trigger? like this? Trigger: It would take this function about 23 Minutes to load, if it wouldn't also take time to run one loop 7000 times. |
| 09-09-2007, 06:48 AM | #11 |
Or you could do it on a 0.01 second timer, and have it take a minute and a half :P Even better, 2 seperate timers (one negative and one positive), meaning 40 seconds or so. |
| 09-09-2007, 06:22 PM | #13 |
...You cant have 0.01 second waits. You need to have 2 seperate triggers, one starting a timer and one being run when the timer expires. |
| 09-09-2007, 07:51 PM | #15 |
Waits won't go under ~0.1 seconds. |
