ok so as the title states im trying to make it so that this happens:
lets say unit x is a marine
the marine has to be somehow identified as a marine so that it will spawn a marine at region 2 when a marine is standing in region 1same for the zerg if a ZERG and only a zerg is in region 1 then it will spawn a zerg at region 2.
marine stands in region 1
marine is created at region 2 till max 452
marine leaves region 1
no units are spawned. ( the marines being created stops until the marine goes back on region 1 )
zerg stands in region 1
zerg is created in region 2 till max 452
zerg leaves region 1
no units are spawned. ( the zergs being created stops until the zerg goes back on region 1 )
ok well after playing around abit i got it to work
but... it only worked because i think(not too sure)
it has something to do with my max unit cap
it was spawning red units when using blues unit cap
but now when i change it to reds it doesnt spawn
also the problem why it wasnt spawning in the first place was because of the
" General - Repeat (Actions) forever
Actions
"
adding the create units under there didnt make them spawn but moving them up to the Actions it did.
It means SC2 can't find the Event Unit, or Triggering Unit, referred to in the trigger. Since the event is Every 1.0 Seconds, there is no Triggering Unit. An event like Unit Enters Region would let you refer to a Triggering Unit.
I'm trying to work out how to do what you're after, hopefully I'll have something soon.
Well you are referring to triggering unit in a trigger with an periodic event. Triggering unit only works if there actually was a unit that caused that triggers event to trigger. As in unit enters region or unit uses ability and so on, not things like map initialization and periodic timers.
Okay, I made it work. But in a rather crude way. One variable for the unit type of the unit, and three triggers. Edit: Both the region and the variable is called Spawn Me. Sorry for the confusion.
The Tube (it's a unit in the editor for some reason) is just a way of stopping the spawn if there's no unit in the region. These triggers will always spawn the last unit that entered the region, so you can place any number in the region and still just get one unit type spawning. If any of these unit leave, however, it'd stop spawning even if there are other units still in the region.
For some reason I just can't reproduce stuff like "If player X has X units of unit type X in region X" from the classic SC editor. :<
the unit only spawns once then i have to move the unit out of the region then back into it
1 thing i'd like to know tho
how can i change the trigger so that instead of having to choose a unit on the map i can pick from a list of units like custom ones made in the data editor...?
1 other question
what is <Game Link - Unit>?
When selecting the variable type, pick "Unit Type". Since the unit type variable will be a link to a specific unit type in the game, it's called a game link in the editor. That's why it says "Game Link - Unit". Set the initial value of a the variable to whatever type of unit you want - and then you can just refer to that variable instead of a unit on the map.
Edit: Did a neater solution. I think. (Look below for another edit.)
This trigger checks every second, counts the units in the region, and spawns a copy of a unit if there's only one unit in the region. It'll also spawn for the player that owns the unit, rather then for a set player - in case you need that. Can easily be switched back of course.
Edit: Here's a better version of the above trigger. Nothing like learning while helping.
woah thanks for helping
i keep on trying to do something aswell but i cant get the triggers to repeat.
heres what i got atm:
(3 triggers , no variables)
TurnRoachOFFEventsUnit-AnyUnitLeavesREDUNITMAKERLocalVariablesConditions(Unittypeof(Triggeringunit))==RoachActionsTrigger-StopallinstancesofRoachSpawnTrigger-RunTurnRoachON(CheckConditions,Don't Wait until it finishes)
TurnRoachONEventsUnit-AnyUnitEntersREDUNITMAKERLocalVariablesConditions(Unittypeof(Triggeringunit))==RoachActionsTrigger-RunRoachSpawn(CheckConditions,Don't Wait until it finishes)Trigger-StopallinstancesofTurnRoachON
so basically what im trying to get happen is
the roach enters the region
Roach ON waits for a roach to enter the region
Roach ON then activates Roach Spawn (which is initially off)
Roach ON after doing above turns Roach ON off.
Roach OFF is always on and when the Unit Roach leaves the region turns Roach Spawn off
Roach OFF then turns Roach ON back on.
also i cant seem to get it to keep spawning other then once...
because it only spawns when the unit goes into the region, and not until it leaves the region
any ideas on how i could make it so that it spawns UNTIL the Roach leaves the region?
Sorry if I confused you with all my earlier edits. While it's possible to do it as you're doing it, I'd suggest doing what I wrote in my last edit. That is:
This trigger will spawn whatever unit enters the Spawn Me region, for the player that owns that unit, and you can easily add conditions to only allow certain units - or choose a set player, rather then "whoever owns the unit". No need for multiple triggers this way. :p
Edit: And also, of course, add a condition to make sure the unit count is less then 100.
... What? I just want them to spawn. Or well, that's what zISilenced wants anyway. He seemed to be having issues with his trigger not repeating, and mine works perfectly - so I reposted it as I thought he has missed the first. It also spawns only when the unit is in the region. From when it enters, until it leaves.
Either that, or I'm too tired to make heads or tails of this.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
ok so as the title states im trying to make it so that this happens:
lets say unit x is a marine
the marine has to be somehow identified as a marine so that it will spawn a marine at region 2 when a marine is standing in region 1 same for the zerg if a ZERG and only a zerg is in region 1 then it will spawn a zerg at region 2.
marine stands in region 1 marine is created at region 2 till max 452
marine leaves region 1 no units are spawned. ( the marines being created stops until the marine goes back on region 1 )
zerg stands in region 1 zerg is created in region 2 till max 452
zerg leaves region 1 no units are spawned. ( the zergs being created stops until the zerg goes back on region 1 )
this is what ive got atm:
also ive got another trigger:
i know ive been blowing this trigger forum up with all my questions but im new what do u expect..
so how can i achieve what im trying to do?
please note aswell ive already got the max unit cap done.
thank you if you can help me.
ok well after playing around abit i got it to work but... it only worked because i think(not too sure) it has something to do with my max unit cap it was spawning red units when using blues unit cap but now when i change it to reds it doesnt spawn
also the problem why it wasnt spawning in the first place was because of the " General - Repeat (Actions) forever Actions " adding the create units under there didnt make them spawn but moving them up to the Actions it did.
now ive got this error:
@zISilenced: Go
It means SC2 can't find the Event Unit, or Triggering Unit, referred to in the trigger. Since the event is Every 1.0 Seconds, there is no Triggering Unit. An event like Unit Enters Region would let you refer to a Triggering Unit.
I'm trying to work out how to do what you're after, hopefully I'll have something soon.
@zISilenced:
Well you are referring to triggering unit in a trigger with an periodic event. Triggering unit only works if there actually was a unit that caused that triggers event to trigger. As in unit enters region or unit uses ability and so on, not things like map initialization and periodic timers.
Okay, I made it work. But in a rather crude way. One variable for the unit type of the unit, and three triggers. Edit: Both the region and the variable is called Spawn Me. Sorry for the confusion.
The Tube (it's a unit in the editor for some reason) is just a way of stopping the spawn if there's no unit in the region. These triggers will always spawn the last unit that entered the region, so you can place any number in the region and still just get one unit type spawning. If any of these unit leave, however, it'd stop spawning even if there are other units still in the region.
For some reason I just can't reproduce stuff like "If player X has X units of unit type X in region X" from the classic SC editor. :<
thanks ill see how it goes..
the unit only spawns once then i have to move the unit out of the region then back into it 1 thing i'd like to know tho how can i change the trigger so that instead of having to choose a unit on the map i can pick from a list of units like custom ones made in the data editor...? 1 other question what is <Game Link - Unit>?
@zISilenced: Go
When selecting the variable type, pick "Unit Type". Since the unit type variable will be a link to a specific unit type in the game, it's called a game link in the editor. That's why it says "Game Link - Unit". Set the initial value of a the variable to whatever type of unit you want - and then you can just refer to that variable instead of a unit on the map.
Edit: Did a neater solution. I think. (Look below for another edit.)
This trigger checks every second, counts the units in the region, and spawns a copy of a unit if there's only one unit in the region. It'll also spawn for the player that owns the unit, rather then for a set player - in case you need that. Can easily be switched back of course.
Edit: Here's a better version of the above trigger. Nothing like learning while helping.
woah thanks for helping i keep on trying to do something aswell but i cant get the triggers to repeat.
heres what i got atm: (3 triggers , no variables)
so basically what im trying to get happen is
the roach enters the region
Roach ON waits for a roach to enter the region
Roach ON then activates Roach Spawn (which is initially off)
Roach ON after doing above turns Roach ON off.
Roach OFF is always on and when the Unit Roach leaves the region turns Roach Spawn off
Roach OFF then turns Roach ON back on.
also i cant seem to get it to keep spawning other then once... because it only spawns when the unit goes into the region, and not until it leaves the region any ideas on how i could make it so that it spawns UNTIL the Roach leaves the region?
@zISilenced: Go
If your doing a periodic check to see if a player has a unit in a region you should just use
@zISilenced: Go
Sorry if I confused you with all my earlier edits. While it's possible to do it as you're doing it, I'd suggest doing what I wrote in my last edit. That is:
This trigger will spawn whatever unit enters the Spawn Me region, for the player that owns that unit, and you can easily add conditions to only allow certain units - or choose a set player, rather then "whoever owns the unit". No need for multiple triggers this way. :p
Edit: And also, of course, add a condition to make sure the unit count is less then 100.
@Zinatic: Go
So I see your units are set to spawn at "Spawn Here"
...... what is it you want them to do
@SouLCarveRR: Go
... What? I just want them to spawn. Or well, that's what zISilenced wants anyway. He seemed to be having issues with his trigger not repeating, and mine works perfectly - so I reposted it as I thought he has missed the first. It also spawns only when the unit is in the region. From when it enters, until it leaves.
Either that, or I'm too tired to make heads or tails of this.