Strangely, I stumbled upon a cluess obstacle... With variable.
The problem is in the event of the rescue science lab 1 trigger : Unit - Any Unit Enters a distance of 2.0 from ==== Unit ====
The first unit is ok as it souhld be triggered by any units getting near the science lab 1 unit. But the second ==== unit ==== value SHOULD be "Science Lab 1" unit variable. I really dont get it... Why can't I set it?
And take into consideration that that building is trigger created, so there is no porrible real value for it. It has to be via variable.
RescueScienceLab1EventsUnit-AnyUnitEntersadistanceof2.0fromUnitLocalVariablesConditions(Raceofplayer(Triggeringplayer))==Terran------- Set player active propriety to terran and hostile to zerg. ------- If not, the trigger wont work properllyActionsUnit-ChangeownershipofScienceLab1toplayer6andChangeColor
The Question is : Is there any way in hell to change the event of this trigger to (Unit - Any Unit Enters a distance of 5.0 from "Unit Variable")
It seem that this trigger is not unit variable friendly as SouL CarveRR said it earlier...
Anybody know how to bypass this?
I could do it by placing the unit on the map, but I hate that and it's what I'm trying to avoid. I create all my unit, regions and point by trigger for map initialisation...
Zhakul'Das Activation 2EventsUnit-AnyUnitEntersadistanceof5.0fromScienceFacility[160.50,163.50]LocalVariablesConditions(Raceofplayer(Triggeringplayer))==Terran------- Set player active propriety to terran and hostile to zerg. ------- If not, the trigger wont work properllyActionsUnit-ChangeownershipofZhakul'Das Library 2 to player 6 and Change ColorSound-PlayStoneZealot_Deathfor(Allplayers)(at100.0%volume,skipthefirst0.0seconds)Unit-OrderZhakul'Das Library 2 to ( Raise Library) (Replace Existing Orders)
Hmm.. I'd think that if you put the Variable Unit into a unit group, it will work.. However, you need to clear the unit group and then add the other unit in order to change the Variable Unit.
Unit - Any Unit Enters a distance of 8.0 from (Unit 1 from Unit Group)
i already tried that and unfortunately, there is another trigger related to region that doesn't like region variable... So I stumble upon the same problem with just a different variable...
I created a new reagion and moves it on the Science Lab, then made a unit enter region event... You can get around, but that just damn frustrating...
You need to create a behavior for capturable units that does an AOE "0" dmg effect to a single target.
You can create a trigger that detects this "0" dmg effect or "dummy" effect that then gives the owner of the "damaged" unit control of the "damaging" unit
You could make this completely in data with out triggers.
The search effect involved also needs to filter out certain kinds of units and a validator can check to see if the owner of the damaged unit is a valid target for allowing the capture to occur
so then you add this behavior at the beggining of the game with a trigger to all the units that you want to be captureable.
after the capture occurs you then want the behavior to be removed from the captured unit. This can also be done with triggers or as part of the "capture behavior" itself.
Strangely, I stumbled upon a cluess obstacle... With variable.
The problem is in the event of the rescue science lab 1 trigger : Unit - Any Unit Enters a distance of 2.0 from ==== Unit ====
The first unit is ok as it souhld be triggered by any units getting near the science lab 1 unit. But the second ==== unit ==== value SHOULD be "Science Lab 1" unit variable. I really dont get it... Why can't I set it?
And take into consideration that that building is trigger created, so there is no porrible real value for it. It has to be via variable.
Science Lab 1 = (Last created unit) <Unit>
Science Lab 2 = (Last created unit) <Unit>
...
I found a similar post taking about that tricky event I'm using... Here is the answer.. or is it?
@Claymuffin: Go
The Question is : Is there any way in hell to change the event of this trigger to (Unit - Any Unit Enters a distance of 5.0 from "Unit Variable") It seem that this trigger is not unit variable friendly as SouL CarveRR said it earlier...
Anybody know how to bypass this?
I could do it by placing the unit on the map, but I hate that and it's what I'm trying to avoid. I create all my unit, regions and point by trigger for map initialisation...
Hmm.. I'd think that if you put the Variable Unit into a unit group, it will work.. However, you need to clear the unit group and then add the other unit in order to change the Variable Unit.
Unit - Any Unit Enters a distance of 8.0 from (Unit 1 from Unit Group)
@Shawn91210: Go
i already tried that and unfortunately, there is another trigger related to region that doesn't like region variable... So I stumble upon the same problem with just a different variable...
I created a new reagion and moves it on the Science Lab, then made a unit enter region event... You can get around, but that just damn frustrating...
@Claymuffin: Go
You need to create a behavior for capturable units that does an AOE "0" dmg effect to a single target.
You can create a trigger that detects this "0" dmg effect or "dummy" effect that then gives the owner of the "damaged" unit control of the "damaging" unit
You could make this completely in data with out triggers.
The search effect involved also needs to filter out certain kinds of units and a validator can check to see if the owner of the damaged unit is a valid target for allowing the capture to occur
so then you add this behavior at the beggining of the game with a trigger to all the units that you want to be captureable.
after the capture occurs you then want the behavior to be removed from the captured unit. This can also be done with triggers or as part of the "capture behavior" itself.