Anyone know how to make a unit that isn't on the map (yet) a value? Here's what I mean, my trigger is this:
Event: Unit - Any Unit training progress is Completed
Conditions: (Triggering unit) == [A Value]
The thing is, I can only select values from units that are on the map. I have a barracks that can build marines, but there's no marines on the map when the game starts. How do I make the triggering unit a marine if there's none on the map yet?
you just wanna check if its a marine coming out of the barracks right? Triggering progress unit is what you want. And also you wanna compare the "unit type" not the actual unit itself.
Events
Unit - Any Unit training progress is Completed
Conditions
(Unit type of (Triggering progress unit)) == Marine
Actions
[whatever you wanna do]
Your problem is you are trying to use a referance to an unit that is already in-game. If you do so, it will not work like you think, your current method will select a specific unit and not a unit-type so it will not trigger by defining the condition as a specific unit on the map, you have to change the condition into as Onisagi said 'Unit type'
Unit - Any Unit training progress is Completed
Add a [Condition] select [Comparison] then press the left bracket and change [Value 1] into the function [Unit Type Of Unit] and change the [Value 2] to the type of unit you want to make the event come true. Additional information: You can also set the specific unit type to a variable with a stored unit type in, if you want to change it during the course of the game. I hope this helps.
If you need additional information feel free to post or send a private message.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Anyone know how to make a unit that isn't on the map (yet) a value? Here's what I mean, my trigger is this:
Event: Unit - Any Unit training progress is Completed
Conditions: (Triggering unit) == [A Value]
The thing is, I can only select values from units that are on the map. I have a barracks that can build marines, but there's no marines on the map when the game starts. How do I make the triggering unit a marine if there's none on the map yet?
@kenxftw: Go
you just wanna check if its a marine coming out of the barracks right? Triggering progress unit is what you want. And also you wanna compare the "unit type" not the actual unit itself.
Events
Unit - Any Unit training progress is Completed
Conditions
(Unit type of (Triggering progress unit)) == Marine
Actions
[whatever you wanna do]
@kenxftw: Go
Hi Kenxftw,
Your problem is you are trying to use a referance to an unit that is already in-game. If you do so, it will not work like you think, your current method will select a specific unit and not a unit-type so it will not trigger by defining the condition as a specific unit on the map, you have to change the condition into as Onisagi said 'Unit type'
Unit - Any Unit training progress is Completed
Add a [Condition] select [Comparison] then press the left bracket and change [Value 1] into the function [Unit Type Of Unit] and change the [Value 2] to the type of unit you want to make the event come true. Additional information: You can also set the specific unit type to a variable with a stored unit type in, if you want to change it during the course of the game. I hope this helps.
If you need additional information feel free to post or send a private message.