Setting Units in unit Group

JakeWC123

New Member
Reaction score
2
ok So Wat i wanna do is Set All Units in a reigion into a Varialbe. And then in an action Detect the unit type of the units in the varible like this.

Unit Group - Pick Every unit in all units and do actions
-Loop Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to UnitTypeOfUnitInStoredVarbiable
Then - Actions
Wait 2.00 seconds
Item - Create Bear Skin Robe at (Position of (Picked unit))
Item - Create Bone Staff at (Position of (Picked unit))
Else - Actions

sorry kinda hard to explain but if you dont understand jus say ill try to Explain it better.
 

Dimaspy

New Member
Reaction score
19
The red area, right?
Just set it to the unit-type variable you have, that's it.
 

JakeWC123

New Member
Reaction score
2
Nvm i figured it out

First I Had To Set The Units

Actions
Set Swords[1] = Fighter
Set Swords[2] = Paladin


Then I Had To Do This

Unit Group - Pick every unit in (Units in Region 018 <gen>) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Swords[(Min(1, 2))]
Then - Actions
Item - Create Bear RibCage Armor at ((Owner of (Picked unit)) start location)
Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top