| 10-20-2003, 05:23 PM | #1 |
Agh. Yet more problems. Ok. I think this is pretty n00b question, but how do I create a group of enemies, and spawn it in a specific region? And please tell me step-to-step how it's done cuz my skills are pretty basic... :( |
| 10-20-2003, 05:39 PM | #2 |
Use the Unit - Create action to create units. It will let you create 1 or more unit of the same type. I think, by default, it creates the unit(s) at the center of the playable map area but you can click on that and change the region to whatever region you've already put down. |
| 10-20-2003, 05:50 PM | #3 |
Well, that works. Kinda. Well, just gotta organize the trigger. That wasn't what i had in mind, though. I was thinking more of a premade attack group (ie. 5 grunts, 3 shamans, 1 catapult. ) that spawns in a region. Now that I think of it, Is it even possible? |
| 10-20-2003, 06:33 PM | #4 |
yes it is just do like this Trigger Create 1 X for Player X at (Center of (Playable map area)) facing Default building facing degress for Example Create 5 Grunt for Player 1 (Red) at (Center of (Spawn Region)) facing Default building facing degress Create 3 Shaman for Player 1 (Red) at (Center of (Spawn Region)) facing Default building facing degress Create 1 Catapult for Player 1 (Red) at (Center of Spawn Region)) facing Default building facing degress Here is a map i made just for you, just copy the triggers if you dont understand.. |
| 10-20-2003, 07:07 PM | #5 |
ok do this. p.h.o.b.o.s.'s trigger would work but to make them move you would do this. first set up a unit group. call it attack squad or whatever you like. next create a spot for attack squad to appear at. call it attack region. now let's create the trigger.... event- --map initialization(or what ever you want) condition- --none(or whatever you want) action- --wait 5 seconds(just so it doesn't do it right at start of the map) --create 1 grunt for player nuetral hostile(or whoever) at random point in attack region --add last created unit to attack squad --repeat above actions 4 times(this is not a real trigger you just have to copy paste those 2 actions 4 more times so it makes 5 grunts) --create 1 shaman for player nuetral hostile(or whoever) at random point in attack region --add last created unit to attack squad --repeat above 3 times(not real action still) --create 1 catapult for player nuetral hostile(or whoever) at random point in attack region --add last created unit to attack squad (now comes the attacking part) --pick every unit in attack squad and do attack (make them go attack whatever you want) and that should do it. you can also remove all the units by doing this action- --pick all units in attack squad and do remove picked unit that would get rid of them all. |
| 10-20-2003, 08:01 PM | #6 |
That helped a LOT. Thank you.:D |
| 10-21-2003, 06:21 AM | #7 |
you welcome |
| 10-21-2003, 06:32 AM | #8 |
lol who were you thanking? yours truly or the other guy what was his name again? o yea p.h.o.b.o.s(hehe just kidding). but just out of curiostiy who were you thanking for that? |
| 10-22-2003, 03:29 PM | #9 |
I was making my map, and i finaly got to the actual point where i should add the trigger, and I just realized, that i don't know how to assign groups...:( I tried to figure it out meself, but nothing worked. How is groups assigned? (keep in mind that this must be applied to the spawned groups in Supra God CrK's trigger...) Edit: Err.. Nevermind. Supra God Crk told it in his post already... Dumb me. |
| 10-22-2003, 06:53 PM | #10 |
I got the spawning thingy working, and i was quite happy with it, but there is always the same problem. THE SPAWNED UNITS ARE FRIGGING BLUE! :bangH: They are supposed to be owned by player 9 (gray) but instead they are blue. Normaly it wouldn't matter, but the map already contains a blue player, which just happens to be my ally. Trigger Event: Condition: Action: Unit - spawn 5 grunts for player 9 (gray) in spawning area 1 Unit - spawn 3 shamans for player 9 (gray) in spawning area 1 Unit group - pick every unit in spawning area 1 and assign them to attack_group1 Unit group - order attack_group1 attack-move to attack point 1 ...What did I do wrong? |
| 10-22-2003, 07:10 PM | #11 |
I write JASS scripts so I can hardly remember WE trigger action names... Action exists which gives units to desired player and changes unit colors. Try using it. Or just send map contains only "wrong" trigger and I make it works correctly. My mail: [email protected] |
| 10-22-2003, 08:29 PM | #12 |
easy fix. make this as the thing right before you make the units move. it can be found under unit grooups pick and do action action- --pick every unit in unit group and do change picked units color to gray the change unit color action is under the category units incase you didn't know. good luck |
| 10-23-2003, 03:36 PM | #13 |
Isn't the change colour apply only to the colour and not to the fact that it is really blue player? you see, the users ally in the map is blue too, and they aren't attacking the spawned units, like they are supposed to... I'll go an' try it out. back soon. Edit: Almost worked. The colour changed, but the users ally isn't attacking them... Edit (again): Cacodemon, for some reason i can't mail to you. I'm getting errors there too. Darn. Nothing is working today... |
| 10-23-2003, 06:12 PM | #14 |
lol oh i didn't know that they were all player 2...psh dumb me. thought they were blue but belonged to neutral. did you check your triggers to make sure that when it creates a unit it is created for the player you want? maybe you acidentally set it to be created for player 2. but you could always just do this. action- --pick all units in unit group and do change owner of picked units to neutral hostile and change color and also if you would like them to attack more than one thing just give them the order to stop once they reach the destination. they will than stop attacking whatever you ordered them to and than attack whatever they want in priority. |
| 10-24-2003, 02:42 PM | #15 |
Ah, nevermind. Got it fixed. Altered few things dere an' few things here. |
