• 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.

[Trigger] Ranking buff for units gone wrong.

Problem.png

When I make a custom race, a custom unit (which is a killing unit) receives a rank buff, but the buff belongs to dying unit. Feel free to ask, TY.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,909
Please post your triggers instead of using screenshots :peasant-grin:
 
  • Ranking to Sergeant
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Killing unit) belongs to an enemy of (Owner of (Dying unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Killing unit) belongs to an enemy of (Owner of (Dying unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 1
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Trigger - Run Sergeant Rank <gen> (checking conditions)
          • Unit - Increase level of Ascension Rank for (Killing unit)
 
And this:
  • Ranking to Lieutenant
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 5
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Special Effect - Destroy Sergeant
          • Wait 0.50 seconds
          • Unit - Increase level of Ascension Rank for (Killing unit)
          • Trigger - Run Lieutenant Rank <gen> (checking conditions)
 
Everytime when a player unit kills an enemy, it grants a promotion, means increasing attack damage. Here are the rest:
  • Ranking to Lieutenant
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 5
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Special Effect - Destroy Sergeant
          • Wait 0.50 seconds
          • Unit - Increase level of Ascension Rank for (Killing unit)
          • Trigger - Run Lieutenant Rank <gen> (checking conditions)
  • Ranking to Captain
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 10
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Special Effect - Destroy Lieutenant
          • Wait 0.50 seconds
          • Unit - Increase level of Ascension Rank for (Killing unit)
          • Trigger - Run Captain Rank <gen> (checking conditions)
  • Ranking to Major
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 15
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Special Effect - Destroy Captain
          • Wait 0.50 seconds
          • Unit - Increase level of Ascension Rank for (Killing unit)
          • Trigger - Run Major Rank <gen> (checking conditions)
  • Ranking to General
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) belongs to an enemy of (Owner of (Killing unit)).) Equal to True
          • (Level of Ascension Rank for (Killing unit)) Less than 20
        • Then - Actions
          • Unit - Set level of Ascension Rank for (Killing unit) to ((Level of Ascension Rank for (Killing unit)) + 1)
        • Else - Actions
          • Special Effect - Destroy Major
          • Wait 0.50 seconds
          • Unit - Increase level of Ascension Rank for (Killing unit)
          • Trigger - Run General Rank <gen> (checking conditions)
 
Top