I have an idea for a puzzle SC2 map which involves many units moving from point A to point B repeatedly without attacking the player and when player touches these units, game over. Is there a tutorial or a thread that can help me with this ?
Please note the stickied post that this part of the forum is not for asking questions. I would suggest doing so in the map development forum section.
To answer your question though. It is very simple. What you have to do is use an issue order action to order a unit to patrol targeting point B or whatever your point is. If you have multiple units, you will have to assign them all from a unit group and then use the pick each unit from unit group action. You will also have to make these units invulnerable when doing this so that players cannot attack them. You can also use a disable ability trigger to disable the attack ability for each unit that is picked so then those units shouldn't be able to attack. After you do all of that you'll have to make another trigger that fires every .5 seconds or you could do whenever a unit uses the move ability or something similar. Then use an If Then Else action to check how close unit from player 1 is to unit from player 2. and if it is too close, then end the game.
Hi Fishy, thanks a lot for your help. Howerver in my case, the unit that i control is using a WASD movement so i'm not sure about the ability thing. I tried attaching a point to the enemy unit so when my character get close to it, game over, but the problem is the point does not move when the enemy unit move. Is there a solution to that, i'm searching my eyes out, seems hopeless. Please help :D
Could always have a set effect at a point that creates a set at the caster point and applies a buff to the caster that issue orders to the first set point that a location range validator removes which applies a second buff that orders it towards the second set. The second buff then applies the first buff and repeats. Might need a create persistent effect as a spacer.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi guys, i'm new to this so please bear with me.
I have an idea for a puzzle SC2 map which involves many units moving from point A to point B repeatedly without attacking the player and when player touches these units, game over. Is there a tutorial or a thread that can help me with this ?
@Kentle107: Go
Please note the stickied post that this part of the forum is not for asking questions. I would suggest doing so in the map development forum section.
To answer your question though. It is very simple. What you have to do is use an issue order action to order a unit to patrol targeting point B or whatever your point is. If you have multiple units, you will have to assign them all from a unit group and then use the pick each unit from unit group action. You will also have to make these units invulnerable when doing this so that players cannot attack them. You can also use a disable ability trigger to disable the attack ability for each unit that is picked so then those units shouldn't be able to attack. After you do all of that you'll have to make another trigger that fires every .5 seconds or you could do whenever a unit uses the move ability or something similar. Then use an If Then Else action to check how close unit from player 1 is to unit from player 2. and if it is too close, then end the game.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
@fishy77
Hi Fishy, thanks a lot for your help. Howerver in my case, the unit that i control is using a WASD movement so i'm not sure about the ability thing. I tried attaching a point to the enemy unit so when my character get close to it, game over, but the problem is the point does not move when the enemy unit move. Is there a solution to that, i'm searching my eyes out, seems hopeless. Please help :D
Hm, I already posted a map on this thread, not sure why it disappeared.
Does this work?
Could always have a set effect at a point that creates a set at the caster point and applies a buff to the caster that issue orders to the first set point that a location range validator removes which applies a second buff that orders it towards the second set. The second buff then applies the first buff and repeats. Might need a create persistent effect as a spacer.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg