• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help With Triggering

Status
Not open for further replies.
Level 2
Joined
Apr 18, 2014
Messages
8
Can someone pliss help me make a trigger
that will count how many unit has been killed
Example: If I already kill 60 unit I will get some gift
and if I already kill 5 hero I will get special rare gift
#help pliss
#GUI only
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
#stopusingthoseretardedhashtags

  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to False
        • Then - Actions
          • Set units_killed = (units_killed + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • units_killed Greater than 60
            • Then - Actions
              • -------- give item here --------
            • Else - Actions
        • Else - Actions
      • -------- --------------------- --------
      • -------- --------------------- --------
      • -------- --------------------- --------
      • -------- --------------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set heroes_killed = (heroes_killed + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • heroes_killed Greater than 5
            • Then - Actions
              • -------- give item here --------
            • Else - Actions
        • Else - Actions
 
Level 8
Joined
Sep 29, 2012
Messages
185
#stopusingthoseretardedhashtags

  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to False
        • Then - Actions
          • Set units_killed = (units_killed + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • units_killed Greater than 60
            • Then - Actions
              • -------- give item here --------
            • Else - Actions
        • Else - Actions
      • -------- --------------------- --------
      • -------- --------------------- --------
      • -------- --------------------- --------
      • -------- --------------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set heroes_killed = (heroes_killed + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • heroes_killed Greater than 5
            • Then - Actions
              • -------- give item here --------
            • Else - Actions
        • Else - Actions

lol #
 
Status
Not open for further replies.
Top