I'm just plain confused. I decided to give up on the insane data editor for now because I cannot get my head around it. But one thing that was similiar and looked fine was triggers. Was I wrong?
In WC3 you made a new condition such as: (triggering unit) is owned by (Player 1)... then if that condition was true it would do the actions. Now when I click conditions there's a weird list of Or, And, Comparison... which i dont get. EG I go to comparison and im greeted with a horrible list of " Value 1: Owner of Unit, Unit: Triggering Unit", Operator ==, Value 2:1" Utterly bamboozled as to how to made a simple condition. :(
Any help? Maybe explain how I would made the simple condition i outlined? :)
Basically I want my trigger to be this. I'm speaking vaguely in WC3 terms since thats what I know
Event:
(Unit Type = Probe) Enters (Spawn Region)
Condition:
Owner of (Triggering Unit) = Player 1
Action:
Create (9) (Probes) at (Player 1 Base)
@WhiskyEU: Go
When you click conditions just do comparison now for this example. "(Owner of (triggering unit)) ==1" everything in bold you can click to change. Well clicking the ( will allow you to change the entire function to something besides "Owner of", maybe another function such as "(Position of Unit())" or a local/global variable comparison. Clicking the "triggering unit" could change something to "(Owner of (Last Attacker))" etc. Change the == to suit your logical needs. Last but not least the 1 can be changed to whatever or another function,variable, w/e. Just gotta click around and explore.
Yes, its player 1, however, those player numbers afaik, are the order in which the players joined the game, and have absolutely no bearing on placement in the teams list, or which team they are on.
However, he is the code in GUI of what you wanted to do;
You are going to want to use pick each unit in unit group, and make a unit group from the units in the region
Events
Unit - Any Unit Enters Region 001
Local Variables
Conditions
(Owner of (Triggering unit)) == 1
(Unit type of (Triggering unit)) == Probe
Actions
<u>// Turn off the trigger and wait a few seconds so that other units can get to the area, otherwise the trigger will run multiple times if a couple units show up at the same time</u>
Trigger - Turn (Current trigger) Off
General - Wait 2.0 Game Time seconds
Unit Group - Pick each unit in (Probe units in Region 001 owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
<u>// whatever actions... you'll probably want to get rid of the unit</u>
Unit - Remove (Picked unit) from the game
<u>// Turn it back on so you can use it again in the future</u>
Trigger - Turn (Current trigger) On
I'm just plain confused. I decided to give up on the insane data editor for now because I cannot get my head around it. But one thing that was similiar and looked fine was triggers. Was I wrong?
In WC3 you made a new condition such as: (triggering unit) is owned by (Player 1)... then if that condition was true it would do the actions. Now when I click conditions there's a weird list of Or, And, Comparison... which i dont get. EG I go to comparison and im greeted with a horrible list of " Value 1: Owner of Unit, Unit: Triggering Unit", Operator ==, Value 2:1" Utterly bamboozled as to how to made a simple condition. :(
Any help? Maybe explain how I would made the simple condition i outlined? :)
@WhiskyEU: Go When you click conditions just do comparison now for this example. "(Owner of (triggering unit)) == 1" everything in bold you can click to change. Well clicking the ( will allow you to change the entire function to something besides "Owner of", maybe another function such as "(Position of Unit())" or a local/global variable comparison. Clicking the "triggering unit" could change something to "(Owner of (Last Attacker))" etc. Change the == to suit your logical needs. Last but not least the 1 can be changed to whatever or another function,variable, w/e. Just gotta click around and explore.
in beta I had hard times to figure out you actually can click on ( hehe
@jmac321wky: Go
does the number represent player number? Eg "owner of (triggering unit) == 1 "would be player 1?
Also, completely clueless as to how to make it check the condition: if (units belonging to player 1 in region) = 1 then do actions...
@WhiskyEU: Go
Yes, its player 1, however, those player numbers afaik, are the order in which the players joined the game, and have absolutely no bearing on placement in the teams list, or which team they are on.
However, he is the code in GUI of what you wanted to do;
@DarkShape80: Go
How do I make a condition to check how many units are in a certain region in a condition? Like if (2) units are in in (Region 001) then (actions) ?
cheers :)