Hey! Im working on a map involving a trigger being used when the map initializes, in which while the player has units in a specific regions, enemy units spawn at "spawn points" (regular points on the map) to attack the players units.
Currently, I have a trigger such as:
Events
Unit - Any unit enters within 1.0 of (Random point in Region006)
Local Variables
Unit - Any Unit <unit>
Region - Spawn Point 1 <point>
Conditions
Actions
General - While (conditions) are true, do (Actions)
Conditions
((Triggering Unit) is in Region 006) == true
Actions
Unit - create 6 marine for player 2 at spawn point 1 facing 270.0 degrees (No Options)
General - Wait 5.0 Game Time seconds
Its seems as though the trigger only works every once in a while, and not in the fashion that I want it to. I want it to spawn the 6 marines, every 5 seconds. When it does work for some reason, it seems to speed up the amount of waiting time, and eventually I just get a huge ball of marines attacking my units that I didn't want to see.
Now I'm very, very new to triggers and am still confused about how a lot of it works, so a detailed break down of what im doing wrong would really help.
the trigger event fires every time a unit enters a range of 1.0 to a random point in region 6 (are you serious about this? this is like a minefield, use enters region or range of 1.0 to a specific point instead.)
it doesn't care if there is another trigger of the same type still waiting or doing stuff. starcraft start multiple threads.
add a reveal map action at map initializations and take a look at whats happening
switch sc2 to window mode with debug window enable while testing. it is an option in the editor
I'm trying to offer simple solution. How about making trigger that event is "Unit moves to [region]" and to actions part create units to specific point or region. And send those units as attack wave? I have a feeling that you are trying to make simple trigger too complicated.
b0ne and Tehonator, thanks for the tips, I certainly try both of them out.
Bone, yes I WAS serious, yet again, im young to the editor as i started messing around with it only a few days ago. Im sorry if i seem like an idiot, but I don't know exactly what im doing yet.
Terhonator, I think your approach seems more simple and easy to figure out, I'll consider it firstly. Thank you for the response.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey! Im working on a map involving a trigger being used when the map initializes, in which while the player has units in a specific regions, enemy units spawn at "spawn points" (regular points on the map) to attack the players units.
Currently, I have a trigger such as:
Events Unit - Any unit enters within 1.0 of (Random point in Region006)
Local Variables Unit - Any Unit <unit> Region - Spawn Point 1 <point>
Conditions
Actions General - While (conditions) are true, do (Actions) Conditions ((Triggering Unit) is in Region 006) == true Actions Unit - create 6 marine for player 2 at spawn point 1 facing 270.0 degrees (No Options) General - Wait 5.0 Game Time seconds
Its seems as though the trigger only works every once in a while, and not in the fashion that I want it to. I want it to spawn the 6 marines, every 5 seconds. When it does work for some reason, it seems to speed up the amount of waiting time, and eventually I just get a huge ball of marines attacking my units that I didn't want to see.
Now I'm very, very new to triggers and am still confused about how a lot of it works, so a detailed break down of what im doing wrong would really help.
the trigger event fires every time a unit enters a range of 1.0 to a random point in region 6 (are you serious about this? this is like a minefield, use enters region or range of 1.0 to a specific point instead.)
it doesn't care if there is another trigger of the same type still waiting or doing stuff. starcraft start multiple threads.
if you want to block this from happening, add a "cooldown" to the trigger
http://www.sc2mapster.com/forums/development/triggers/23701-damage-source/?post=4
add a reveal map action at map initializations and take a look at whats happening
switch sc2 to window mode with debug window enable while testing. it is an option in the editor
I'm trying to offer simple solution. How about making trigger that event is "Unit moves to [region]" and to actions part create units to specific point or region. And send those units as attack wave? I have a feeling that you are trying to make simple trigger too complicated.
b0ne and Tehonator, thanks for the tips, I certainly try both of them out.
Bone, yes I WAS serious, yet again, im young to the editor as i started messing around with it only a few days ago. Im sorry if i seem like an idiot, but I don't know exactly what im doing yet.
Terhonator, I think your approach seems more simple and easy to figure out, I'll consider it firstly. Thank you for the response.