| 05-27-2005, 06:43 AM | #1 |
Well, im makeing a cube D map. (im using the corp's units... yeah, im lazy) so i can do allot of the triggers. but its the moveing units im haveing trouble with. now remember: im trying to make it FLAWLESS, using only 1 team for spawned monsters. so i have all the regons made. now, i can use mana and custom value to store data on monsters. currently, custom value is being used to detect the "owning" player, and mana is being used along side a reigon arrary containing all a players reigons. now what i need help with, is how the heck do i detect when to order a unit to move to the next reigon?! i could always make a trigger with events for EVERY reigon on the map!! but im trying to find a better way. each unit knows where he is going next, but i dont have a way to know when to tell them to go there! edit: ive redone the metod im using to detect where to move a unit, but i still need a way to detect when a unit enters a reigon in a generic fasion (i need to know that a unit has enterd any reigon, and be able to know what reigon in the actions; without makeing a shitload of triggers.) |
| 05-27-2005, 05:18 PM | #2 |
its pretty simple all you need to do is create one triiger that has the event: unit enter<whatever region> except put one each for each regions then have the conditions so it only fires for certain units then for the actions: unit - order unit to move to region array (mana of entering unit) you said that you were sunig an array so jsut order teh unit to move to the region with the same array number as its mana. If you this didn't hep go look at one of the old Arkgul TD maps, i think thats how you want to do it. |
| 05-27-2005, 08:33 PM | #3 |
that.... dident help at all... i said i DONT wanan make an event for every reigon, dident i? X_x |
| 05-27-2005, 09:31 PM | #4 |
i have it! ima genius! periodic event pick all untis owned by monsites matchin reigon reg_var[mana_of_picked_unit] contains picked unit add 1 to mana of picked unit order picekd unti to move to reg_var[mana_of_picked_unit] GENIUS! |
