| 10-07-2003, 05:32 AM | #1 |
I need to make a trigger (or series of triggers) so that: A. when a hero from team 1 brings a hero to a region, and stays there for 60 seconds without leaving said region, a building will be created for team 1. B. when a hero from team 2 brings a hero to that same region, and stays there for 60 seconds without leaving said region, a building will be created for team 2. C. If the building should fall, then either team 1 or team 2 has 60 sec to bring a hero to the region, and keep it there. If neither team brings a hero it will be recreated for its previous team. If they leave the region or die during this time the building will be recreated in accordance with its previous team alleigiance. However, if they do not leave the region or die, then a building will be created for the team that entered the region first and did not leave or die. Whereas A or B will be the first "claming", C must be able to happen multiple times, as the two teams will be fighting over control of these region(s). NEXT... I need the same process where there is more than 1 building involved. 2 buildings: A or B will create 2 buildings instead of 1. In C, only if both are destroyed will they either respawn for their previous owner, or, be converted to the other team's control. I am just having trouble with creating the code for one that uses more than 1 building. Any help is appreciated. Also, I want to create a building that sells units only when a hero from players 1-4 is nearby. I tried using the "mercenary camp" unit as a base unit then modifying it but it seems to want to sell to any player no matter what team they are on. Also I need to make a fountain of life that only heals players 1-4. |
| 10-07-2003, 06:22 AM | #2 |
for the fountain of life you could just figure out how much life it heals per second and create a trigger that every seconds removes that much health from a unit if it does not belong to player 1-4 as long as it is within range of the fountain. |
| 10-07-2003, 06:49 AM | #3 |
It can do remove -values for life :) I know how to do that, thx. That just takes a little trigger work. I will also add two conditions, one, that a unit owned by players 1-4 is actually in range, and two, that they are not at 100% health. This ensures that the trigger will not fire when it is not necessary, (anti-lag) =) |
