Need help checking & improve a trigger

Yamuraiha

Member
Reaction score
1
How to make this trigger work on all the player, not just the Blue. There are many more trigger like this (Lvl 3 Setup, Lvl 4 Setup ......). Someone help me pls.
Trigger:
  • Lvl 2 Setup
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
      • (Level of (Triggering unit)) Equal to 2
    • Actions
      • Player - Set the current research level of HP, Damage & Armor (Pet) to 3 for Player 2 (Blue)
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
First of all, your first condition is completely useless.
Heroes are the ONLY units which can gain a level. The triggering unit is ALWAYS a hero, so there is no need to check that in the condition.

To solve your problem, use "(Owner of (Triggering Unit))".
And if the research level for the upgrade is always one higher then the hero level you can simply use:
Trigger:
  • Player - Set the current research level of HP, Damage & Armor (Pet) to (Level of (Triggering unit)) + 1 for (Owner of (Triggering Unit))
 

Yamuraiha

Member
Reaction score
1
First of all, your first condition is completely useless.
Heroes are the ONLY units which can gain a level. The triggering unit is ALWAYS a hero, so there is no need to check that in the condition.

To solve your problem, use "(Owner of (Triggering Unit))".
And if the research level for the upgrade is always one higher then the hero level you can simply use:
Trigger:
  • Player - Set the current research level of HP, Damage & Armor (Pet) to (Level of (Triggering unit)) + 1 for (Owner of (Triggering Unit))

The action you gave me above doesn't need the second condition too. Right ?
 
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