Unit Type of Selected Unit?

T3rm1nat0r

New Member
Reaction score
23
I can't seem to find "Unit Type of Selected Unit". It seems there is no option. What would fit as the "selected unit" in this trigger? I have tried triggering and targetted unit, it seems none of them work. What would be the one to work?

Code:
SelectHero
    Events
        Player - Player 1 (Red) Selects a unit
        Player - Player 2 (Blue) Selects a unit
        Player - Player 3 (Teal) Selects a unit
        Player - Player 4 (Purple) Selects a unit
        Player - Player 5 (Yellow) Selects a unit
        Player - Player 6 (Orange) Selects a unit
        Player - Player 7 (Green) Selects a unit
        Player - Player 8 (Pink) Selects a unit
        Player - Player 9 (Gray) Selects a unit
        Player - Player 10 (Light Blue) Selects a unit
        Player - Player 11 (Dark Green) Selects a unit
        Player - Player 12 (Brown) Selects a unit
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Unit-type of (Triggering unit)) Not equal to Circle of Power (large)
            Then - Actions
                Set UT_SelectedHero[(Player number of (Triggering player))] = (Unit-type of (Triggering unit))
            Else - Actions

Thanks for any help!
PiCk :cool:
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
maybe there is another way but thats what i think of

Code:
Nahkampf-Initialisierung
    Events
        Spieler - Spieler 1 (Rot) Auswählen a unit
    Conditions
    Actions
        Set tempforce = (Units currently selected by (Triggering player))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            'IF'-Conditions
                (Number of units in tempforce) Gleich 1
            'THEN'-Aktionen
                Einheitengruppe - Pick every unit in tempforce and do (Actions)
                    Schleifen - Aktionen
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            'IF'-Conditions
                                (Unit-type of (Picked unit)) Equal to Soldat
                            'THEN'-Actions
                            [B]Do sth[/B]
                            'ELSE'-Actions
            'ELSE'-Aktionen
          Custom Script: call DetroyForce (udg_tempforce)
 
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