Hero kill achievement FAILURE.

icepig01

Member
Reaction score
4
I have this trigger about, which player get to kill 100 mobs and so on..
but it failed and did not work.

Can you guys help me fix this.

My 'Hero_Kill' variable is an integer size 12.

Trigger:
  • Hero Kill Check
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
          • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
          • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
          • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
          • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
          • (Owner of (Triggering unit)) Equal to Player 7 (Green)
          • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
          • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
    • Actions
      • Set Hero_Kill[(Player number of (Owner of (Triggering unit)))] = Hero_Kill[((Player number of (Owner of (Triggering unit))) + 1)]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Hero_Kill[(Player number of (Owner of (Triggering unit)))] Equal to 100
        • Then - Actions
          • Game - Display to (All players) for 30.00 seconds the text: ((Name of (Owner of (Triggering unit))) + has kill 100 mobs. Say 'Congrazt' to him/she.)
          • Player - Add 250 to (Owner of (Triggering unit)) Current gold
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Hero_Kill[(Player number of (Owner of (Triggering unit)))] Equal to 150
            • Then - Actions
              • Game - Display to (All players) for 30.00 seconds the text: ((Name of (Owner of (Triggering unit))) + has kill 100 mobs. Say 'Congrazt' to him/she.)
              • Player - Add 250 to (Owner of (Triggering unit)) Current gold
            • Else - Actions
 

N(O.O)B

New Member
Reaction score
27
I believe triggering unit refers to the unit to which the event took place, so for

"A Unit Finishes Casting An Ability"
the "Triggering Unit" is the Unit that finished casting an ability.

The same thing applies to "A Unit Dies", in which the "Triggering Unit" is the "Dying Unit", trying using "Event Respone - Killing Unit" instead.

This means that your current trigger adds 1 point to the variable each time the hero dies, and goes off after he dies 100 times and 150 times ;)
 

kaboo

New Member
Reaction score
45
your event: A unit !DIES!
so triggering unit in this trigger is the dying one
 

icepig01

Member
Reaction score
4
I believe triggering unit refers to the unit to which the event took place, so for

"A Unit Finishes Casting An Ability"
the "Triggering Unit" is the Unit that finished casting an ability.

The same thing applies to "A Unit Dies", in which the "Triggering Unit" is the "Dying Unit", trying using "Event Respone - Killing Unit" instead.

This means that your current trigger adds 1 point to the variable each time the hero dies, and goes off after he dies 100 times and 150 times ;)

your event: A unit !DIES!
so triggering unit in this trigger is the dying one


So wat shoud i do??, change the 'owner of triggering unit' to 'dying unit'??
 

kaboo

New Member
Reaction score
45
not dying but killing, try reading gray lines in WE, they will help you a lot . . .
 

icepig01

Member
Reaction score
4
not dying but killing, try reading gray lines in WE, they will help you a lot . . .

Gray line? Dude, specific pls. im a noob.
EDIT: which line need to change to 'killing unit' ..some line makes me even more confused now. x(
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top