Hello everyone! I decided to re-create the old school bounty style map. It was quite popular back in the sc1 day's. I created 120 regions on a grid. My goal is to make artistic explosions stylized as mazes that the player using zerglings, of course, would navigate. Who ever reaches the end wins that round. So I set on my task. I decided that the best approche to this problem would be to have two sides. Vertical and horizontal lines. One has 10 the other 12. So I created two variables (regions) with array's begun on the task of setting it all up.
Then I created my first Action Def. I really enjoyed making my own action. Its quite satisfactory. Anyway. I've coded my map as best as I could but I have to admit i'm kinda lost on how to do this. I can seam to get my schemes working properly and my explosions aren't working as they should. I'll copy the code of one of my functions that is supposed to activate a line and the function that I used to try to make them all start at the same time.
Ow and I need to figure out how to kill the unit that is in the same location as the explosion I'm creating.
I also uploaded the map itself. I'm pretty sure my approche is wrong and I'd really like to figure out a way to make this work.
Line1Options:ActionReturnType:(None)ParametersI=0<Integer>GrammarText:Line1(I)HintText:(None)CustomScriptCodeLocalVariablesMineGroup=(Emptyunitgroup)<UnitGroup>ActionsGeneral-Repeat(Actions)NumberofBombstimesActionsUnit-Create1G-4ClusterbombforplayerMinesIDat(Centerof1[I]) using default facing (No Options)
Variable - Set Mine Unit = (Last created unit)
Unit - Turn Mine Unit Status Bar state Off
Unit Group - Add (Last created unit) to Mine Group
General - Wait 0.5 Game Time seconds
Unit Group - Pick each unit in Mine Group and do (Actions)
Actions
Unit - Kill (Picked unit)
To make the explosion you don't even need to make a unit. Just do Create Model At Point and pick whichever effect you want (some explosion effects need to be Killed right after they're created).
To look for a decent explosion effect what I usually do is search through the models in the data editor, searching for "impact" and right click on them and say "preview model".
To kill the units near the explosion, just say:
Pick Each Unit In Region Matching Condition
For the region, use your region: 1[I]
Then, inside the block say Kill Picked Unit.
Hello everyone! I decided to re-create the old school bounty style map. It was quite popular back in the sc1 day's. I created 120 regions on a grid. My goal is to make artistic explosions stylized as mazes that the player using zerglings, of course, would navigate. Who ever reaches the end wins that round. So I set on my task. I decided that the best approche to this problem would be to have two sides. Vertical and horizontal lines. One has 10 the other 12. So I created two variables (regions) with array's begun on the task of setting it all up.
Then I created my first Action Def. I really enjoyed making my own action. Its quite satisfactory. Anyway. I've coded my map as best as I could but I have to admit i'm kinda lost on how to do this. I can seam to get my schemes working properly and my explosions aren't working as they should. I'll copy the code of one of my functions that is supposed to activate a line and the function that I used to try to make them all start at the same time.
Ow and I need to figure out how to kill the unit that is in the same location as the explosion I'm creating.
I also uploaded the map itself. I'm pretty sure my approche is wrong and I'd really like to figure out a way to make this work.
To make the explosion you don't even need to make a unit. Just do Create Model At Point and pick whichever effect you want (some explosion effects need to be Killed right after they're created).
To look for a decent explosion effect what I usually do is search through the models in the data editor, searching for "impact" and right click on them and say "preview model".
To kill the units near the explosion, just say:
Pick Each Unit In Region Matching Condition
For the region, use your region: 1[I]
Then, inside the block say Kill Picked Unit.
@LosTacos: Go
Alright nice this takes care of the dying unit part.