trying to make a Trigger so that every time a player kills a enemy unit it adds +1 to Variable, than at 100 kills +1 Vespene Gas. I can Do must of this trigger, just trying to figure out the Even part of it any leads suggestions?
I just looked to make sure and yes there is a function - Triggering Region- "Runs a Trigger when a unit enters or leaves a Region(Parameter) returns the triggering region."
So From What I get from that is that it saves the triggering region, and should compare within the If / than / else
I'm trying to figure out why this trigger isn't working...
My goal with this trigger setup is to be able to use this event(Triggering Region). In the GE it says returns triggering region. With this i planned to create about 5 regions for instances we will say Aplha, beta, bravo. I would than create If / Than / Else statements like the ones below to spawn units for the regions.
Events
Unit - Any Unit Enters (Triggering region)
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering region) == summonreaper
Then
Unit - Create 8 Reaper for player 1 at (Center of GiveRed) facing 270.0 degrees (No Options)
Else
Game - End game in Victory for player 1 (Show dialogs, Show score screen)
Any feedback on this would be great, show me what i'm doing wrong or point me in the directions. Thanks!
0
bump
0
Can't find 'dying unit'
Condition:
- Owner of dying unit is an enemy of Owner of killing unit
only function that starts even with a 'D' is Damaging unit. Selecting Value 1 - owner of unit
0
trying to make a Trigger so that every time a player kills a enemy unit it adds +1 to Variable, than at 100 kills +1 Vespene Gas. I can Do must of this trigger, just trying to figure out the Even part of it any leads suggestions?
0
How would i make a Global Variable? i see how to make a Local one, but I can't use it in other triggers.
0
Didn't realize there were folder's, I'll do that instead.
0
Alright, well than my If /than /else wont work cause wanted to use triggering region and...
If
Triggering region == reapers
than
Create 8 blah
Else
If
Triggering region == blah
Creat 8 blah
so on
0
Hehe Of course, was seeing it would work just picked something and thru it into the else statement for a quick test :D
0
Well, i realize that i could do it that way, I was trying to put all the Information for all 5 Regions into one trigger may not be possible.
0
I just looked to make sure and yes there is a function - Triggering Region- "Runs a Trigger when a unit enters or leaves a Region(Parameter) returns the triggering region."
So From What I get from that is that it saves the triggering region, and should compare within the If / than / else
0
I'm trying to figure out why this trigger isn't working...
My goal with this trigger setup is to be able to use this event(Triggering Region). In the GE it says returns triggering region. With this i planned to create about 5 regions for instances we will say Aplha, beta, bravo. I would than create If / Than / Else statements like the ones below to spawn units for the regions.
Events
Unit - Any Unit Enters (Triggering region)
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering region) == summonreaper
Then
Unit - Create 8 Reaper for player 1 at (Center of GiveRed) facing 270.0 degrees (No Options)
Else
Game - End game in Victory for player 1 (Show dialogs, Show score screen)
Any feedback on this would be great, show me what i'm doing wrong or point me in the directions. Thanks!