HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do you.....

08-03-2003, 02:28 PM#16
drezman
Quote:
Originally posted by Sorbitol
somehow i doubt this is possible. if WE let you refer to Region Array variables in the 'Unit enters region' event, than you could do it all in one trigger (by making a region for each Circle of Power and making 2 array variables, one for the regions, one for the CoPs and using the one trigger to perform the same action for them all) but you can't do that, and you said you dont want to use regions anyway, so i guess you're outta luck


i want to know how to make it like this if u cld tell me.
08-03-2003, 02:50 PM#17
Plasma[Blade]
If you'r enot willing to roll up your sleves and do some triggering, then you won't get very far in your map, and there is no hope for you.
08-03-2003, 05:08 PM#18
hodi
They are right, either take your time and make an awsome map or rush all over and make an average map for yourself, cause I doubt that anyone´s willing to play such a map.

Oh, and why don´t you just place Gold items instead of this system?

hodi
08-03-2003, 05:13 PM#19
Pesmerga
Its possible that the regions are treated as units, so use a 'Unit enters range' event and then give them gold.

Event - A unit enters 70 range to Circle Of Power (medium)
Actions - Remove (unit within range)
Actions - Give xx gold to player 1

There. Now stop complaining, its doubtful you will ever even get 50% done with your map with that attitude.
08-03-2003, 05:17 PM#20
hodi
Quote:
Originally posted by Pesmerga

Event - A unit enters 70 range to Circle Of Power (medium)
Actions - Remove (unit within range)
Actions - Give xx gold to player 1


Erm, wouldn´t this kill the unit that comes close to the Circle of Power instead of killing the Circle?
08-03-2003, 05:19 PM#21
Pesmerga
Replace the (unit within range) with something else. Try to locate the unit that is the circle of power.
08-03-2003, 06:21 PM#22
Raptor--
i don't know why everyone is bashing a guy for not wanting to make 100 regions that do the exact same thing, i wouldn't want to do that either

if the unit is non-changing u can do it the 'in range' way, if the unit is, you can 'pick all units in region centered at unit X with range x, y' as a periodical every so often and check if its a circle of power -- not as elegant, but meh
08-03-2003, 06:57 PM#23
Pesmerga
Just make a condition with my trigger - unit coming within range equals to footman
08-03-2003, 09:39 PM#24
drezman
how do you get the in range trigger?
08-03-2003, 10:28 PM#25
Newhydra
All of you are fools. This is how you do it:

-Trigger 1-
event: elapsed time is = .01 seconds
Conditions: none
Actions: pick every unit in region (playable map area) matching condition (unit type(matching unit) = circleofpower) and do actions:
-add event "unit enters region centered at point(position of picked unit) with size <length of circle> <height of circle>" to trigger 2

-Trigger 2-
Events: none
Conditions: ((Region centered at (Position of (Entering unit)) with size (200.00, 200.00)) contains (Random unit from (Units in ( Region centered at (Position of (Entering unit)) with size (200.00, 200.00)) matching ((Unit-type of (Matching unit)) Equal to Footman)))) Equal to True


Actions: Pick every unit in unit group units in region Region centered at (Position of (Entering unit)) with size (200.00, 200.00)) matching ((Unit-type of (Matching unit)) Equal to circleofpower)))) and do actions:
-Remove picked unit
add <amt of whatever> to player (owner(entering unit)) current gold




There. That should do what you need for all of your circles of power with only one trigger. I may have something not quite right since I didn't copy as text, but it should be close ;)


Oh, and that size(size (200.00, 200.00) ) may need to be adjusted depending on how close your circles are...
08-03-2003, 10:38 PM#26
drezman
what? where are half those triggers? "Actions: pick every unit in region (playable map area) matching condition (unit type(matching unit) = circleofpower) and do actions." i mean how do you do this stuff that NewHydra said?
08-03-2003, 10:57 PM#27
Newhydra
If you're not using tft some of those might not be there...
08-03-2003, 11:36 PM#28
drezman
i am using tft, i still cant find them
08-03-2003, 11:45 PM#29
Allanon[Druid]
Quote:
Originally posted by drezman
what? where are half those triggers? "Actions: pick every unit in region (playable map area) matching condition (unit type(matching unit) = circleofpower) and do actions." i mean how do you do this stuff that NewHydra said?


Pick every unit is under "Unit Group - Pick Every Unit in Group and Do Action" or something like that
08-04-2003, 12:57 AM#30
drezman
"Actions: pick every unit in region (playable map area) matching condition (unit type(matching unit) = circleofpower) and do actions:" how do you do this? Matching condition?? how?