You have Kill xxx . . .

icepig01

Member
Reaction score
4
Hey, how to setup this trigger::

:short scription::> A hero has kill 150 enemy. Reward 150 gold.

How to set tht trigger?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, first question, does it need to be MUI, or is MPI enough ? :S (I mean does every player only have 1 hero ?)
 

icepig01

Member
Reaction score
4
Well, first question, does it need to be MUI, or is MPI enough ? :S (I mean does every player only have 1 hero ?)

Well, [GUI]+[NO HASHTABLES]
in my map i have 8 players ,starting from player Blue(2)...
[i hope i can edit this player settings]

2nd, if you play X Heroes Siege by Sogat, i wanna something like tht.

[Make sure the trigger is easy to edit]
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok, then this should work ;)

Trigger:
  • Hero Kills 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 6 (Orange)
          • (Owner of (Triggering unit)) Equal to Player 7 (Green)
          • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
    • Actions
      • Set Hero_Kills[(Player number of (Owner of (Triggering unit)))] = (Hero_Kills[(Player number of (Owner of (Triggering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Hero_Kills[(Player number of (Owner of (Triggering unit)))] Equal to 150
        • Then - Actions
          • Player - Add 150 to (Owner of (Triggering unit)) Current gold
        • Else - Actions


Just change this to change which players it will trigger on:
Trigger:
  • 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 6 (Orange)
        • (Owner of (Triggering unit)) Equal to Player 7 (Green)
        • (Owner of (Triggering unit)) Equal to Player 8 (Pink)


And, you can make it work for several gold-amounts too, by simply copying that if there, like this:
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Hero_Kills[(Player number of (Owner of (Triggering unit)))] Equal to 500
    • Then - Actions
      • Player - Add 500 to (Owner of (Triggering unit)) Current gold
    • Else - Actions


Then it'll also work if the hero gets 500 kills and then it'll give 500 gold instead :D
 

icepig01

Member
Reaction score
4
So, about the Players thingy, can i customize myself??

So if i wanna to setup the kills
1st trigger- 150 kills / 150 rewards and so on, it would be ok?

I'm planning to add custom sound too. =)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Just change this to change which players it will trigger on:
Trigger:
  • 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 6 (Orange)
        • (Owner of (Triggering unit)) Equal to Player 7 (Green)
        • (Owner of (Triggering unit)) Equal to Player 8 (Pink)

As I said there, just change those players, and that should be fine :D
 

icepig01

Member
Reaction score
4
Hey, any idea for my thread 'Click on NPC in my map' ??

[EDIT]- i almost forget a thing, what is the variable for 'Hero_Kill' ?

-
 
General chit-chat
Help Users

      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