| 07-31-2002, 02:31 AM | #1 |
Guest | I am working on a madness map. I need to check their kills so everytime they have 50 kills they get a hero credit. Now i could easily do it so it checks 50, 100, 150, 200 and so on but the game goes to 2000 and to have to do that for every player would be insane so is there a way to check if their number of kills is a multipul of 50? thanks! |
| 07-31-2002, 02:43 AM | #2 |
Guest | Well i got it to loop A 1 - 40 then times 50 and it checked them all so now that works bu i still don't know how to send all units on the map to attack aregion. Edit: i have players 1-4 as users player 5 as neuteral 6-7 as users and 10 as neuteral for player index will it make player 5 as index 5 or player6 as index 5?? |
| 07-31-2002, 03:34 AM | #3 |
Guest | The easiest way to check it is to use a condition of "[kills] mod 50 is equal to 0" Mod returns the remainder of the two numbers, so a multiple of 50 will return 0, anything else will return something other than 0. To tell all units to attack use "Unit group - Pick every unit in [whatever] and do Action...." and for the action use Unit - Order unit targeting a point. Player 1 is player #1, Player 2 is #2 etc. |
| 08-01-2002, 06:05 PM | #4 |
Guest | I got the Kills Variable to work thanks =) but for the mass attacks i have the following Events: Unit - A Unit enters Mass3 <gen> Conditions: (Unit type of (entering unit)) Equal to MAsser Actions: Unit Group - Pick every unit in (units owned by (owner of (entering unit)) of type Grunt) and do (Unit - Order (matching unit) to attack-move to (center of 3Spawn <gen>)) |
