| 03-31-2008, 01:36 AM | #2 |
Uhhh... ok, a couple of things first: "(Center of (Region centered at (Player 8 (pink) start location)" is effectively the same as "Player 8 (pink) start location", except that the latter leaks less memory. "(Region Centered at ((Picked player) start location) with size (384.00, 384.00)) contains (Random unit from (Units owned by (Picked player) of type Firing Range))) Equal to True" could be replaced with the unit comparison "(Random unit from (Units owned by (Picked player) of type Firing Range)) not equal to (no unit)", again, there's less leaking involved this way. Now, in order to allow players to choose which other player to attack, you first need a way to store this information. Go to the variable editor and create a player variable array. For each player, we will store the player he is attacking under a corresponding index into that array. Then, instead of telling the units to attack Player 8's start location, you would use the player array instead of "player 8". Of course, you still need a way for players to choose which opponent to attack, but there's so many ways to do this that I won't explain them all. You could use dialogues, dummy buildings or heroes with dummy abilities, a spellbook on your main hero with dummy abilities etc. |
| 03-31-2008, 05:39 AM | #3 |
I think I know what you mean for the array, but I am not sure what you mean for the rest. I would probably use Dialogues. "Attack North, East, West, South". But you would not be able to 'attack' the location of your own base. (E.g. Attack north would not work if you are the north base) I am not too good with triggers, so If you could post an example of the array implemented, I would appreciate it, and give credit in the map if you want. |
| 03-31-2008, 07:25 PM | #4 |
Okay, So I have the efficiancy changes, but As clarification, there would be 4 teams- North, East, South, and West. I would want players to be able to select which location to attack (Excluding thier own) by Typing -north, -east, -south, and -west. So I would create a player array, from 0-11, and assign players 1-12 to each array? Then how would I make them attack the player? Currently I would like them to attack a 'location', as It might mess up the spawn routes. (The ones to the sides, and not across from them) Currently the Array is Name............................Type................Initial Value PlayerAttackTargets.....player array (12)....... None Is this correct or do I need another Array? How would the setup trigger look? I may be able to figure out how to change the functions for the chat strings, but I am the kind of learner that needs an example, and please pardon my newbishness. |
| 04-01-2008, 11:27 PM | #6 |
Thanks a million. |
