| 04-12-2003, 07:39 AM | #1 |
well...yeah making a map, trying to get the first bit done, and I hit a brick all that I should have seen coming miles away: how do I make enemy generators? I took a gander at warchasers to see how they did it, and a kinna got the idea. and could see the code, but it didnt make enough sense to actually be transposed into something I could use I took a swing or two at it without any luck, so...any help? if youd like to know what im going to be using this on, take a gander at the map section for the only thread started by me |
| 04-12-2003, 03:21 PM | #2 |
I haven't played warchasers for a long time, but I think this is pretty much what you want. Events Time- Every X seconds Conditions Boolean- (generator) is dead equal to false Integer- Units of (generated units) in (nearby region) is less than or equal to (however many units the max is) Events Create X amount of (generated units) at position of (generator) Is this what you want? |
| 04-12-2003, 04:44 PM | #3 |
Guest | Please clarify I dont quite understand, Do you mean where it creates unit to go attack? Like in DOTA? I havent played warchasers yet... if what you want is where the units will be created and then go attack at a certin point, just use every X seconds Create X amount of X at X faceing angle, or point... Then wait .1 seconds select all units in region (where units were created) and do following: Order unit to attack-move to X (desired region of attack) |
| 04-12-2003, 08:31 PM | #4 |
no, not like that but thanks mystery for how to stop them genorating ( I had overlooked that seeing as I have nothing to test yet) I want several (around 12) designated buildings in the area t o creat soldiers when a certain amount die (if [soldiernum] is [less than] [X] then [Creat soldier]) that would be the text for carrying out the actions as best I can figure, but Im not sure how to creat the soldier a better referance would be gauntlet legends, how they have the buildings that enemies come out of until you destroy them that make things some clearer? |
| 04-13-2003, 02:59 AM | #5 |
First create a bunch of units at near the structure, next put them all into a unit group. Now create a trigger that detects when a unit of player(x) dies, check to see if its in the unit group, if so remove it from the unitgroup, now add an an if clause, checking to see the number of units in the unit group is less then a number, if so you will create a unit, and put into the corresponding unit-group. make sure to check that the structure is still alive, I suggest using unit-group arrays, with parallel indexes to the structures. |
