| 07-13-2002, 08:29 PM | #1 |
Guest | I am currently making a madness type map and am unable to create a working Mass Attack trigger similair to the one Starcraft madness maps featured. I would like to make 1 of these trigger for each player in the game (Four) so it moves each players specific units to the specified location. If anyone can help me with this, please do. :confused: Thanks |
| 07-14-2002, 01:45 AM | #2 |
Guest | events -Unit Enters AttackEnemy <gen> ( the region to order attack) condition -triggering unit is a ground unit equal to true (boolean comparison) action pick every unit in (units in player1spawn<gen> and do unit order (unit-order(target unit of issued order) to attack "unit" (its a Unit group - pick every unit in group and do actin trigger) hopefully that helps |
| 07-14-2002, 06:30 AM | #3 | |
Quote:
why do u use a bool? its not needed. plus you can pick every units that the player X owns of <unit type> then do to attack in a region |
| 07-14-2002, 07:03 PM | #4 |
What you are going about seems like whenever a unit enters certain areas, all of that person's units go there, whether the person wants it or not. I really am not sure, but here's the best way to do it, in my opinion: 1. Make a custom unit, or modify one already in the game. The Flying Sheep works great for this purpose, though you may want to make it bigger, and maybe fly lower. Give the unit the following properties:
2. Now you need to make triggers to make it work. Here is the first, the one that makes them attack where your unit is: Events
Note that if you only want certain units go there, such as units in an area or of certain types, you need to change the "owned by player (Owner of (triggering unit))" part of the 1st action to pick out only the ones you want. Now you need the trigger to make them all go home. You can either do this by region (a pain) or have a certain unit be at home (a lot of madness maps in Starcraft had Bunkers at home). If you don't have one already, you can make a small one, and make it invincible and flying if it doesn't affect gameplay. Here's the trigger, note that the condition uses a different unit and the 1st action uses Picked unit rather that Triggering unit at the end. I made part of the action text bigger to seperate it: Events
3. Now you need to give everyone one of these units. Simply place one at or near each player's starting positions. 4. Make sure there aren't any conflicts. If your map has any spirit wolves (level 1) or spirit pigs, make new custom units to replace these. If you have units casting the spells that create these units and don't want to get rid of them, then create the condition(s) "There is no (unit who can cast pig/wolf) owned by (triggering player) within 200 of triggering unit" for each unit that can cast the spell. If you don't want to use those spells, then you can use Event-unit issued an order and condition (issued unit is the custom unit you made) and (issued order equal to (some ability you give it). You just have to nullify the ability in the actions. modders: you can give the ability new icons if you want. slk modding will let you modify the ability further. If you have an advanced editor, or use you own .slk and .txt files (like me :D), then you can just have your unit be able to sell units, and give those units the icons and tooltip text that you want. |
| 07-15-2002, 03:49 AM | #5 |
Guest | how can u get the a unit owned by player enters region because at player owned unit event u can get targets a point but not enters? |
| 07-15-2002, 05:12 AM | #6 |
Guest | nm i got it |
