Seas =)
Ok here we go:
Open your Trigger Editor. You see at top the "X" - klick it.
1) A new window is open. In this window klick the
+X
2) A new window is open again. Now you type in a
name you want, for example "Var". By
variable type - you select boolean.
Now mark the box for "Array". Now klick 2 times on "Ok" and we are back to the trigger editor.
3) Now create a new trigger. I named it for example "TestTrigger".
4) Add a new events: Klick right on event > New event. Now scroll down to
"Unit - Unit enters region". Klick on
Region. A new window open, where you can choose your Region. (In my example I named it "TestRegion"). Klick "ok" and "ok" again and we should be back to the normal Trigger Editor window.
-
TestTrigger
-
Events
-
Unit - A unit enters TestRegion <gen>
-
Conditions
-
Actions
(Thats what we got up to here)
5) Now the action: Klick right on actions -> new action. A new window open: In this window you see
"Do nothing". Klick on this and look for
"Set Variable" (Its the 8 from top") and klick it.
5.1) Now you see "Set
Variable =
value". Klick on
Variable, choose your created variable and press ok. Now you see "Set
Var[
Index] =
value". Now you klick on [
Index]
5.2) In the new window you click on the
Function line. Here you need scroll down to: "Player - Player Number" and klick it. Now you see " Player Number of
Triggering Player". Klick on
Triggering Player and a new window open. Klick again on the
function line and klick on "Owner of Unit". Now press 2 times on "ok".
5.3) Now we back to the first action window. We see: " Set
Var[
(Player Number of (Owner of (Triggering Unit))] =
value. Now you klick Value.
5.4) Now in the new window you see at the bottom: Value "True" "False". Klick on "true" and klick twice on "ok"
6) And what we have:
-
TestTrigger
-
Events
-
Unit - A unit enters TestRegion <gen>
-
Conditions
-
Actions
-
Set Var[(Player number of (Owner of (Triggering unit)))] = True
So I did my best by this explanation - hope you understand it =)