HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Lanes

01-07-2007, 12:03 AM#1
warbucket
The problem I have may actually be quit heavy, even with the collective super power of this community, so I'll just explain a bit of it at a time.

The map I'm working on is much like DotA in aspects of lane use, and general concept, and heavily influenced by EoTA, concerning its battlefield appearance and unique game styles. Much of the terrain is being developed, and general scripts are completed.

A player builds a "unit" (15 soldiers for infantry/8 for cavalry). All players own buildings collectively. Once selecting a unit to train, they continue to be trained. Some times a player will switch off production when the army's population is spread too thin.

This is what I'm stuck on for now:
I need help on a trigger which will send the most recently trained unit into the closest lane. All encampments (with production buildings in a radius of 500) are near the map's five lanes. I need help on a trigger which will send the nearest unit trained to the "lane" closest to the barracks training those units.
If you don't quite understand the problem, or need additional information, feel free to ask. This is probably a large problem, so I don't expect anything too much, but all help is appreciated. If you want the map... , then I don't mind posting it.
01-07-2007, 12:54 AM#2
rulerofiron99
You send the map, I send the trigger
01-07-2007, 12:58 AM#3
TopWolf
Maybe place a reigion under the barracks and a reigion in the lane closest to it so that when a barracks produces a unit you can just trigger to go to that lane. Just copy the method for all the lanes.
01-07-2007, 08:12 PM#4
warbucket
The problem is that the barracks isn't there initially, and must be built on a "plot". The map is attached.
Attached Files
File type: w3x(12)Experimental.w3x (997.6 KB)
01-08-2007, 12:16 AM#5
Pyrogasm
So, put regions at the center of the start of each lane and make a trigger that detects when a barracks is placed, and checks the distance between the barracks and all the regions at the spawn point. Then redirect the units as necessary.
01-08-2007, 03:52 AM#6
warbucket
Ok, I will.
01-08-2007, 04:23 AM#7
Pyrogasm
I hope that works; if you have any questions I can elaborate further... maybe even post the trigger for you.
01-08-2007, 04:38 AM#8
rulerofiron99
Well I've been playing around with the triggers and stuff a bit, and I got it all to work fine. I also removed all the memory leaks in your GUI code.

Happy mapping!

PS: Don't be shy to ask more questions
Attached Files
File type: w3x%2812%29Experimental.w3x (1004.8 KB)
01-10-2007, 04:30 AM#9
warbucket
I've been really surprised lately at the amount of help this community gives out; your eagerness is nothing I've ever seen on other forums. I appreciate this immensely. Hopefully, my triggering skills will pick up and I can help others too.
01-10-2007, 11:10 AM#10
Toink
Quote:
the amount of help this community gives out; your eagerness is nothing I've ever seen on other forums.

You are lucky your not like one of the guys requesting in the artist's discussion forums, they rarely get help..
01-11-2007, 12:49 PM#11
rulerofiron99
The help I've asked for at this forum have either been completely ignored or been insulted and stuff. So I generally only help other people, and spend hours fixing my own problems ^^
01-12-2007, 04:57 AM#12
warbucket
Rulerofiron99, I sent you a pm with a question.

I copied your triggers from the map you made to a second, updated version. If you could check it out, it would be great. For some reason, whenever a unit is trained, it always goes to the BottomCorner region.

I'm looking into it now.
Attached Files
File type: w3x(12)Experimental.w3x (1001.4 KB)
01-12-2007, 05:39 AM#13
Av3n
... Every1 is on holiday.

-Av3n
01-12-2007, 07:10 AM#14
rulerofiron99
Errr, complete random off-topic spam?

EDIT:
Fixed yer stuff. The unit settings were mucked up, and the triggers referring to units were also mucked up. Just look around the triggers to see how its meant to be done
Attached Files
File type: w3x%2812%29Experimental.w3x (1001.8 KB)
01-12-2007, 01:17 PM#15
Naakaloh
Sorry for being lazy and not looking at the map, (Being in the library has to do with part of it.) but shouldn't they go to the nearest lane on their own? I guess I'm assuming that your lanes are generally pretty straight and the units would have no reason to deviate.