Trigger - Detect main attribute?

ChaosWarlock

New Member
Reaction score
7
Can you get the value of the main attribute of a hero in a trigger?

I am trying to do damage based on the Main Attribute of a hero. The spell I am making is going to be used by heroes with different main attributes so I need a way of detecting if the hero is str, agi, or int.

Thanks in advance.
 

Curo

Why am I still playing this game...?
Reaction score
109
Get the Str, Agi , Int of the hero and use maths to compare.

That only works if your primary attribute is always going to be highest.

The way I detect primary attribute in my map: When a hero is chosen, I add it to one of the unit groups (one group for each attribute). Then when I need to detect the primary attribute, I check to see which group contains the hero.
 

ChaosWarlock

New Member
Reaction score
7
The way I detect primary attribute in my map: When a hero is chosen, I add it to one of the unit groups (one group for each attribute). Then when I need to detect the primary attribute, I check to see which group contains the hero.

Thank you Curo that will work great! +Rep
 
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