| 07-17-2004, 03:40 PM | #1 |
In my map, players will be able to select a hero. There then will be 2 teams of heroes. There will be regions located throughout the map, I want to make it possible so that when a particular team enters a certain region, the region is somehow flagged as that particular teams, they "own" it. I was thinking of putting flags or something in the middle of each region to tell the team that this region belongs to them. When I've looked at the map editor I saw no way for me to make it so when a unit enters a region, something happens. Does anyone know how todo this ? Sorren |
| 07-17-2004, 03:53 PM | #2 |
I don't udnerstand what your problem is. The "unit enters region" event is quite clearly... well... there. |
| 07-17-2004, 04:07 PM | #3 | |
Ok, now that a unit from either team has entered a region, how can I desginate that region as that units teams ? Its kinda like controlling a waypoint, when the unit enters that region, I need to someone figure out how to make it belong to that units team, either by flagging it or some other way. This is what I'm having trouble with, when a unit enters the region I need to figure out a way for that region to belong to the entering units team. Sorren Quote:
|
| 07-17-2004, 06:10 PM | #4 |
You'll have to set a variable each time a rect is taken over. There are many ways to do that. Once you have a variable to indicate possesion of a rect, you can do your team-specific triggers. |
| 07-17-2004, 07:07 PM | #5 |
Create a unit, like an icecrow obelisk or something like it on the midle of each region, set it initialy owned by neutral passive. Just do this: Events-a unit enters(your region) Actions-Unit change owner of (the unit) to owner of triggering unit. Doing this, you basically say that the owner of the unit "owns" the region, if you use units like critters on your map, just add a condition to check the owner of the unit, if you use this for victory conditions, just do a variable for each player and set it to+1 when it owns the region, the do this trigger to set it down when it loses the region: Event-a unit changes owner Action-set variable OwnedRegions[player number of previos owner](this is a array variable, set it on map initialization to make it correspond to the number of each player, it will be easy to do by this way), to OwnedRegions[player number of previos owner] - 1. You can also add text messages, ping minimap and other things. |
