Mass send

Fuin

New Member
Reaction score
0
Code:
Red
    Events
        Unit - A unit enters Red Mass <gen>
    Conditions
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Entering unit)) Equal to Wisp
                (Owner of (Entering unit)) Equal to Player 1 (Red)
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Do nothing) else do (Do nothing)
                Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>)
It is my trigger can anyone tell me what's wrong with it, i mean it work but it send ALL units I want it to send ONLY RED player units in that case.
 

saw792

Is known to say things. That is all.
Reaction score
280
You have nothing in your IF statement. You mean to use the If/then/else multiple actions but are actually just using the If/then/else. Change it to If/then/else - Multiple actions and then put the unit order under the then actions, leaving the else actions blank.
 

Septimus

New Member
Reaction score
58
Red
Events
Unit - A unit enters Red Mass <gen>
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
(Owner of (Entering unit)) Equal to Player 1 (Red)
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If ((Owner of (Triggering unit)) Equal to Player 1 (Red)) then do (Do nothing) else do (Do nothing)
Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>)

You pick every unit, is not wonder all go to the current area.
 

Fuin

New Member
Reaction score
0
Code:
Red
    Events
        Unit - A unit enters Red Mass <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 1 (Red)
        (Unit-type of (Entering unit)) Equal to Wisp
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Triggering unit)) Equal to Player 1 (Red)
            Then - Actions
                Unit Group - Pick every unit in (Units in Mapa <gen>) and do (Actions)
                    Loop - Actions
                        Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>)
            Else - Actions
Now it looks like this, but still send all units, I'm pretty sure then condition in "Actions" don't work but don't know how to repair it
So how can I pick every "red player" unit i don't see in this tirgger option to do this
 

Septimus

New Member
Reaction score
58
Melee Initialization
Events
Unit - A unit enters Red Mass <gen>
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>))

This would just order all unit belong to player 1 to move to the region.

You can even set it this way if you want.

Region
Events
Unit - A unit enters Red Mass <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>))
Else - Actions
Do nothing

But, if you just want all unit type of wisp belong to player 1 to move to the region. Then set it this way.

Region
Events
Unit - A unit enters Red Mass <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to Wisp
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Wisp) and do (Unit - Order (Picked unit) to Attack-Move To (Center of Cel Footmenow <gen>))
Else - Actions
Do nothing
 

Fuin

New Member
Reaction score
0
Uff I'm blind or what but i can't do this "owned by Player 1 (Red)) ". After "Pick every unit in (Units in (Playable map area)" there is no "place" to add owned by player 1
Edit
K nvm i got it i made variable with unit group equal to units owned by player red, thx Septimus
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top